Bug 691580 - enable events/test_focus_contextmenu.html tests and logging
authorAlexander Surkov <surkov.alexander@gmail.com>
Tue, 25 Sep 2012 11:28:00 +0900
changeset 108081 a8489b92ad020a2c4683fdeff4bbd268f35b39cf
parent 108080 3b1d2d4be3377d40ad9fa1c98f2d413fd0c2cd77
child 108082 59877fe3f1e2c80cda0d016c322ebbd62b2a8dec
push id82
push usershu@rfrn.org
push dateFri, 05 Oct 2012 13:20:22 +0000
bugs691580
milestone18.0a1
Bug 691580 - enable events/test_focus_contextmenu.html tests and logging
accessible/tests/mochitest/events/test_contextmenu.html
accessible/tests/mochitest/events/test_focus_contextmenu.xul
--- a/accessible/tests/mochitest/events/test_contextmenu.html
+++ b/accessible/tests/mochitest/events/test_contextmenu.html
@@ -96,17 +96,17 @@
       return null;
     }
 
     ////////////////////////////////////////////////////////////////////////////
     // Do tests
 
     var gQueue = null;
     //gA11yEventDumpID = "eventdump"; // debug stuff
-    gA11yEventDumpToConsole = true;
+    //gA11yEventDumpToConsole = true;
 
     function doTests()
     {
       gQueue = new eventQueue();
 
       gQueue.push(new showContextMenu("input"));
       gQueue.push(new selectMenuItem());
       gQueue.push(new closeContextMenu());
--- a/accessible/tests/mochitest/events/test_focus_contextmenu.xul
+++ b/accessible/tests/mochitest/events/test_focus_contextmenu.xul
@@ -42,22 +42,19 @@
                                        new invokerChecker(EVENT_MENUPOPUP_START, "contextmenu")));
       gQueue.push(new synthEscapeKey("contextmenu", new focusChecker("button")));
 
       gQueue.push(new synthContextMenu("button",
                                        new invokerChecker(EVENT_MENUPOPUP_START, "contextmenu")));
       gQueue.push(new synthDownKey("contextmenu", new focusChecker("item1")));
       gQueue.push(new synthDownKey("item1", new focusChecker("item2")));
       gQueue.push(new synthRightKey("item2", new focusChecker("item2.1")));
-      if (WIN) {
-        todo(false, "item2.1 and item2 fail too frequently on Windows, bug 691580");
-      } else {
-        gQueue.push(new synthEscapeKey("item2.1", new focusChecker("item2")));
-        gQueue.push(new synthEscapeKey("item2", new focusChecker("button")));
-      }
+      gQueue.push(new synthEscapeKey("item2.1", new focusChecker("item2")));
+      gQueue.push(new synthEscapeKey("item2", new focusChecker("button")));
+
       gQueue.invoke(); // Will call SimpleTest.finish();
     }
 
     SimpleTest.waitForExplicitFinish();
     addA11yLoadEvent(doTests);
   </script>
 
   <hbox flex="1" style="overflow: auto;">