Bug 574051 - permanent orange test on 64-bit win7: 15875 ERROR TEST-UNEXPECTED-FAIL | /tests/toolkit/content/tests/widgets/test_tree_hier.xul | cycleHeader column sortDirection - "descending" should equal "". r=enndeakin
authorMakoto Kato <m_kato@ga2.so-net.ne.jp>
Fri, 16 Jul 2010 15:59:13 +0900
changeset 47790 96de199027d7e7c09a98b68da0464d43327049ca
parent 47789 bd21c5390faff8966f067180763fc1a64d57d530
child 47791 2d09181ec4cd0cc45482a2315e6e21fc39a7d61b
child 47805 5575b3579d2f63bdb0197cb9fa81c4bb646a05cc
push id14422
push userm_kato@ga2.so-net.ne.jp
push dateFri, 16 Jul 2010 07:02:28 +0000
treeherdermozilla-central@96de199027d7 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersenndeakin
bugs574051, 15875
milestone2.0b2pre
first release with
nightly linux32
96de199027d7 / 4.0b2pre / 20100716025911 / files
nightly linux64
96de199027d7 / 4.0b2pre / 20100716030639 / files
nightly mac
96de199027d7 / 4.0b2pre / 20100716030704 / files
nightly win32
96de199027d7 / 4.0b2pre / 20100716040830 / files
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
releases
nightly linux32
nightly linux64
nightly mac
nightly win32
Bug 574051 - permanent orange test on 64-bit win7: 15875 ERROR TEST-UNEXPECTED-FAIL | /tests/toolkit/content/tests/widgets/test_tree_hier.xul | cycleHeader column sortDirection - "descending" should equal "". r=enndeakin
toolkit/content/tests/widgets/tree_shared.js
--- a/toolkit/content/tests/widgets/tree_shared.js
+++ b/toolkit/content/tests/widgets/tree_shared.js
@@ -1015,17 +1015,17 @@ function testtag_tree_TreeView_rows_sort
 
   // Click once on column header and check sorting has cycled once.
   mouseClickOnColumnHeader(columns, columnIndex, 0, 1);
   is(columnElement.getAttribute("sortDirection"), "ascending",
      "single click cycleHeader column sortDirection ascending");
 
   // Now simulate a double click.
   mouseClickOnColumnHeader(columns, columnIndex, 0, 2);
-  if (navigator.platform == "Win32") {
+  if (navigator.platform.indexOf("Win") == 0) {
     // Windows cycles only once on double click.
     is(columnElement.getAttribute("sortDirection"), "descending",
        "double click cycleHeader column sortDirection descending");
     // 1 single clicks should restore natural sorting.
     mouseClickOnColumnHeader(columns, columnIndex, 0, 1);
   }
 
   // Check we have gone back to natural sorting.