blob: 28487111eaa96140f77ae5a7d3e8eb81e1a573f3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
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);
});
|