-
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 1529726 [wpt PR 15414] - HTML: window.length and named access, a=…
…testonly Automatic update from web-platform-tests HTML: window.length and named access For whatwg/html#4368. -- wpt-commits: 3a43f99a56a4c016e3f1cda41330f1a2c0e780ff wpt-pr: 15414 UltraBlame original commit: 8566ae4d152605453ebe6715ec4f2f8af60a95d3
- Loading branch information
Showing
1 changed file
with
243 additions
and
0 deletions.
There are no files selected for viewing
243 changes: 243 additions & 0 deletions
243
testing/web-platform/tests/html/browsers/the-window-object/length-attribute.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,243 @@ | ||
async_test | ||
( | ||
t | ||
= | ||
> | ||
{ | ||
const | ||
frame | ||
= | ||
document | ||
. | ||
createElement | ||
( | ||
" | ||
iframe | ||
" | ||
) | ||
; | ||
frame | ||
. | ||
srcdoc | ||
= | ||
" | ||
< | ||
iframe | ||
name | ||
= | ||
x | ||
srcdoc | ||
= | ||
' | ||
< | ||
iframe | ||
name | ||
= | ||
z | ||
> | ||
< | ||
/ | ||
iframe | ||
> | ||
' | ||
> | ||
< | ||
/ | ||
iframe | ||
> | ||
< | ||
iframe | ||
name | ||
= | ||
y | ||
> | ||
< | ||
/ | ||
iframe | ||
> | ||
" | ||
; | ||
frame | ||
. | ||
onload | ||
= | ||
t | ||
. | ||
step_func_done | ||
( | ||
( | ||
) | ||
= | ||
> | ||
{ | ||
const | ||
frameW | ||
= | ||
frame | ||
. | ||
contentWindow | ||
; | ||
assert_equals | ||
( | ||
frameW | ||
. | ||
length | ||
2 | ||
) | ||
; | ||
assert_not_equals | ||
( | ||
frameW | ||
. | ||
x | ||
undefined | ||
) | ||
; | ||
assert_not_equals | ||
( | ||
frameW | ||
. | ||
y | ||
undefined | ||
) | ||
; | ||
assert_equals | ||
( | ||
frameW | ||
. | ||
z | ||
undefined | ||
) | ||
; | ||
assert_equals | ||
( | ||
frameW | ||
. | ||
x | ||
frameW | ||
[ | ||
0 | ||
] | ||
) | ||
; | ||
assert_equals | ||
( | ||
frameW | ||
. | ||
y | ||
frameW | ||
[ | ||
1 | ||
] | ||
) | ||
; | ||
const | ||
xFrameW | ||
= | ||
frameW | ||
. | ||
x | ||
; | ||
assert_equals | ||
( | ||
xFrameW | ||
. | ||
length | ||
1 | ||
) | ||
; | ||
assert_not_equals | ||
( | ||
xFrameW | ||
. | ||
z | ||
undefined | ||
) | ||
; | ||
assert_equals | ||
( | ||
xFrameW | ||
. | ||
z | ||
xFrameW | ||
[ | ||
0 | ||
] | ||
) | ||
; | ||
frame | ||
. | ||
remove | ||
( | ||
) | ||
; | ||
assert_equals | ||
( | ||
frameW | ||
. | ||
length | ||
0 | ||
) | ||
; | ||
assert_equals | ||
( | ||
frameW | ||
. | ||
x | ||
undefined | ||
) | ||
; | ||
assert_equals | ||
( | ||
frameW | ||
[ | ||
0 | ||
] | ||
undefined | ||
) | ||
; | ||
assert_equals | ||
( | ||
xFrameW | ||
. | ||
length | ||
0 | ||
) | ||
; | ||
assert_equals | ||
( | ||
xFrameW | ||
. | ||
z | ||
undefined | ||
) | ||
; | ||
} | ||
) | ||
; | ||
document | ||
. | ||
body | ||
. | ||
append | ||
( | ||
frame | ||
) | ||
; | ||
} | ||
" | ||
Window | ||
object | ||
' | ||
s | ||
length | ||
IDL | ||
attribute | ||
( | ||
and | ||
named | ||
access | ||
) | ||
" | ||
) | ||
; |