Bug 845176 - Intermittent relations/test_embeds.xul, r=yzen
authorAlexander Surkov <surkov.alexander@gmail.com>
Tue, 23 Feb 2016 18:45:34 -0500
changeset 285232 092cabaa74d156a2f2d39e57e60a0229b97c6362
parent 285231 0404a2da10ad26eb2acf30ec36c2ec1d8b29f4a5
child 285233 2f937f9e1b5fee1312ea6fc838f8915a4271903e
push id72288
push usersurkov.alexander@gmail.com
push dateTue, 23 Feb 2016 23:45:46 +0000
treeherdermozilla-inbound@092cabaa74d1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersyzen
bugs845176
milestone47.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 845176 - Intermittent relations/test_embeds.xul, r=yzen
accessible/tests/mochitest/relations/a11y.ini
accessible/tests/mochitest/relations/test_embeds.xul
--- a/accessible/tests/mochitest/relations/a11y.ini
+++ b/accessible/tests/mochitest/relations/a11y.ini
@@ -1,11 +1,10 @@
 [DEFAULT]
 
 [test_bindings.xhtml]
 [test_embeds.xul]
-skip-if = (os == "linux" && (debug || asan)) # Bug 845176
 [test_general.html]
 [test_general.xul]
 [test_tabbrowser.xul]
 [test_tree.xul]
 [test_ui_modalprompt.html]
 [test_update.html]
--- a/accessible/tests/mochitest/relations/test_embeds.xul
+++ b/accessible/tests/mochitest/relations/test_embeds.xul
@@ -32,61 +32,40 @@
     function loadURI(aURI)
     {
       this.invoke = function loadURI_invoke()
       {
         tabBrowser().loadURI(aURI);
       }
 
       this.eventSeq = [
-        new invokerChecker(EVENT_REORDER, currentBrowser)
+        new invokerChecker(EVENT_DOCUMENT_LOAD_COMPLETE, currentTabDocument)
       ];
 
       this.finalCheck = function loadURI_finalCheck()
       {
         testRelation(browserDocument(), RELATION_EMBEDS,
                      getAccessible(currentTabDocument()));
       }
 
       this.getID = function loadURI_getID()
       {
         return "load uri " + aURI;
       }
     }
 
-    function browserReorderChecker()
-    {
-      this.type = EVENT_REORDER;
-
-      this.match = function browserReorderChecker_match(aEvent)
-      {
-        if (!isAccessible(currentBrowser()))
-          return false;
-
-        // Reorder event might be duped because of temporary document creation.
-        if (aEvent.accessible == getAccessible(currentBrowser())) {
-          this.cnt++;
-          return this.cnt != 2;
-        }
-
-        return false;
-      }
-
-      this.cnt = 0;
-    }
-
     function loadOneTab(aURI)
     {
       this.invoke = function loadOneTab_invoke()
       {
         tabBrowser().loadOneTab(aURI, null, null, null, false);
       }
 
       this.eventSeq = [
-        new browserReorderChecker()
+        new invokerChecker(EVENT_DOCUMENT_LOAD_COMPLETE, currentTabDocument)
       ];
 
       this.finalCheck = function loadURI_finalCheck()
       {
         testRelation(browserDocument(), RELATION_EMBEDS,
                      getAccessible(currentTabDocument()));
       }
 
@@ -94,17 +73,17 @@
       {
         return "load uri '" + aURI + "' in new tab";
       }
     }
 
     ////////////////////////////////////////////////////////////////////////////
     // Testing
 
-    gA11yEventDumpToConsole = true; // debug
+    //gA11yEventDumpToConsole = true; // debug
 
     var gQueue = null;
     function doTests()
     {
       testRelation(browserDocument(), RELATION_EMBEDS,
                    getAccessible(currentTabDocument()));
 
       enableLogging("docload");