aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt
diff options
context:
space:
mode:
authorbatu_hoang <55729155+longvatrong111@users.noreply.github.com>2025-03-20 01:58:16 +0800
committerGitHub <noreply@github.com>2025-03-19 17:58:16 +0000
commitdb74179dc89910113bbf5a188f3f628d1f2cbf58 (patch)
tree8e0a746f290aa9cbf1ce16c9005522fb62cd9031 /tests/wpt
parent11d47558b3f8522bc2835c780489832d330046e0 (diff)
downloadservo-db74179dc89910113bbf5a188f3f628d1f2cbf58.tar.gz
servo-db74179dc89910113bbf5a188f3f628d1f2cbf58.zip
Make Element::attach_shadow() and ShadowRoot closer to spec (#36024)
Signed-off-by: batu_hoang <longvatrong111@gmail.com>
Diffstat (limited to 'tests/wpt')
-rw-r--r--tests/wpt/meta/custom-elements/element-internals-shadowroot.html.ini4
-rw-r--r--tests/wpt/meta/dom/idlharness.window.js.ini9
-rw-r--r--tests/wpt/meta/shadow-dom/Element-interface-attachShadow-custom-element.html.ini6
-rw-r--r--tests/wpt/meta/shadow-dom/Element-interface-attachShadow.html.ini3
-rw-r--r--tests/wpt/meta/shadow-dom/declarative/declarative-shadow-dom-attachment.html.ini102
-rw-r--r--tests/wpt/meta/shadow-dom/declarative/declarative-shadow-dom-basic.html.ini3
-rw-r--r--tests/wpt/meta/shadow-dom/declarative/declarative-with-disabled-shadow.html.ini3
-rw-r--r--tests/wpt/meta/shadow-dom/focus/ShadowRoot-delegatesFocus.html.ini9
8 files changed, 0 insertions, 139 deletions
diff --git a/tests/wpt/meta/custom-elements/element-internals-shadowroot.html.ini b/tests/wpt/meta/custom-elements/element-internals-shadowroot.html.ini
deleted file mode 100644
index fb222786f6a..00000000000
--- a/tests/wpt/meta/custom-elements/element-internals-shadowroot.html.ini
+++ /dev/null
@@ -1,4 +0,0 @@
-[element-internals-shadowroot.html]
- expected: ERROR
- [ElementInternals.shadowRoot doesn't reveal pre-attached closed shadowRoot]
- expected: FAIL
diff --git a/tests/wpt/meta/dom/idlharness.window.js.ini b/tests/wpt/meta/dom/idlharness.window.js.ini
index e50d8b5fb02..0e40be437e7 100644
--- a/tests/wpt/meta/dom/idlharness.window.js.ini
+++ b/tests/wpt/meta/dom/idlharness.window.js.ini
@@ -164,9 +164,6 @@
[AbortSignal interface: new AbortController().signal must inherit property "abort()" with the proper type]
expected: FAIL
- [ShadowRoot interface: attribute delegatesFocus]
- expected: FAIL
-
[XSLTProcessor interface: existence and properties of interface object]
expected: FAIL
@@ -347,9 +344,6 @@
[DocumentFragment interface: operation replaceChildren((Node or TrustedScript or DOMString)...)]
expected: FAIL
- [ShadowRoot interface: attribute serializable]
- expected: FAIL
-
[Element interface: operation prepend((Node or TrustedScript or DOMString)...)]
expected: FAIL
@@ -442,6 +436,3 @@
[Element interface: calling moveBefore(Node, Node?) on element with too few arguments must throw TypeError]
expected: FAIL
-
-
-[idlharness.window.html?include=Node]
diff --git a/tests/wpt/meta/shadow-dom/Element-interface-attachShadow-custom-element.html.ini b/tests/wpt/meta/shadow-dom/Element-interface-attachShadow-custom-element.html.ini
deleted file mode 100644
index aa68710fb42..00000000000
--- a/tests/wpt/meta/shadow-dom/Element-interface-attachShadow-custom-element.html.ini
+++ /dev/null
@@ -1,6 +0,0 @@
-[Element-interface-attachShadow-custom-element.html]
- [Element.attachShadow for an autonomous custom element with disabledFeatures=["shadow"\] should throw a NotSupportedError]
- expected: FAIL
-
- [Element.attachShadow for a customized built-in element with disabledFeatures=["shadow"\] should throw a NotSupportedError]
- expected: FAIL
diff --git a/tests/wpt/meta/shadow-dom/Element-interface-attachShadow.html.ini b/tests/wpt/meta/shadow-dom/Element-interface-attachShadow.html.ini
deleted file mode 100644
index fc87801c777..00000000000
--- a/tests/wpt/meta/shadow-dom/Element-interface-attachShadow.html.ini
+++ /dev/null
@@ -1,3 +0,0 @@
-[Element-interface-attachShadow.html]
- [Element.attachShadow must throw a NotSupportedError if the context object already hosts a shadow tree]
- expected: FAIL
diff --git a/tests/wpt/meta/shadow-dom/declarative/declarative-shadow-dom-attachment.html.ini b/tests/wpt/meta/shadow-dom/declarative/declarative-shadow-dom-attachment.html.ini
index 99619c27f10..117b3f75b0e 100644
--- a/tests/wpt/meta/shadow-dom/declarative/declarative-shadow-dom-attachment.html.ini
+++ b/tests/wpt/meta/shadow-dom/declarative/declarative-shadow-dom-attachment.html.ini
@@ -50,57 +50,6 @@
[Declarative Shadow DOM as a child of <span>, with mode=open, delegatesFocus=false. Should be safelisted.]
expected: FAIL
- [Declarative Shadow DOM as a child of <article>, with mode=closed, delegatesFocus=false. Should be safelisted.]
- expected: FAIL
-
- [Declarative Shadow DOM as a child of <aside>, with mode=closed, delegatesFocus=false. Should be safelisted.]
- expected: FAIL
-
- [Declarative Shadow DOM as a child of <blockquote>, with mode=closed, delegatesFocus=false. Should be safelisted.]
- expected: FAIL
-
- [Declarative Shadow DOM as a child of <div>, with mode=closed, delegatesFocus=false. Should be safelisted.]
- expected: FAIL
-
- [Declarative Shadow DOM as a child of <footer>, with mode=closed, delegatesFocus=false. Should be safelisted.]
- expected: FAIL
-
- [Declarative Shadow DOM as a child of <h1>, with mode=closed, delegatesFocus=false. Should be safelisted.]
- expected: FAIL
-
- [Declarative Shadow DOM as a child of <h2>, with mode=closed, delegatesFocus=false. Should be safelisted.]
- expected: FAIL
-
- [Declarative Shadow DOM as a child of <h3>, with mode=closed, delegatesFocus=false. Should be safelisted.]
- expected: FAIL
-
- [Declarative Shadow DOM as a child of <h4>, with mode=closed, delegatesFocus=false. Should be safelisted.]
- expected: FAIL
-
- [Declarative Shadow DOM as a child of <h5>, with mode=closed, delegatesFocus=false. Should be safelisted.]
- expected: FAIL
-
- [Declarative Shadow DOM as a child of <h6>, with mode=closed, delegatesFocus=false. Should be safelisted.]
- expected: FAIL
-
- [Declarative Shadow DOM as a child of <header>, with mode=closed, delegatesFocus=false. Should be safelisted.]
- expected: FAIL
-
- [Declarative Shadow DOM as a child of <main>, with mode=closed, delegatesFocus=false. Should be safelisted.]
- expected: FAIL
-
- [Declarative Shadow DOM as a child of <nav>, with mode=closed, delegatesFocus=false. Should be safelisted.]
- expected: FAIL
-
- [Declarative Shadow DOM as a child of <p>, with mode=closed, delegatesFocus=false. Should be safelisted.]
- expected: FAIL
-
- [Declarative Shadow DOM as a child of <section>, with mode=closed, delegatesFocus=false. Should be safelisted.]
- expected: FAIL
-
- [Declarative Shadow DOM as a child of <span>, with mode=closed, delegatesFocus=false. Should be safelisted.]
- expected: FAIL
-
[Declarative Shadow DOM as a child of <article>, with mode=open, delegatesFocus=true. Should be safelisted.]
expected: FAIL
@@ -151,54 +100,3 @@
[Declarative Shadow DOM as a child of <span>, with mode=open, delegatesFocus=true. Should be safelisted.]
expected: FAIL
-
- [Declarative Shadow DOM as a child of <article>, with mode=closed, delegatesFocus=true. Should be safelisted.]
- expected: FAIL
-
- [Declarative Shadow DOM as a child of <aside>, with mode=closed, delegatesFocus=true. Should be safelisted.]
- expected: FAIL
-
- [Declarative Shadow DOM as a child of <blockquote>, with mode=closed, delegatesFocus=true. Should be safelisted.]
- expected: FAIL
-
- [Declarative Shadow DOM as a child of <div>, with mode=closed, delegatesFocus=true. Should be safelisted.]
- expected: FAIL
-
- [Declarative Shadow DOM as a child of <footer>, with mode=closed, delegatesFocus=true. Should be safelisted.]
- expected: FAIL
-
- [Declarative Shadow DOM as a child of <h1>, with mode=closed, delegatesFocus=true. Should be safelisted.]
- expected: FAIL
-
- [Declarative Shadow DOM as a child of <h2>, with mode=closed, delegatesFocus=true. Should be safelisted.]
- expected: FAIL
-
- [Declarative Shadow DOM as a child of <h3>, with mode=closed, delegatesFocus=true. Should be safelisted.]
- expected: FAIL
-
- [Declarative Shadow DOM as a child of <h4>, with mode=closed, delegatesFocus=true. Should be safelisted.]
- expected: FAIL
-
- [Declarative Shadow DOM as a child of <h5>, with mode=closed, delegatesFocus=true. Should be safelisted.]
- expected: FAIL
-
- [Declarative Shadow DOM as a child of <h6>, with mode=closed, delegatesFocus=true. Should be safelisted.]
- expected: FAIL
-
- [Declarative Shadow DOM as a child of <header>, with mode=closed, delegatesFocus=true. Should be safelisted.]
- expected: FAIL
-
- [Declarative Shadow DOM as a child of <main>, with mode=closed, delegatesFocus=true. Should be safelisted.]
- expected: FAIL
-
- [Declarative Shadow DOM as a child of <nav>, with mode=closed, delegatesFocus=true. Should be safelisted.]
- expected: FAIL
-
- [Declarative Shadow DOM as a child of <p>, with mode=closed, delegatesFocus=true. Should be safelisted.]
- expected: FAIL
-
- [Declarative Shadow DOM as a child of <section>, with mode=closed, delegatesFocus=true. Should be safelisted.]
- expected: FAIL
-
- [Declarative Shadow DOM as a child of <span>, with mode=closed, delegatesFocus=true. Should be safelisted.]
- expected: FAIL
diff --git a/tests/wpt/meta/shadow-dom/declarative/declarative-shadow-dom-basic.html.ini b/tests/wpt/meta/shadow-dom/declarative/declarative-shadow-dom-basic.html.ini
index 4eebe511c1c..9ea3d57e32a 100644
--- a/tests/wpt/meta/shadow-dom/declarative/declarative-shadow-dom-basic.html.ini
+++ b/tests/wpt/meta/shadow-dom/declarative/declarative-shadow-dom-basic.html.ini
@@ -4,6 +4,3 @@
[Declarative Shadow DOM: Fragment parser basic test]
expected: FAIL
-
- [Declarative Shadow DOM: delegates focus attribute]
- expected: FAIL
diff --git a/tests/wpt/meta/shadow-dom/declarative/declarative-with-disabled-shadow.html.ini b/tests/wpt/meta/shadow-dom/declarative/declarative-with-disabled-shadow.html.ini
deleted file mode 100644
index 0c4a32d2ca5..00000000000
--- a/tests/wpt/meta/shadow-dom/declarative/declarative-with-disabled-shadow.html.ini
+++ /dev/null
@@ -1,3 +0,0 @@
-[declarative-with-disabled-shadow.html]
- [Declarative Shadow DOM: declarative shadow should fail if attachShadow() already called]
- expected: FAIL
diff --git a/tests/wpt/meta/shadow-dom/focus/ShadowRoot-delegatesFocus.html.ini b/tests/wpt/meta/shadow-dom/focus/ShadowRoot-delegatesFocus.html.ini
deleted file mode 100644
index d0dc9d86f4e..00000000000
--- a/tests/wpt/meta/shadow-dom/focus/ShadowRoot-delegatesFocus.html.ini
+++ /dev/null
@@ -1,9 +0,0 @@
-[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