Bug 1428745 - Remove support for version parameter from script loader - fixing a broken depending test - CLOSED TREE, r=me
☠☠ backed out by 38614ffd21d1 ☠ ☠
authorAndrea Marchesini <amarchesini@mozilla.com>
Tue, 09 Jan 2018 18:11:03 +0100
changeset 450250 dfb9af93ac532643b7f472c3d557ed3c9419665d
parent 450249 3fc0bcaa2ce2ae65832c810d2b2b6990fff81c8b
child 450251 d174249d617abcd31595af9d720994095dd932b9
push id8527
push userCallek@gmail.com
push dateThu, 11 Jan 2018 21:05:50 +0000
treeherdermozilla-beta@95342d212a7a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs1428745
milestone59.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 1428745 - Remove support for version parameter from script loader - fixing a broken depending test - CLOSED TREE, r=me
dom/tests/mochitest/script/test_bug1053321.html
--- a/dom/tests/mochitest/script/test_bug1053321.html
+++ b/dom/tests/mochitest/script/test_bug1053321.html
@@ -18,23 +18,24 @@ are unexpectedly blocked.
   <!-- this script is not loaded until file_blocked_script.sjs?unblock&async request is made,
        when this script is executed, it sets window.script_executed_async to true
    -->
   <script async src="file_blocked_script.sjs?blocked&async"></script>
 </head>
 
 <body>
   <script>
-    // No need for an async test, we make it all before window.onload.
-    //
+    SimpleTest.waitForExplicitFinish();
+
     // We can't test whether the two scripts have not been executed here, since
     // preloads of the two images below (that unblock the two tested <head>
     // scripts) may happen sooner than this script executes.
     document.addEventListener("DOMContentLoaded", function() {
       ok(window.script_executed_defer, "Deferred script executed before DOMContentLoaded");
     });
     window.addEventListener("load", function() {
       ok(window.script_executed_async, "Async script executed before onload");
+      SimpleTest.finish();
     }, true);
   </script>
   <img src="file_blocked_script.sjs?unblock&defer"/>
   <img src="file_blocked_script.sjs?unblock&async"/>
 </body>