Bug 675201 - Some debug outputs for intermittent orange investigation. rs=ehsan
authorMounir Lamouri <mounir.lamouri@gmail.com>
Fri, 26 Aug 2011 18:57:11 +0200
changeset 75956 35af65318247b7cef58cf1b31f435d7e02c9c8c9
parent 75955 0c9fda3714fb297130b10858d818f01134b8ca84
child 75957 60594ddf3d9ea853b36cf2dab481bb77d0ef228f
push id3
push userfelipc@gmail.com
push dateFri, 30 Sep 2011 20:09:13 +0000
reviewersehsan
bugs675201
milestone9.0a1
Bug 675201 - Some debug outputs for intermittent orange investigation. rs=ehsan
layout/generic/test/test_bug632379.xul
--- a/layout/generic/test/test_bug632379.xul
+++ b/layout/generic/test/test_bug632379.xul
@@ -71,17 +71,17 @@ https://bugzilla.mozilla.org/show_bug.cg
             <menuitem label="item"/>
             <menuitem label="item"/>
             <menuitem label="item"/>
             <menuitem label="item"/>
             <menuitem label="item"/>
           </menupopup>
         </menu>
         <menu label="menu5" accesskey="5" id="menu5">
-	  <menupopup onpopupshown="snapshot(this)">
+          <menupopup onpopupshown="snapshot(this)">
             <menuitem label="item"/>
             <menuitem label="item"/>
             <menuitem label="item"/>
             <menuitem label="item"/>
             <menuitem label="item"/>
             <menuitem label="item"/>
             <menuitem label="item"/>
             <menuitem label="item"/>
@@ -171,33 +171,34 @@ https://bugzilla.mozilla.org/show_bug.cg
 var pos = new Array(2);
 var count=0;
 
 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", {});
+        ok(true, "trying to open the second submenu");
+        // 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");
-
-	SimpleTest.finish();
+        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;
 }
 
 function openSubmenu()
 {
+    ok(true, "openSubMenu() called");
     // open a submenu in the middle
     synthesizeKey("5", {});
 }
 
 SimpleTest.waitForExplicitFinish();
 addLoadEvent(doTest);
 
 ]]></script>