blob: 35ce9327bfc3bea185a0717e2acbd82a4967680d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
t.step(function() {
assert_false(dcl, "DOMContentLoaded should not have fired before executing " +
"a defer script");
t.step_timeout(function() {
assert_false(dcl, "DOMContentLoaded should not have fired before " +
"executing a task queued from a defer script");
t.step_timeout(function() {
assert_true(dcl, "DOMContentLoaded should have fired in a task that " +
"was queued after the DOMContentLoaded task was queued");
t.done();
}, 0);
}, 0);
});
|