Bug 708927 - Disable test_focus_menu.xul on Linux for frequent timeouts; rs=tbsaunde
authorEd Morley <emorley@mozilla.com>
Fri, 28 Sep 2012 17:52:56 +0100
changeset 108621 33fc8988282dc4ec37726bf1c51db75b0482892c
parent 108620 e692911f891bad57c7c9f401a13bebf45597d78b
child 108622 8e0593f974bb0b79e2b7d099444df1595d48c70b
push id82
push usershu@rfrn.org
push dateFri, 05 Oct 2012 13:20:22 +0000
reviewerstbsaunde
bugs708927
milestone18.0a1
Bug 708927 - Disable test_focus_menu.xul on Linux for frequent timeouts; rs=tbsaunde
accessible/tests/mochitest/events/test_focus_menu.xul
--- a/accessible/tests/mochitest/events/test_focus_menu.xul
+++ b/accessible/tests/mochitest/events/test_focus_menu.xul
@@ -17,21 +17,28 @@
           src="../role.js" />
   <script type="application/javascript"
           src="../states.js" />
   <script type="application/javascript"
           src="../events.js" />
 
   <script type="application/javascript">
     //gA11yEventDumpID = "eventdump"; // debug stuff
-    gA11yEventDumpToConsole = true; // debug stuff
+    //gA11yEventDumpToConsole = true; // debug stuff
 
     var gQueue = null;
     function doTests()
     {
+      // bug 708927 - test times out on Linux
+      if (LINUX) {
+        todo(false, "Reenable on Linux after fixing bug 708927!");
+        SimpleTest.finish();
+        return;
+      }
+
       // Test focus events.
       gQueue = new eventQueue();
 
       if (WIN) {
         gQueue.push(new toggleTopMenu("fruit", new focusChecker("fruit")));
         gQueue.push(new synthRightKey("fruit", new focusChecker("vehicle")));
         gQueue.push(new synthEscapeKey("vehicle", new focusChecker(document)));
       }
@@ -66,19 +73,16 @@
       // move to first menu in cycle, DOMMenuItemActive is fired for fruit,
       // cycle and apple menuitems (bug 685191)
       todo(false, "focus is fired for 'cycle' menuitem");
       //gQueue.push(new synthRightKey("vehicle", new focusChecker("apple")));
 
       // click menuitem to close menu, focus gets back to document
       gQueue.push(new synthClick("tricycle", new focusChecker(document)));
 
-      enableLogging("focus");
-      gQueue.onFinish = function() { disableLogging(); }
-
       gQueue.invoke(); // Will call SimpleTest.finish();
     }
 
     SimpleTest.waitForExplicitFinish();
     addA11yLoadEvent(doTests);
   </script>
 
   <hbox flex="1" style="overflow: auto;">