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 77267 35af65318247b7cef58cf1b31f435d7e02c9c8c9
parent 77266 0c9fda3714fb297130b10858d818f01134b8ca84
child 77268 60594ddf3d9ea853b36cf2dab481bb77d0ef228f
push id78
push userclegnitto@mozilla.com
push dateFri, 16 Dec 2011 17:32:24 +0000
treeherdermozilla-release@79d24e644fdd [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersehsan
bugs675201
milestone9.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 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>