diff --git a/content/xul/content/test/test_bug233643.xul b/content/xul/content/test/test_bug233643.xul index ac3fdbc6527..2ce7be6f4c2 100644 --- a/content/xul/content/test/test_bug233643.xul +++ b/content/xul/content/test/test_bug233643.xul @@ -67,7 +67,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=233643 } function do_test() { - setTimeout(test_233643, 1000); + setTimeout(test_233643, 0); } addLoadEvent(do_test); ]]> diff --git a/intl/uconv/tests/test_utf8_overconsumption.html b/intl/uconv/tests/test_utf8_overconsumption.html index f6735cf243c..96b1c1b1431 100644 --- a/intl/uconv/tests/test_utf8_overconsumption.html +++ b/intl/uconv/tests/test_utf8_overconsumption.html @@ -27,7 +27,9 @@ function test() SimpleTest.finish(); } - setTimeout(test, 100); + addLoadEvent(function() { + setTimeout(test, 0); + }); SimpleTest.waitForExplicitFinish(); diff --git a/security/manager/ssl/tests/mochitest/mixedcontent/test_bug329869.html b/security/manager/ssl/tests/mochitest/mixedcontent/test_bug329869.html index f69d9514974..ac3baefa189 100644 --- a/security/manager/ssl/tests/mochitest/mixedcontent/test_bug329869.html +++ b/security/manager/ssl/tests/mochitest/mixedcontent/test_bug329869.html @@ -17,7 +17,7 @@ var newElement = document.createElement("script"); newElement.src= "http://example.org/tests/security/ssl/mixedcontent/bug329869.js"; document.body.appendChild(newElement); - }, 500); + }, 0); } function afterNavigationTest() diff --git a/security/manager/ssl/tests/mochitest/mixedcontent/test_bug472986.html b/security/manager/ssl/tests/mochitest/mixedcontent/test_bug472986.html index 8b3cc025191..12deb39dd01 100644 --- a/security/manager/ssl/tests/mochitest/mixedcontent/test_bug472986.html +++ b/security/manager/ssl/tests/mochitest/mixedcontent/test_bug472986.html @@ -14,7 +14,9 @@ var onLoadFunction = window.onload; window.onload = function() { - window.setTimeout(onLoadFunction, 500); + var img1 = document.getElementById("img1"); + img1.addEventListener("load", onLoadFunction, false); + img1.src = "https://example.com/tests/security/ssl/mixedcontent/moonsurface.jpg"; } function runTest() @@ -34,9 +36,5 @@
-