Skip to content

Commit

Permalink
HTML: window.open()'s url parameter default
Browse files Browse the repository at this point in the history
  • Loading branch information
annevk authored and natechapin committed Aug 23, 2019
1 parent 75af8c5 commit fdd1b39
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions html/browsers/the-window-object/window-open-defaults.window.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
async_test(t => {
const frame = document.createElement("iframe");
t.add_cleanup(() => frame.remove());
frame.name = "foo";
frame.src = "/common/blank.html";
frame.onload = t.step_func(() => {
frame.onload = t.unreached_func();
t.step_timeout(() => t.done(), 500);
assert_equals(window[0], window.open(undefined, "foo"));
});
document.body.append(frame);
}, "window.open()'s url parameter default");

0 comments on commit fdd1b39

Please sign in to comment.