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

@ -1,3 +0,0 @@
[navigation-unload-same-origin-fragment.html]
[Tests that a fragment navigation in the unload handler will not block the initial navigation]
expected: FAIL

View file

@ -1,2 +1,2 @@
[2d.text-outside-of-the-flat-tree.html]
expected: FAIL
expected: CRASH

View file

@ -1,5 +1,5 @@
[createImageBitmap-transfer.html]
expected: ERROR
expected: TIMEOUT
[Transfer ImageBitmap created from a vector HTMLImageElement]
expected: FAIL

View file

@ -1,4 +1,5 @@
[dir-auto-dynamic-changes.window.html]
expected: CRASH
[dynamic insertion of RTL text in a child element]
expected: FAIL

View file

@ -1,2 +1,2 @@
[dir-shadow-01.html]
expected: FAIL
expected: CRASH

View file

@ -1,2 +1,2 @@
[dir-shadow-02.html]
expected: FAIL
expected: CRASH

View file

@ -1,2 +1,2 @@
[dir-shadow-03.html]
expected: FAIL
expected: CRASH

View file

@ -1,2 +1,2 @@
[dir-shadow-04.html]
expected: FAIL
expected: CRASH

View file

@ -1,2 +1,2 @@
[dir-shadow-05.html]
expected: FAIL
expected: CRASH

View file

@ -1,2 +1,2 @@
[dir-shadow-06.html]
expected: FAIL
expected: CRASH

View file

@ -1,2 +1,2 @@
[dir-shadow-07.html]
expected: FAIL
expected: CRASH

View file

@ -1,2 +1,2 @@
[dir-shadow-08.html]
expected: FAIL
expected: CRASH

View file

@ -1,2 +1,2 @@
[dir-shadow-09.html]
expected: FAIL
expected: CRASH

View file

@ -1,2 +1,2 @@
[dir-shadow-10.html]
expected: FAIL
expected: CRASH

View file

@ -1,2 +1,2 @@
[dir-shadow-11.html]
expected: FAIL
expected: CRASH

View file

@ -1,2 +1,2 @@
[dir-shadow-12.html]
expected: FAIL
expected: CRASH

View file

@ -1,2 +1,2 @@
[dir-shadow-31.html]
expected: FAIL
expected: CRASH

View file

@ -1,2 +1,2 @@
[dir-shadow-35.html]
expected: FAIL
expected: CRASH

View file

@ -1,2 +1,2 @@
[dir-shadow-41.html]
expected: FAIL
expected: CRASH

View file

@ -1,2 +1,2 @@
[dir-shadow-42.html]
expected: FAIL
expected: CRASH

View file

@ -1,4 +1,5 @@
[dir-slots-directionality.html]
expected: CRASH
[Slots: Directionality: dir=rtl on slot]
expected: FAIL

View file

@ -1,21 +1,3 @@
[lang-attribute-shadow.window.html]
[lang only on slot]
expected: FAIL
[lang only on host]
expected: FAIL
[lang on host and slot]
expected: FAIL
[lang on host and slotted element]
expected: FAIL
[lang on host and slot and slotted element]
expected: FAIL
[lang on slot inherits from shadow host]
expected: FAIL
[lang on slot inherits from parent]
expected: FAIL

View file

@ -1,4 +1,5 @@
[contentEditable-slotted-inherit.html]
expected: CRASH
[Slotted child of contenteditable host should be editable - slot direct child of shadow root]
expected: FAIL

View file

@ -1,2 +1,360 @@
[tabindex-getter.html]
expected: ERROR
[input.tabIndex should return 0 by default]
expected: FAIL
[input.tabIndex should return -1 when set to -1]
expected: FAIL
[input.tabIndex should return 0 when set to 0]
expected: FAIL
[input.tabIndex should return 1 when set to 1]
expected: FAIL
[input[type='hidden'\].tabIndex should return 0 by default]
expected: FAIL
[input[type='hidden'\].tabIndex should return -1 when set to -1]
expected: FAIL
[input[type='hidden'\].tabIndex should return 0 when set to 0]
expected: FAIL
[input[type='hidden'\].tabIndex should return 1 when set to 1]
expected: FAIL
[button.tabIndex should return 0 by default]
expected: FAIL
[button.tabIndex should return -1 when set to -1]
expected: FAIL
[button.tabIndex should return 0 when set to 0]
expected: FAIL
[button.tabIndex should return 1 when set to 1]
expected: FAIL
[button[disabled\].tabIndex should return 0 by default]
expected: FAIL
[button[disabled\].tabIndex should return -1 when set to -1]
expected: FAIL
[button[disabled\].tabIndex should return 0 when set to 0]
expected: FAIL
[button[disabled\].tabIndex should return 1 when set to 1]
expected: FAIL
[button[hidden\].tabIndex should return 0 by default]
expected: FAIL
[button[hidden\].tabIndex should return -1 when set to -1]
expected: FAIL
[button[hidden\].tabIndex should return 0 when set to 0]
expected: FAIL
[button[hidden\].tabIndex should return 1 when set to 1]
expected: FAIL
[a.tabIndex should return 0 by default]
expected: FAIL
[a.tabIndex should return -1 when set to -1]
expected: FAIL
[a.tabIndex should return 0 when set to 0]
expected: FAIL
[a.tabIndex should return 1 when set to 1]
expected: FAIL
[a[href\].tabIndex should return 0 by default]
expected: FAIL
[a[href\].tabIndex should return -1 when set to -1]
expected: FAIL
[a[href\].tabIndex should return 0 when set to 0]
expected: FAIL
[a[href\].tabIndex should return 1 when set to 1]
expected: FAIL
[svg a.tabIndex should return 0 by default]
expected: FAIL
[svg a.tabIndex should return -1 when set to -1]
expected: FAIL
[svg a.tabIndex should return 0 when set to 0]
expected: FAIL
[svg a.tabIndex should return 1 when set to 1]
expected: FAIL
[textarea.tabIndex should return 0 by default]
expected: FAIL
[textarea.tabIndex should return -1 when set to -1]
expected: FAIL
[textarea.tabIndex should return 0 when set to 0]
expected: FAIL
[textarea.tabIndex should return 1 when set to 1]
expected: FAIL
[select.tabIndex should return 0 by default]
expected: FAIL
[select.tabIndex should return -1 when set to -1]
expected: FAIL
[select.tabIndex should return 0 when set to 0]
expected: FAIL
[select.tabIndex should return 1 when set to 1]
expected: FAIL
[select[multiple\].tabIndex should return 0 by default]
expected: FAIL
[select[multiple\].tabIndex should return -1 when set to -1]
expected: FAIL
[select[multiple\].tabIndex should return 0 when set to 0]
expected: FAIL
[select[multiple\].tabIndex should return 1 when set to 1]
expected: FAIL
[option.tabIndex should return -1 by default]
expected: FAIL
[option.tabIndex should return -1 when set to -1]
expected: FAIL
[option.tabIndex should return 0 when set to 0]
expected: FAIL
[option.tabIndex should return 1 when set to 1]
expected: FAIL
[optgroup.tabIndex should return -1 by default]
expected: FAIL
[optgroup.tabIndex should return -1 when set to -1]
expected: FAIL
[optgroup.tabIndex should return 0 when set to 0]
expected: FAIL
[optgroup.tabIndex should return 1 when set to 1]
expected: FAIL
[iframe.tabIndex should return 0 by default]
expected: FAIL
[iframe.tabIndex should return -1 when set to -1]
expected: FAIL
[iframe.tabIndex should return 0 when set to 0]
expected: FAIL
[iframe.tabIndex should return 1 when set to 1]
expected: FAIL
[embed.tabIndex should return -1 by default]
expected: FAIL
[embed.tabIndex should return -1 when set to -1]
expected: FAIL
[embed.tabIndex should return 0 when set to 0]
expected: FAIL
[embed.tabIndex should return 1 when set to 1]
expected: FAIL
[object.tabIndex should return 0 by default]
expected: FAIL
[object.tabIndex should return -1 when set to -1]
expected: FAIL
[object.tabIndex should return 0 when set to 0]
expected: FAIL
[object.tabIndex should return 1 when set to 1]
expected: FAIL
[span.tabIndex should return -1 by default]
expected: FAIL
[span.tabIndex should return -1 when set to -1]
expected: FAIL
[span.tabIndex should return 0 when set to 0]
expected: FAIL
[span.tabIndex should return 1 when set to 1]
expected: FAIL
[div.tabIndex should return -1 by default]
expected: FAIL
[div.tabIndex should return -1 when set to -1]
expected: FAIL
[div.tabIndex should return 0 when set to 0]
expected: FAIL
[div.tabIndex should return 1 when set to 1]
expected: FAIL
[link#nohref.tabIndex should return -1 by default]
expected: FAIL
[link#nohref.tabIndex should return -1 when set to -1]
expected: FAIL
[link#nohref.tabIndex should return 0 when set to 0]
expected: FAIL
[link#nohref.tabIndex should return 1 when set to 1]
expected: FAIL
[link[href\].tabIndex should return -1 by default]
expected: FAIL
[link[href\].tabIndex should return -1 when set to -1]
expected: FAIL
[link[href\].tabIndex should return 0 when set to 0]
expected: FAIL
[link[href\].tabIndex should return 1 when set to 1]
expected: FAIL
[details.tabIndex should return -1 by default]
expected: FAIL
[details.tabIndex should return -1 when set to -1]
expected: FAIL
[details.tabIndex should return 0 when set to 0]
expected: FAIL
[details.tabIndex should return 1 when set to 1]
expected: FAIL
[summary.tabIndex should return 0 by default]
expected: FAIL
[summary.tabIndex should return -1 when set to -1]
expected: FAIL
[summary.tabIndex should return 0 when set to 0]
expected: FAIL
[summary.tabIndex should return 1 when set to 1]
expected: FAIL
[summary#secondsummary.tabIndex should return -1 by default]
expected: FAIL
[summary#secondsummary.tabIndex should return -1 when set to -1]
expected: FAIL
[summary#secondsummary.tabIndex should return 0 when set to 0]
expected: FAIL
[summary#secondsummary.tabIndex should return 1 when set to 1]
expected: FAIL
[#hostDelegatesFocus.tabIndex should return -1 by default]
expected: FAIL
[#hostDelegatesFocus.tabIndex should return -1 when set to -1]
expected: FAIL
[#hostDelegatesFocus.tabIndex should return 0 when set to 0]
expected: FAIL
[#hostDelegatesFocus.tabIndex should return 1 when set to 1]
expected: FAIL
[#hostNonDelegatesFocus.tabIndex should return -1 by default]
expected: FAIL
[#hostNonDelegatesFocus.tabIndex should return -1 when set to -1]
expected: FAIL
[#hostNonDelegatesFocus.tabIndex should return 0 when set to 0]
expected: FAIL
[#hostNonDelegatesFocus.tabIndex should return 1 when set to 1]
expected: FAIL
[div[contenteditable\].tabIndex should return -1 by default]
expected: FAIL
[div[contenteditable\].tabIndex should return -1 when set to -1]
expected: FAIL
[div[contenteditable\].tabIndex should return 0 when set to 0]
expected: FAIL
[div[contenteditable\].tabIndex should return 1 when set to 1]
expected: FAIL
[#scrollable.tabIndex should return -1 by default]
expected: FAIL
[#scrollable.tabIndex should return -1 when set to -1]
expected: FAIL
[#scrollable.tabIndex should return 0 when set to 0]
expected: FAIL
[#scrollable.tabIndex should return 1 when set to 1]
expected: FAIL
[fieldset.tabIndex should return -1 by default]
expected: FAIL
[fieldset.tabIndex should return -1 when set to -1]
expected: FAIL
[fieldset.tabIndex should return 0 when set to 0]
expected: FAIL
[fieldset.tabIndex should return 1 when set to 1]
expected: FAIL
[output.tabIndex should return -1 by default]
expected: FAIL
[output.tabIndex should return -1 when set to -1]
expected: FAIL
[output.tabIndex should return 0 when set to 0]
expected: FAIL
[output.tabIndex should return 1 when set to 1]
expected: FAIL
[slot.tabIndex should return -1 by default]
expected: FAIL
[slot.tabIndex should return -1 when set to -1]
expected: FAIL
[slot.tabIndex should return 0 when set to 0]
expected: FAIL
[slot.tabIndex should return 1 when set to 1]
expected: FAIL

View file

@ -1,18 +0,0 @@
[slot-direction.window.html]
[<slot> element sets CSS direction property: <slot> inherits direction from parent]
expected: FAIL
[<slot> element sets CSS direction property: <slot> inherits CSS direction from parent]
expected: FAIL
[<slot> element sets CSS direction property: <slot dir=ltr>]
expected: FAIL
[<slot> element sets CSS direction property: <slot dir=rtl>]
expected: FAIL
[<slot> element sets CSS direction property: <slot dir=auto> resolving to LTR]
expected: FAIL
[<slot> element sets CSS direction property: <slot dir=auto> resolving to RTL]
expected: FAIL

View file

@ -1,2 +1,2 @@
[legend-in-slot.html]
expected: FAIL
expected: CRASH

View file

@ -0,0 +1,2 @@
[sticky-content-crash.html]
expected: CRASH

View file

@ -1,2 +1,3 @@
[meta-color-scheme-single-value-in-shadow-tree.html]
expected: ERROR
[Meta color-scheme in shadow tree does not apply.]
expected: FAIL

View file

@ -1,2 +1,2 @@
[canvas-descendants-focusability-004.tentative.html]
expected: ERROR
expected: TIMEOUT

View file

@ -1,4 +1,4 @@
[iframe_sandbox_popups_escaping-3.html]
expected: CRASH
expected: TIMEOUT
[Check that popups from a sandboxed iframe escape the sandbox if\n allow-popups-to-escape-sandbox is used]
expected: FAIL
expected: TIMEOUT

View file

@ -1,4 +1,4 @@
[iframe_sandbox_popups_nonescaping-1.html]
expected: TIMEOUT
[Check that popups from a sandboxed iframe do not escape the sandbox]
expected: FAIL
expected: NOTRUN

View file

@ -1,2 +1,2 @@
[sizes-dynamic-002.html]
expected: TIMEOUT
expected: FAIL

View file

@ -1,4 +1,5 @@
[radio-disconnected-group-owner.html]
expected: CRASH
[Removed elements are moved into separate radio groups.]
expected: FAIL

View file

@ -0,0 +1,2 @@
[showmodal-in-shadow-crash.html]
expected: CRASH

View file

@ -0,0 +1,3 @@
[DOMContentLoaded-defer.html]
[The end: DOMContentLoaded and defer scripts]
expected: FAIL