Update web-platform-tests to revision 78862c14a70cabb48c685144666912f08e726390

This commit is contained in:
Ms2ger 2016-01-18 12:32:14 +01:00
parent ce0b89d310
commit 1f5d8fedd4
2469 changed files with 193955 additions and 6210 deletions

View file

@ -0,0 +1,13 @@
t.step(function() {
assert_false(dcl, "DOMContentLoaded should not have fired before executing " +
"a defer script");
setTimeout(t.step_func(function() {
assert_false(dcl, "DOMContentLoaded should not have fired before " +
"executing a task queued from a defer script");
setTimeout(t.step_func_done(function() {
assert_true(dcl, "DOMContentLoaded should have fired in a task that " +
"was queued after the DOMContentLoaded task was queued");
}), 0);
}), 0);
});

View file

@ -0,0 +1,17 @@
<!doctype html>
<meta charset=utf-8>
<title>The end: DOMContentLoaded and defer scripts</title>
<link rel=help href="https://html.spec.whatwg.org/multipage/#the-end">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id="log"></div>
<script>
var dcl;
var t = async_test(function() {
dcl = false;
document.addEventListener("DOMContentLoaded", function(e) {
dcl = true;
});
});
</script>
<script defer src=DOMContentLoaded-defer-support.js></script>