summaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2020-04-17 07:10:54 -0400
committerMatt A. Tobin <email@mattatobin.com>2020-04-17 07:10:54 -0400
commite31ed5b07466d4a579fe4b025f97c971003fbc3f (patch)
treeabd621b87578770973591fd03608993334f6af64 /testing
parent8beb65dd501cbdcfd6a793027b5de2a1fdfc7149 (diff)
downloadUXP-e31ed5b07466d4a579fe4b025f97c971003fbc3f.tar
UXP-e31ed5b07466d4a579fe4b025f97c971003fbc3f.tar.gz
UXP-e31ed5b07466d4a579fe4b025f97c971003fbc3f.tar.lz
UXP-e31ed5b07466d4a579fe4b025f97c971003fbc3f.tar.xz
UXP-e31ed5b07466d4a579fe4b025f97c971003fbc3f.zip
Bug 1409975 - Implement node distribution for shadow tree slots
* Implementation for assignedNodes * Include slots in the flat tree * Fix event get-the-parent algorithm for a node * Update and add reftests for Shadow DOM v1 * Update web platform tests expectations Tag #1375
Diffstat (limited to 'testing')
-rw-r--r--testing/web-platform/meta/html/dom/interfaces.html.ini17
-rw-r--r--testing/web-platform/meta/html/dom/reflection-misc.html.ini2
-rw-r--r--testing/web-platform/meta/shadow-dom/HTMLSlotElement-interface.html.ini44
-rw-r--r--testing/web-platform/meta/shadow-dom/Slotable-interface.html.ini12
-rw-r--r--testing/web-platform/meta/shadow-dom/event-inside-slotted-node.html.ini38
-rw-r--r--testing/web-platform/meta/shadow-dom/slots-fallback.html.ini32
-rw-r--r--testing/web-platform/meta/shadow-dom/slots.html.ini71
7 files changed, 2 insertions, 214 deletions
diff --git a/testing/web-platform/meta/html/dom/interfaces.html.ini b/testing/web-platform/meta/html/dom/interfaces.html.ini
index db6a464d0..d0ebb0c7d 100644
--- a/testing/web-platform/meta/html/dom/interfaces.html.ini
+++ b/testing/web-platform/meta/html/dom/interfaces.html.ini
@@ -1,6 +1,6 @@
[interfaces.html]
type: testharness
- prefs: [dom.forms.inputmode:true, dom.dialog_element.enabled:true]
+ prefs: [dom.forms.inputmode:true, dom.dialog_element.enabled:true, dom.webcomponents.enabled:true]
[Document interface: attribute domain]
expected: FAIL
@@ -2524,21 +2524,6 @@
[HTMLSlotElement interface: operation assignedNodes(AssignedNodesOptions)]
expected: FAIL
- [HTMLSlotElement must be primary interface of document.createElement("slot")]
- expected: FAIL
-
- [Stringification of document.createElement("slot")]
- expected: FAIL
-
- [HTMLSlotElement interface: document.createElement("slot") must inherit property "name" with the proper type (0)]
- expected: FAIL
-
- [HTMLSlotElement interface: document.createElement("slot") must inherit property "assignedNodes" with the proper type (1)]
- expected: FAIL
-
- [HTMLSlotElement interface: calling assignedNodes(AssignedNodesOptions) on document.createElement("slot") with too few arguments must throw TypeError]
- expected: FAIL
-
[HTMLInputElement interface: createInput("text") must inherit property "dirName" with the proper type (6)]
expected: FAIL
diff --git a/testing/web-platform/meta/html/dom/reflection-misc.html.ini b/testing/web-platform/meta/html/dom/reflection-misc.html.ini
index bc65d4191..05bb9c4cd 100644
--- a/testing/web-platform/meta/html/dom/reflection-misc.html.ini
+++ b/testing/web-platform/meta/html/dom/reflection-misc.html.ini
@@ -1,6 +1,6 @@
[reflection-misc.html]
type: testharness
- prefs: [dom.dialog_element.enabled: true]
+ prefs: [dom.dialog_element.enabled: true, dom.webcomponents.enabled:true]
[html.tabIndex: setAttribute() to object "3" followed by getAttribute()]
expected: FAIL
diff --git a/testing/web-platform/meta/shadow-dom/HTMLSlotElement-interface.html.ini b/testing/web-platform/meta/shadow-dom/HTMLSlotElement-interface.html.ini
deleted file mode 100644
index c045a3006..000000000
--- a/testing/web-platform/meta/shadow-dom/HTMLSlotElement-interface.html.ini
+++ /dev/null
@@ -1,44 +0,0 @@
-[HTMLSlotElement-interface.html]
- type: testharness
- [HTMLSlotElement must be defined on window]
- expected: FAIL
-
- ["name" attribute on HTMLSlotElement must reflect "name" attribute]
- expected: FAIL
-
- [assignedNodes() on a HTMLSlotElement must return an empty array when the slot element is not in a tree or in a document tree]
- expected: FAIL
-
- [assignedNodes({"flattened":false}) on a HTMLSlotElement must return an empty array when the slot element is not in a tree or in a document tree]
- expected: FAIL
-
- [assignedNodes({"flattened":true}) on a HTMLSlotElement must return an empty array when the slot element is not in a tree or in a document tree]
- expected: FAIL
-
- [assignedNodes() must return the list of assigned nodes when none of the assigned nodes themselves are slots]
- expected: FAIL
-
- [assignedNodes({"flattened":false}) must return the list of assigned nodes when none of the assigned nodes themselves are slots]
- expected: FAIL
-
- [assignedNodes({"flattened":true}) must return the list of assigned nodes when none of the assigned nodes themselves are slots]
- expected: FAIL
-
- [assignedNodes() must update when slot and name attributes are modified]
- expected: FAIL
-
- [assignedNodes({"flattened":false}) must update when slot and name attributes are modified]
- expected: FAIL
-
- [assignedNodes({"flattened":true}) must update when slot and name attributes are modified]
- expected: FAIL
-
- [assignedNodes must update when a default slot is introduced dynamically by a slot rename]
- expected: FAIL
-
- [assignedNodes must update when slot elements are inserted or removed]
- expected: FAIL
-
- [assignedNodes({flatten: true}) must return the distributed nodes, and assignedNodes() and assignedNodes({flatten: false}) must returned the assigned nodes]
- expected: FAIL
-
diff --git a/testing/web-platform/meta/shadow-dom/Slotable-interface.html.ini b/testing/web-platform/meta/shadow-dom/Slotable-interface.html.ini
deleted file mode 100644
index 6ef193dee..000000000
--- a/testing/web-platform/meta/shadow-dom/Slotable-interface.html.ini
+++ /dev/null
@@ -1,12 +0,0 @@
-[Slotable-interface.html]
- type: testharness
- prefs: [dom.webcomponents.enabled:true]
- [assignedSlot must return null when the node does not have an assigned node]
- expected: FAIL
-
- [assignedSlot must return the assigned slot]
- expected: FAIL
-
- [assignedSlot must return null when the assigned slot element is inside a closed shadow tree]
- expected: FAIL
-
diff --git a/testing/web-platform/meta/shadow-dom/event-inside-slotted-node.html.ini b/testing/web-platform/meta/shadow-dom/event-inside-slotted-node.html.ini
deleted file mode 100644
index 7e42670a3..000000000
--- a/testing/web-platform/meta/shadow-dom/event-inside-slotted-node.html.ini
+++ /dev/null
@@ -1,38 +0,0 @@
-[event-inside-slotted-node.html]
- type: testharness
- [Firing an event inside a grand child of a detached open mode shadow host]
- expected: FAIL
-
- [Firing an event inside a grand child of a detached closed mode shadow host]
- expected: FAIL
-
- [Firing an event inside a grand child of an in-document open mode shadow host]
- expected: FAIL
-
- [Firing an event inside a grand child of an in-document closed mode shadow host]
- expected: FAIL
-
- [Firing an event on a node with two ancestors with a detached open and open shadow trees with an inner open shadow tree]
- expected: FAIL
-
- [Firing an event on a node with two ancestors with a detached open and open shadow trees with an inner closed shadow tree]
- expected: FAIL
-
- [Firing an event on a node with two ancestors with a detached open and closed shadow trees with an inner open shadow tree]
- expected: FAIL
-
- [Firing an event on a node with two ancestors with a detached open and closed shadow trees with an inner closed shadow tree]
- expected: FAIL
-
- [Firing an event on a node with two ancestors with a detached closed and open shadow trees with an inner open shadow tree]
- expected: FAIL
-
- [Firing an event on a node with two ancestors with a detached closed and open shadow trees with an inner closed shadow tree]
- expected: FAIL
-
- [Firing an event on a node with two ancestors with a detached closed and closed shadow trees with an inner open shadow tree]
- expected: FAIL
-
- [Firing an event on a node with two ancestors with a detached closed and closed shadow trees with an inner closed shadow tree]
- expected: FAIL
-
diff --git a/testing/web-platform/meta/shadow-dom/slots-fallback.html.ini b/testing/web-platform/meta/shadow-dom/slots-fallback.html.ini
deleted file mode 100644
index d32ae812b..000000000
--- a/testing/web-platform/meta/shadow-dom/slots-fallback.html.ini
+++ /dev/null
@@ -1,32 +0,0 @@
-[slots-fallback.html]
- type: testharness
- [Slots fallback: Basic.]
- expected: FAIL
-
- [Slots fallback: Slots in Slots.]
- expected: FAIL
-
- [Slots fallback: Fallback contents should not be used if a node is assigned.]
- expected: FAIL
-
- [Slots fallback: Slots in Slots: Assinged nodes should be used as fallback contents of another slot]
- expected: FAIL
-
- [Slots fallback: Complex case.]
- expected: FAIL
-
- [Slots fallback: Mutation. Append fallback contents.]
- expected: FAIL
-
- [Slots fallback: Mutation. Remove fallback contents.]
- expected: FAIL
-
- [Slots fallback: Mutation. Assign a node to a slot so that fallback contens are no longer used.]
- expected: FAIL
-
- [Slots fallback: Mutation. Remove an assigned node from a slot so that fallback contens will be used.]
- expected: FAIL
-
- [Slots fallback: Mutation. Remove a slot which is a fallback content of another slot.]
- expected: FAIL
-
diff --git a/testing/web-platform/meta/shadow-dom/slots.html.ini b/testing/web-platform/meta/shadow-dom/slots.html.ini
deleted file mode 100644
index 3c047e482..000000000
--- a/testing/web-platform/meta/shadow-dom/slots.html.ini
+++ /dev/null
@@ -1,71 +0,0 @@
-[slots.html]
- type: testharness
- [Slots: Basic.]
- expected: FAIL
-
- [Slots: Slots in closed.]
- expected: FAIL
-
- [Slots: Slots not in a shadow tree.]
- expected: FAIL
-
- [Slots: Distributed nooes for Slots not in a shadow tree.]
- expected: FAIL
-
- [Slots: Name matching]
- expected: FAIL
-
- [Slots: No direct host child.]
- expected: FAIL
-
- [Slots: Default Slot.]
- expected: FAIL
-
- [Slots: Slot in Slot does not matter in assignment.]
- expected: FAIL
-
- [Slots: Slot is assigned to another slot]
- expected: FAIL
-
- [Slots: Open > Closed.]
- expected: FAIL
-
- [Slots: Closed > Closed.]
- expected: FAIL
-
- [Slots: Closed > Open.]
- expected: FAIL
-
- [Slots: Complex case: Basi line.]
- expected: FAIL
-
- [Slots: Mutation: appendChild.]
- expected: FAIL
-
- [Slots: Mutation: Change slot= attribute 1.]
- expected: FAIL
-
- [Slots: Mutation: Change slot= attribute 2.]
- expected: FAIL
-
- [Slots: Mutation: Change slot= attribute 3.]
- expected: FAIL
-
- [Slots: Mutation: Remove a child.]
- expected: FAIL
-
- [Slots: Mutation: Add a slot: after.]
- expected: FAIL
-
- [Slots: Mutation: Add a slot: before.]
- expected: FAIL
-
- [Slots: Mutation: Remove a slot.]
- expected: FAIL
-
- [Slots: Mutation: Change slot name= attribute.]
- expected: FAIL
-
- [Slots: Mutation: Change slot slot= attribute.]
- expected: FAIL
-