-
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 1927802 [wpt PR 48854] - Throw exception for popovers/dialogs in …
…non-active documents, a=testonly Automatic update from web-platform-tests Throw exception for popovers/dialogs in non-active documents See discussion at: whatwg/html#10659 and spec PR at: whatwg/html#10705 Web-facing change PSA: https://groups.google.com/a/chromium.org/g/blink-dev/c/jRFiIIkXv_k/m/jnPTfg8WBgAJ Fixed: 373684393 Change-Id: I50e400ee526775f915f006865301fff2f04016b4 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5943740 Reviewed-by: Domenic Denicola <domenicchromium.org> Auto-Submit: Mason Freed <masonfchromium.org> Commit-Queue: Domenic Denicola <domenicchromium.org> Cr-Commit-Position: refs/heads/main{#1375681} -- wpt-commits: 0b99ee5e8c799f9fbf7d1550ef72fec8bdb45760 wpt-pr: 48854 UltraBlame original commit: ac6cc55b745eb0d675d453266bde353b7d335402
- Loading branch information
Showing
3 changed files
with
391 additions
and
20 deletions.
There are no files selected for viewing
184 changes: 184 additions & 0 deletions
184
.../tests/html/semantics/interactive-elements/the-dialog-element/dialog-active-document.html
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,184 @@ | ||
< | ||
! | ||
DOCTYPE | ||
html | ||
> | ||
< | ||
meta | ||
charset | ||
= | ||
" | ||
utf | ||
- | ||
8 | ||
" | ||
> | ||
< | ||
link | ||
rel | ||
= | ||
" | ||
author | ||
" | ||
href | ||
= | ||
" | ||
mailto | ||
: | ||
masonf | ||
chromium | ||
. | ||
org | ||
" | ||
> | ||
< | ||
link | ||
rel | ||
= | ||
help | ||
href | ||
= | ||
" | ||
https | ||
: | ||
/ | ||
/ | ||
github | ||
. | ||
com | ||
/ | ||
whatwg | ||
/ | ||
html | ||
/ | ||
pull | ||
/ | ||
10705 | ||
" | ||
> | ||
< | ||
script | ||
src | ||
= | ||
" | ||
/ | ||
resources | ||
/ | ||
testharness | ||
. | ||
js | ||
" | ||
> | ||
< | ||
/ | ||
script | ||
> | ||
< | ||
script | ||
src | ||
= | ||
" | ||
/ | ||
resources | ||
/ | ||
testharnessreport | ||
. | ||
js | ||
" | ||
> | ||
< | ||
/ | ||
script | ||
> | ||
< | ||
script | ||
> | ||
test | ||
( | ||
( | ||
) | ||
= | ||
> | ||
{ | ||
const | ||
doc | ||
= | ||
document | ||
. | ||
implementation | ||
. | ||
createHTMLDocument | ||
( | ||
) | ||
; | ||
const | ||
dialog | ||
= | ||
doc | ||
. | ||
createElement | ||
( | ||
' | ||
dialog | ||
' | ||
) | ||
; | ||
doc | ||
. | ||
body | ||
. | ||
appendChild | ||
( | ||
dialog | ||
) | ||
; | ||
assert_throws_dom | ||
( | ||
' | ||
InvalidStateError | ||
' | ||
( | ||
) | ||
= | ||
> | ||
dialog | ||
. | ||
showModal | ||
( | ||
) | ||
) | ||
; | ||
assert_false | ||
( | ||
dialog | ||
. | ||
matches | ||
( | ||
' | ||
[ | ||
open | ||
] | ||
' | ||
) | ||
) | ||
; | ||
} | ||
' | ||
showModal | ||
should | ||
throw | ||
when | ||
the | ||
document | ||
isn | ||
\ | ||
' | ||
t | ||
active | ||
' | ||
) | ||
; | ||
< | ||
/ | ||
script | ||
> |
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
Oops, something went wrong.