Remove bogus argument from addProgressListener calls in a11y tests for bug 608628
authorDão Gottwald <dao@mozilla.com>
Wed, 23 Mar 2011 14:43:56 +0100
changeset 63668 540cdd61fa9f40a732cd74344d97918023d89ead
parent 63667 627840006eb97853e0a63669e26eb6fe9a4009a1
child 63669 e44b2614a7bc57d752844a9e529e833d1f958975
push idunknown
push userunknown
push dateunknown
bugs608628
milestone2.0b13pre
Remove bogus argument from addProgressListener calls in a11y tests for bug 608628
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
@@ -56,18 +56,17 @@
                                               aStateFlags,
                                               aStatus)
        {
         if (aStateFlags & Ci.nsIWebProgressListener.STATE_STOP)
           testRelations();
        }
       };
 
-      tabBrowser.addProgressListener(progressListener,
-                                     Ci.nsIWebProgress.NOTIFY_STATE_WINDOW);
+      tabBrowser.addProgressListener(progressListener);
 
       tabBrowser.loadTabs(["about:", "about:mozilla"], false, true);
     }
 
     function testRelations()
     {
       //////////////////////////////////////////////////////////////////////////
       // 'labelled by'/'label for' relations for xul:tab and xul:tabpanel
@@ -75,17 +74,17 @@
       var tabs = getNode("tabbrowser").tabContainer.childNodes;
       var panels = getNode("tabbrowser").mTabBox.tabpanels.childNodes;
 
       testRelation(panels[0], RELATION_LABELLED_BY, tabs[0]);
       testRelation(tabs[0], RELATION_LABEL_FOR, panels[0]);
       testRelation(panels[1], RELATION_LABELLED_BY, tabs[1]);
       testRelation(tabs[1], RELATION_LABEL_FOR, panels[1]);
 
-      SimpleTest.finish()
+      SimpleTest.finish();
     }
 
     SimpleTest.waitForExplicitFinish();
     addA11yLoadEvent(doTest);
   ]]>
   </script>
 
   <vbox flex="1" style="overflow: auto;">
--- a/accessible/tests/mochitest/tree/test_tabbrowser.xul
+++ b/accessible/tests/mochitest/tree/test_tabbrowser.xul
@@ -56,18 +56,17 @@
         {
           if (aStateFlags & Ci.nsIWebProgressListener.STATE_STOP) {
             tabBrowser.removeProgressListener(progressListener);
 
             SimpleTest.executeSoon(testAccTree);
           }
         }
       };
-      tabBrowser.addProgressListener(progressListener,
-                                     Ci.nsIWebProgress.NOTIFY_STATE_WINDOW);
+      tabBrowser.addProgressListener(progressListener);
 
       // Test XUL and HTML documents.
       tabBrowser.loadTabs(["about:", "about:mozilla"], false, true);
     }
 
     function testAccTree()
     {
       var tabBrowser = document.getElementById("tabbrowser");
@@ -202,17 +201,17 @@
               }
             ]
           }
         ]
       };
 
       testAccessibleTree(tabBrowser.mTabBox.tabpanels, tabboxAccTree);
 
-      SimpleTest.finish()
+      SimpleTest.finish();
     }
 
     SimpleTest.waitForExplicitFinish();
     addA11yLoadEvent(doTest);
   ]]>
   </script>
 
   <vbox flex="1" style="overflow: auto;">