Enable Shadow DOM for tests (#34299)

* Enable shadowdom implementation in all tests.

Signed-off-by: Josh Matthews <josh@joshmatthews.net>

* Update test expectations.

Signed-off-by: Josh Matthews <josh@joshmatthews.net>

---------

Signed-off-by: Josh Matthews <josh@joshmatthews.net>
This commit is contained in:
Josh Matthews 2024-11-20 00:57:50 -05:00 committed by GitHub
parent c73e4baca2
commit 910e8dc89f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
207 changed files with 4735 additions and 260 deletions

View file

@ -0,0 +1,9 @@
[ShadowRoot-delegatesFocus.html]
[default delegatesFocus value]
expected: FAIL
[delegatesFocus set to false in init dict]
expected: FAIL
[delegatesFocus set to true in init dict]
expected: FAIL

View file

@ -0,0 +1,3 @@
[delegatesFocus-tabindex-change.html]
[Setting tabindex on the shadow host of a focused element with delegatesFocus should not change focus.]
expected: FAIL

View file

@ -0,0 +1,2 @@
[focus-pseudo-matches-on-shadow-host.html]
expected: TIMEOUT

View file

@ -0,0 +1,2 @@
[focus-pseudo-on-shadow-host-1.html]
expected: FAIL

View file

@ -0,0 +1,2 @@
[focus-pseudo-on-shadow-host-2.html]
expected: CRASH

View file

@ -0,0 +1,2 @@
[focus-pseudo-on-shadow-host-3.html]
expected: CRASH

View file

@ -0,0 +1,36 @@
[focus-selector-delegatesFocus.html]
[:focus applies to host with delegatesFocus=true when the shadow root's descendant has focus]
expected: FAIL
[:focus does not apply to host with delegatesFocus=true when slotted element has focus]
expected: FAIL
[:focus applies to host with delegatesFocus=true when an element in a nested shadow tree with delegatesFocus=true is focused]
expected: FAIL
[:focus should be removed from hosts with delegatesFocus=true when none of the elements in a nested shadow tree with delegatesFocus=true is focused]
expected: FAIL
[:focus applies to host with delegatesFocus=true when an element in a nested shadow tree with delegatesFocus=false is focused]
expected: FAIL
[:focus should be removed from hosts with delegatesFocus=true when none of the elements in a nested shadow tree with delegatesFocus=false is focused]
expected: FAIL
[:focus applies to host with delegatesFocus=false when the shadow root's descendant has focus]
expected: FAIL
[:focus does not apply to host with delegatesFocus=false when slotted element has focus]
expected: FAIL
[:focus applies to host with delegatesFocus=false when an element in a nested shadow tree with delegatesFocus=true is focused]
expected: FAIL
[:focus should be removed from hosts with delegatesFocus=false when none of the elements in a nested shadow tree with delegatesFocus=true is focused]
expected: FAIL
[:focus applies to host with delegatesFocus=false when an element in a nested shadow tree with delegatesFocus=false is focused]
expected: FAIL
[:focus should be removed from hosts with delegatesFocus=false when none of the elements in a nested shadow tree with delegatesFocus=false is focused]
expected: FAIL

View file

@ -0,0 +1,6 @@
[focus-shadowhost-display-none.html]
[when shadow host itself is focused, it should match display:none, lose focus then becomes display:block again.]
expected: FAIL
[when shadow host with delegatesFocus=true has focused element inside the shadow, it should also match display:none, then lose focus and become display:block again.]
expected: FAIL