Bug 708927 - Intermittent events/test_focus_menu.xul, r=tbsaunde
authorAlexander Surkov <surkov.alexander@gmail.com>
Sun, 21 Oct 2012 23:07:11 +0900
changeset 111129 b089778d19bd8b49c625d47492e460adc9d4fe8a
parent 111128 26ce19c8e7f5996e9aad5f7c41fd760ec3071a70
child 111131 8d9cff7e5c30a24520e890f63efe8cc5e4da6615
push id93
push usernmatsakis@mozilla.com
push dateWed, 31 Oct 2012 21:26:57 +0000
reviewerstbsaunde
bugs708927
milestone19.0a1
Bug 708927 - Intermittent events/test_focus_menu.xul, r=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
@@ -52,38 +52,29 @@
       // menu and menuitem are both active
       // XXX: intermitent failure because two focus events may be coalesced,
       // think to workaround or fix this issue, when done enable queue invoker
       // below and remove next two.
       //gQueue.push(new synthRightKey("apple",
       //                              [ new focusChecker("vehicle"),
       //                                new focusChecker("cycle")]));
       gQueue.push(new synthClick("vehicle", new focusChecker("vehicle")));
-      gQueue.push(new synthMouseMove("cycle", new focusChecker("cycle")));
-
-      // XXXbug708927 - test times out on Linux, see more info at
-      // https://bugzilla.mozilla.org/show_bug.cgi?id=708927#c360. If needed
-      // then enable logging below.
-      if (LINUX) {
-        todo(false, "Reenable on Linux after fixing bug 708927!");
-      } else {
+      gQueue.push(new synthDownKey("cycle", new focusChecker("cycle")));
 
       // open submenu
       gQueue.push(new synthRightKey("cycle", new focusChecker("tricycle")));
 
       // 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,DOMEvents,tree"); // logging for bug708927
       //gQueue.onFinish = function() { disableLogging(); }
 
       gQueue.invoke(); // Will call SimpleTest.finish();
     }
 
     SimpleTest.waitForExplicitFinish();
     addA11yLoadEvent(doTests);