Bug 1428745 - Remove support for version parameter from script loader - fixing a broken depending test - CLOSED TREE, r=me

This commit is contained in:
Andrea Marchesini 2018-01-09 18:11:03 +01:00
Родитель 54c2355b9d
Коммит b63423fdb2
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -23,8 +23,8 @@ are unexpectedly blocked.
<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.
@ -33,6 +33,7 @@ are unexpectedly blocked.
});
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"/>