Bug 668716 - Change test_bug632379.xul failure on Mac to a todo(); r=orange
authorAryeh Gregor <ayg@aryeh.name>
Wed, 21 Mar 2012 15:41:35 -0400
changeset 89937 3b06cfee48cdce15fe6936f2223e7cb078b92280
parent 89936 4e4076eb6524b1544fc8d94996e67668547af087
child 89938 610a13a580503646b59600eaae18baeb5753833b
push id7394
push userayg@aryeh.name
push dateWed, 21 Mar 2012 19:47:25 +0000
treeherdermozilla-inbound@3b06cfee48cd [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersorange
bugs668716, 632379
milestone14.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 668716 - Change test_bug632379.xul failure on Mac to a todo(); r=orange
layout/generic/test/test_bug632379.xul
--- a/layout/generic/test/test_bug632379.xul
+++ b/layout/generic/test/test_bug632379.xul
@@ -175,17 +175,20 @@ function snapshot(elem)
 {
     pos[count] = elem.getBoundingClientRect().top;
     ++count;
     if (count <= 1) {
         // close the submenu and open the bottom submenu
         synthesizeKey("VK_LEFT", {});
         synthesizeKey("9", {});
     } else {
-        is(pos[1], pos[0], "Popup should open in the same place when the menu is scrolled");
+        // Bug 668716: This test fails on Mac since it was ported to chrome
+        (navigator.platform.indexOf("Mac") == -1 ? is : todo_is)(
+            pos[1], pos[0], "Popup should open in the same place when the menu is scrolled"
+        );
         SimpleTest.finish();
     }
 }
 
 function doTest() {
     // open the top-level menu
     $("mainMenu").open = true;
 }