Bug 544170 - [SeaMonkey 2.1] mochitest-a11y: tree/test_tabbrowser.xul fails, due to "tabbrowser API" dependencies and different application UIs; (Cv1) Add SimpleTest.executeSoon() fwiw.
authorSerge Gautherie <sgautherie.bz@free.fr>
Mon, 21 Mar 2011 17:27:43 +0100
changeset 63365 5b4eed81e78aaa37e23c790d668ab6d4a87017f9
parent 63364 2b9aa315fd308331825505d3e49b4dc9f2e58cb3
child 63366 3dded4bfb1315ec226ebf100f17852880dbf18f5
push id30
push usersgautherie.bz@free.fr
push dateFri, 01 Apr 2011 20:04:53 +0000
bugs544170
milestone2.0pre
Bug 544170 - [SeaMonkey 2.1] mochitest-a11y: tree/test_tabbrowser.xul fails, due to "tabbrowser API" dependencies and different application UIs; (Cv1) Add SimpleTest.executeSoon() fwiw. r=surkov.alexander a-2.0=bolter.
accessible/tests/mochitest/tree/test_tabbrowser.xul
--- a/accessible/tests/mochitest/tree/test_tabbrowser.xul
+++ b/accessible/tests/mochitest/tree/test_tabbrowser.xul
@@ -51,34 +51,34 @@
         onStateChange: function onStateChange(aWebProgress,
                                               aRequest,
                                               aStateFlags,
                                               aStatus)
         {
           if (aStateFlags & Ci.nsIWebProgressListener.STATE_STOP) {
             tabBrowser.removeProgressListener(progressListener);
 
-            testAccTree();
+            SimpleTest.executeSoon(testAccTree);
           }
         }
       };
       tabBrowser.addProgressListener(progressListener,
                                      Ci.nsIWebProgress.NOTIFY_STATE_WINDOW);
 
       // Test XUL and HTML documents.
       tabBrowser.loadTabs(["about:", "about:mozilla"], false, true);
     }
 
     function testAccTree()
     {
       var tabBrowser = document.getElementById("tabbrowser");
 
-      //////////
+      ////////////////////
       // Tab bar
-      //////////
+      ////////////////////
       var tabsAccTree = {
         // xul:tabs
         role: ROLE_PAGETABLIST,
         children: [
           // Children depend on application (UI): see below.
         ]
       };
 
@@ -155,19 +155,19 @@
           // "List all tabs" dropdown
           // XXX: This child(?) is not present in this test.
           //      I'm not sure why (though probably expected).
           );
       }
 
       testAccessibleTree(tabBrowser.tabContainer, tabsAccTree);
 
-      //////////
+      ////////////////////
       // Tab contents
-      //////////
+      ////////////////////
       var tabboxAccTree = {
         // xul:tabpanels
         role: ROLE_PANE,
         children: [
           {
             // xul:notificationbox
             role: ROLE_PROPERTYPAGE,
             children: [