Bug 673285 - Remove unnecessary timeouts in test, r=smaug, a=testonly
authorJonathan Griffin <jgriffin@mozilla.com>
Wed, 24 Aug 2011 10:47:54 -0700
changeset 76869 cc68eeea347f4aeb411b39ea6e80b96db9c6728d
parent 76868 45bce33d2bd7001fe0bb53ead42a4ecc6752d9b1
child 76870 0dffbdf36868a6f630d35ac29c63c7e42a76cc7d
push id340
push userclegnitto@mozilla.com
push dateTue, 08 Nov 2011 22:56:33 +0000
treeherdermozilla-beta@f745dc151615 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug, testonly
bugs673285
milestone9.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 673285 - Remove unnecessary timeouts in test, r=smaug, a=testonly
docshell/test/navigation/file_bug462076_3.html
docshell/test/navigation/file_document_write_1.html
docshell/test/navigation/file_static_and_dynamic_1.html
docshell/test/navigation/test_sessionhistory.html
--- a/docshell/test/navigation/file_bug462076_3.html
+++ b/docshell/test/navigation/file_bug462076_3.html
@@ -38,15 +38,15 @@
             window.close();
           } else {
             window.location.reload();
           }
         }
       }
     </script>
   </head>
-  <body onload="setTimeout(runTest, 1000);">
+  <body onload="setTimeout(runTest, 0);">
     <div id="container0"></div>
     <div id="container1"></div>
     <div id="container2"></div>
     <div id="container3"></div>
   </body>
 </html>
--- a/docshell/test/navigation/file_document_write_1.html
+++ b/docshell/test/navigation/file_document_write_1.html
@@ -6,17 +6,17 @@
         document.write("<h5 id='dynamic'>document.written content</h5>");
         document.close();
         window.history.go(-1);
         opener.setTimeout("isTestDynamic()", 2500);
       }
 
       function start() {
         if (++opener.testCount == 1) {
-          setTimeout(run, 1000);
+          setTimeout(run, 0);
         }
       }
     </script>
   </head>
   <body onload="start();">
     <h5>static content</h5>
   </body>
 </html>
--- a/docshell/test/navigation/file_static_and_dynamic_1.html
+++ b/docshell/test/navigation/file_static_and_dynamic_1.html
@@ -18,15 +18,15 @@
         opener.ok(new String(staticFrame.contentWindow.location).indexOf(staticFrame.src) >= 0,
                   "Wrong document loaded!");
         opener.nextTest();
         window.close();
       }
     }
     </script>
   </head>
-  <body onload="setTimeout('start()', 1000)">
+  <body onload="setTimeout('start()', 0)">
     <h5>Dynamic</h5>
     <div id="dynamic"></div>
     <h5>Static</h5>
     <div id="static"><iframe id="staticframe" src="frame0.html"></iframe></div>
   </body>
 </html>
--- a/docshell/test/navigation/test_sessionhistory.html
+++ b/docshell/test/navigation/test_sessionhistory.html
@@ -47,15 +47,15 @@ function nextTest_() {
 function isTestDynamic() {
   var dyn = testWindow.document.getElementById("dynamic");
   is(dyn, null, "Should have gone back to the static page!");
   nextTest();
   testWindow.close();
 }
 
 function nextTest() {
-  setTimeout(nextTest_, 1000);
+  setTimeout(nextTest_, 0);
 }
 
 </script>
 </pre>
 </body>
 </html>