Bug 759670 - Intermittent accessible/events/test_docload.xul | Test timed out, r=tbsaunde
authorAlexander Surkov <surkov.alexander@gmail.com>
Mon, 04 Jun 2012 14:38:45 +0900
changeset 95737 cfee4e39759d2636affcf29289ebe96b73506170
parent 95736 c6aa41df6d3e62d781c65fd16b07699a69ca650b
child 95738 af83ecf3ee15bf7a44d9cf159133953331a58824
push id22837
push usereakhgari@mozilla.com
push dateMon, 04 Jun 2012 15:31:50 +0000
treeherdermozilla-central@fc94f4339da7 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstbsaunde
bugs759670
milestone15.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 759670 - Intermittent accessible/events/test_docload.xul | Test timed out, r=tbsaunde
accessible/tests/mochitest/events/test_docload.xul
--- a/accessible/tests/mochitest/events/test_docload.xul
+++ b/accessible/tests/mochitest/events/test_docload.xul
@@ -94,16 +94,20 @@
     /**
      * Load the document having sub document. No document loading events for
      * nested document.
      */
     function loadNestedDocURIInvoker(aNestedDocURI)
     {
       this.__proto__ = new loadURIInvoker(aNestedDocURI);
 
+      // Remove reorder event checker since the event is likely coalesced by
+      // reorder event on Firefox UI (refer to bug 759670 for details).
+      this.eventSeq.shift();
+
       this.unexpectedEventSeq = [
         new invokerChecker(EVENT_DOCUMENT_LOAD_COMPLETE, getNestedDoc),
         new invokerChecker(EVENT_STATE_CHANGE, getNestedDoc)
       ];
 
       function getNestedDoc()
       {
         return currentTabDocument().getElementsByTagName("iframe")[0].firstChild;
@@ -178,40 +182,38 @@
       {
         return "load error page: '" + aURLDescr + "'";
       }
     }
 
     ////////////////////////////////////////////////////////////////////////////
     // Tests
 
-    gA11yEventDumpToConsole = true; // debug
-    gA11yEventDumpFeature = "parentchain:reorder";
+    //gA11yEventDumpToConsole = true; // debug
+    //gA11yEventDumpFeature = "parentchain:reorder";
 
     var gQueue = null;
     function doTests()
     {
-      enableLogging("events");
-
       gQueue = new eventQueue();
 
       var dataURL =
         "data:text/html,<html><body><iframe src='http://example.com'></iframe></body></html>";
       gQueue.push(new loadNestedDocURIInvoker(dataURL));
 
       gQueue.push(new loadURIInvoker("about:"));
       gQueue.push(new userReloadInvoker());
       gQueue.push(new loadURIInvoker("about:mozilla"));
       gQueue.push(new reloadInvoker());
       gQueue.push(new loadErrorPageInvoker("www.wronguri.wronguri",
                                            "Server not found"));
       gQueue.push(new loadErrorPageInvoker("https://nocert.example.com:443",
                                           "Untrusted Connection"));
 
-      gQueue.onFinish = function() { closeBrowserWindow(); disableLogging(); }
+      gQueue.onFinish = function() { closeBrowserWindow(); }
       gQueue.invoke();
     }
 
     SimpleTest.waitForExplicitFinish();
     openBrowserWindow(doTests);
   ]]>
   </script>