Skip to content

Commit

Permalink
Fix 096.html and remove 098.html
Browse files Browse the repository at this point in the history
Deferred scripts should have all ran before DOMContentLoaded is fired.
The removed script was a duplicate.
  • Loading branch information
nox committed Jan 14, 2017
1 parent 91717ab commit 4c38bec
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 45 deletions.
4 changes: 3 additions & 1 deletion tests/wpt/metadata/MANIFEST.json
Original file line number Diff line number Diff line change
Expand Up @@ -45843,7 +45843,9 @@
]
},
"local_changes": {
"deleted": [],
"deleted": [
"old-tests/submission/Opera/script_scheduling/098.html"
],
"deleted_reftests": {},
"items": {
"testharness": {
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,22 @@

<div id="log">FAILED (This TC requires JavaScript enabled)</div>

<script>
log("inline script #1");
document.write("<script defer src='scripts/include-1.js'><\/script>")
</script>
<script>
log("inline script #1");
document.write("<script defer src='scripts/include-1.js'><\/script>")
</script>
<script>
log("inline script #2");
var t = async_test();
log("inline script #2");
var t = async_test();

addEventListener("DOMContentLoaded", t.step_func(function() {assert_array_equals(eventOrder, ["inline script #1", "inline script #2"])}), false);
addEventListener("DOMContentLoaded", t.step_func(function() {
assert_array_equals(eventOrder, ["inline script #1", "inline script #2", "external script #1"]);
log("inline script #3");
}), false);

onload = t.step_func(function() {assert_array_equals(eventOrder, ["inline script #1", "inline script #2", "external script #1"]); t.done();});
</script>
onload = t.step_func(function() {
assert_array_equals(eventOrder, ["inline script #1", "inline script #2", "external script #1", "inline script #3"]);
t.done();
});
</script>
</body></html>

This file was deleted.

0 comments on commit 4c38bec

Please sign in to comment.