-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1574884 [wpt PR 18536] - HTML: window.open()'s url parameter defa…
…ult, a=testonly Automatic update from web-platform-tests HTML: window.open()'s url parameter default For whatwg/html#4851. -- wpt-commits: 539b160b7ff726968281bab083189bd76dce2c33 wpt-pr: 18536 UltraBlame original commit: 351e0b961b79af4e37fc77910aeb6ddee4010ef0
- Loading branch information
Showing
1 changed file
with
137 additions
and
0 deletions.
There are no files selected for viewing
137 changes: 137 additions & 0 deletions
137
testing/web-platform/tests/html/browsers/the-window-object/window-open-defaults.window.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,137 @@ | ||
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 | ||
" | ||
) | ||
; |