Bug 451949 - Mochitest <geolocation/test_manyWindows.html> fails intermittently, when some previous tests failed (!?); (Av1) Add missing |SimpleTest.waitForExplicitFinish();|; r=doug.turner
authorSerge Gautherie <sgautherie.bz@free.fr>
Tue, 17 Mar 2009 15:22:54 +0100
changeset 26248 1b83dc5ed168fd03320c884a02122a2cbfc0eb68
parent 26247 d46a19ca80eea748add35d50b761ff3fdcc2b0cb
child 26249 1752f796d0aa497715818280698323c7545786c5
push id5975
push usersgautherie.bz@free.fr
push dateTue, 17 Mar 2009 14:23:33 +0000
treeherderautoland@01987cfc569b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdoug.turner
bugs451949
milestone1.9.2a1pre
Bug 451949 - Mochitest <geolocation/test_manyWindows.html> fails intermittently, when some previous tests failed (!?); (Av1) Add missing |SimpleTest.waitForExplicitFinish();|; r=doug.turner
dom/tests/mochitest/geolocation/test_manyWindows.html
--- a/dom/tests/mochitest/geolocation/test_manyWindows.html
+++ b/dom/tests/mochitest/geolocation/test_manyWindows.html
@@ -32,25 +32,26 @@ for(var i = 0; i < numberOfWindows; i++)
   windows[i] = window.open("geolocation.html", "_blank", "width=700,height=400");
 }
 
 for(var i = 0; i < numberOfWindows; i++) {
   windows[i].close();
   totalWindows --;
 }
 
+SimpleTest.waitForExplicitFinish();
+
 function checkDone()
 {
     if (totalWindows == 0)
     {
         ok(navigator.geolocation, "Opened a bunch of windows and didn't crash.");
         clearInterval(timer);
         SimpleTest.finish();
     }
 }
 
 var timer = setInterval(checkDone, 1000);
 
 </script>
 </pre>
 </body>
 </html>
-