Bug 739455 - intermittent failure of relations/test_tabbrowser.xul and tree/test_tabbrowser.xul, r=tbsaunde
authorAlexander Surkov <surkov.alexander@gmail.com>
Wed, 26 Sep 2012 09:55:07 +0900
changeset 108200 28f05f13a384afbc9cd439d97f8ddac123351eb2
parent 108199 c0f65614b0e048fc92de4d2d12df20b9825fca73
child 108201 91a3c2948a44ccc5fecdaa2eb4b0ada5a0195d34
push id82
push usershu@rfrn.org
push dateFri, 05 Oct 2012 13:20:22 +0000
reviewerstbsaunde
bugs739455
milestone18.0a1
Bug 739455 - intermittent failure of relations/test_tabbrowser.xul and tree/test_tabbrowser.xul, r=tbsaunde
accessible/tests/mochitest/relations/test_tabbrowser.xul
accessible/tests/mochitest/tree/test_tabbrowser.xul
--- a/accessible/tests/mochitest/relations/test_tabbrowser.xul
+++ b/accessible/tests/mochitest/relations/test_tabbrowser.xul
@@ -24,18 +24,18 @@
 
   <script type="application/javascript">
   <![CDATA[
     ////////////////////////////////////////////////////////////////////////////
     // Invoker
     function testTabRelations()
     {
       this.eventSeq = [
-        new invokerChecker(EVENT_DOCUMENT_LOAD_COMPLETE, tabDocumentAt, 0),
-        new invokerChecker(EVENT_DOCUMENT_LOAD_COMPLETE, tabDocumentAt, 1)
+        new asyncInvokerChecker(EVENT_DOCUMENT_LOAD_COMPLETE, tabDocumentAt, 0),
+        new asyncInvokerChecker(EVENT_DOCUMENT_LOAD_COMPLETE, tabDocumentAt, 1)
      ];
 
       this.invoke = function testTabRelations_invoke()
       {
         var docURIs = ["about:", "about:mozilla"];
         tabBrowser().loadTabs(docURIs, false, true);
       }
 
@@ -56,18 +56,20 @@
       this.getID = function testTabRelations_getID()
       {
         return "relations of tabs";
       }
     }
     
     ////////////////////////////////////////////////////////////////////////////
     // Test
+
+    //gA11yEventDumpToConsole = true; // debug stuff
+
     var gQueue = null;
-    gA11yEventDumpToConsole = true;
     function doTest()
     {
       // Load documents into tabs and wait for DocLoadComplete events caused by
       // these documents load before we start the test.
 
       gQueue = new eventQueue();
 
       gQueue.push(new testTabRelations());
--- a/accessible/tests/mochitest/tree/test_tabbrowser.xul
+++ b/accessible/tests/mochitest/tree/test_tabbrowser.xul
@@ -23,18 +23,18 @@
 
   <script type="application/javascript">
   <![CDATA[
     ////////////////////////////////////////////////////////////////////////////
     // invoker
     function testTabHierarchy()
     {
       this.eventSeq = [
-        new invokerChecker(EVENT_DOCUMENT_LOAD_COMPLETE, tabDocumentAt, 0),
-        new invokerChecker(EVENT_DOCUMENT_LOAD_COMPLETE, tabDocumentAt, 1)
+        new asyncInvokerChecker(EVENT_DOCUMENT_LOAD_COMPLETE, tabDocumentAt, 0),
+        new asyncInvokerChecker(EVENT_DOCUMENT_LOAD_COMPLETE, tabDocumentAt, 1)
       ];
 
       this.invoke = function testTabHierarchy_invoke()
       {
         var docURIs = ["about:", "about:mozilla"];
         tabBrowser().loadTabs(docURIs, false, true);
       }