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 63449 a7346f028fd62b347f2e15e9b8d89d1ad95adc4b
parent 63448 ddd48e3b173ae11bdf714b987b78ff789704b892
child 63531 57a0f8967cceb60320aa66cdbb45d4a4c492f32f
child 63630 b6d89aa5c8c4610c6f970e99de844adbe18293f7
child 64327 ac38143031eb634bfd50c51a4c2cf8cd538dbf98
push idunknown
push userunknown
push dateunknown
bugs544170
milestone2.0b13pre
first release with
nightly linux32
a7346f028fd6 / 4.0b13pre / 20110322030409 / files
nightly linux64
a7346f028fd6 / 4.0b13pre / 20110322030409 / files
nightly mac
a7346f028fd6 / 4.0b13pre / 20110322030409 / files
nightly win32
a7346f028fd6 / 4.0b13pre / 20110322030409 / files
nightly win64
a7346f028fd6 / 4.0b13pre / 20110322030201 / files
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
releases
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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=test-only).
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: [