Skip to content

Commit

Permalink
HTML: document.open() and tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
annevk authored and TimothyGu committed Jul 13, 2018
1 parent 9e4a93a commit 7f392b3
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
async_test(t => {
const frame = document.body.appendChild(document.createElement("iframe"));
let happened = false;
frame.contentWindow.setTimeout(() => happened = true, 100);
frame.contentDocument.open();
t.step_timeout(() => {
assert_true(happened);
t.done();
}, 200);
// Ensure the load event fires and testharness doesn't timeout
frame.contentDocument.close();
}, "document.open() and tasks");

0 comments on commit 7f392b3

Please sign in to comment.