From 3508e79b1fe7fc928eed2f3c7bf2d628c53fbf17 Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Fri, 17 Apr 2020 07:35:48 -0400 Subject: Bug 1409976 - Add `slotchange` event * Add support for `slotchange` event * Signal `slotchange` when slot's assigned nodes changes Tag #1375 --- .../meta/shadow-dom/slotchange-event.html.ini | 99 ---------------------- .../meta/shadow-dom/slotchange.html.ini | 47 ---------- 2 files changed, 146 deletions(-) delete mode 100644 testing/web-platform/meta/shadow-dom/slotchange-event.html.ini delete mode 100644 testing/web-platform/meta/shadow-dom/slotchange.html.ini (limited to 'testing/web-platform') diff --git a/testing/web-platform/meta/shadow-dom/slotchange-event.html.ini b/testing/web-platform/meta/shadow-dom/slotchange-event.html.ini deleted file mode 100644 index 434e7d9ba..000000000 --- a/testing/web-platform/meta/shadow-dom/slotchange-event.html.ini +++ /dev/null @@ -1,99 +0,0 @@ -[slotchange-event.html] - type: testharness - expected: ERROR - [slotchange event must fire on a default slot element inside an open shadow root in a document] - expected: FAIL - - [slotchange event must fire on a default slot element inside a closed shadow root in a document] - expected: FAIL - - [slotchange event must fire on a default slot element inside an open shadow root not in a document] - expected: FAIL - - [slotchange event must fire on a default slot element inside a closed shadow root not in a document] - expected: FAIL - - [slotchange event must fire on a named slot element insidean open shadow root in a document] - expected: FAIL - - [slotchange event must fire on a named slot element insidea closed shadow root in a document] - expected: FAIL - - [slotchange event must fire on a named slot element insidean open shadow root not in a document] - expected: FAIL - - [slotchange event must fire on a named slot element insidea closed shadow root not in a document] - expected: FAIL - - [slotchange event must not fire on a slot element inside an open shadow root in a document when another slot's assigned nodes change] - expected: FAIL - - [slotchange event must not fire on a slot element inside a closed shadow root in a document when another slot's assigned nodes change] - expected: FAIL - - [slotchange event must not fire on a slot element inside an open shadow root not in a document when another slot's assigned nodes change] - expected: FAIL - - [slotchange event must not fire on a slot element inside a closed shadow root not in a document when another slot's assigned nodes change] - expected: FAIL - - [slotchange event must not fire on a slot element inside an open shadow root in a document when the shadow host was mutated before the slot was inserted or after the slot was removed] - expected: FAIL - - [slotchange event must not fire on a slot element inside a closed shadow root in a document when the shadow host was mutated before the slot was inserted or after the slot was removed] - expected: FAIL - - [slotchange event must not fire on a slot element inside an open shadow root not in a document when the shadow host was mutated before the slot was inserted or after the slot was removed] - expected: FAIL - - [slotchange event must not fire on a slot element inside a closed shadow root not in a document when the shadow host was mutated before the slot was inserted or after the slot was removed] - expected: FAIL - - [slotchange event must fire on a slot element inside an open shadow root in a document even if the slot was removed immediately after the assigned nodes were mutated] - expected: FAIL - - [slotchange event must fire on a slot element inside a closed shadow root in a document even if the slot was removed immediately after the assigned nodes were mutated] - expected: FAIL - - [slotchange event must fire on a slot element inside an open shadow root not in a document even if the slot was removed immediately after the assigned nodes were mutated] - expected: FAIL - - [slotchange event must fire on a slot element inside a closed shadow root not in a document even if the slot was removed immediately after the assigned nodes were mutated] - expected: FAIL - - [slotchange event must fire on a slot element inside an open shadow root in a document when innerHTML modifies the children of the shadow host] - expected: FAIL - - [slotchange event must fire on a slot element inside a closed shadow root in a document when innerHTML modifies the children of the shadow host] - expected: FAIL - - [slotchange event must fire on a slot element inside an open shadow root not in a document when innerHTML modifies the children of the shadow host] - expected: FAIL - - [slotchange event must fire on a slot element inside a closed shadow root not in a document when innerHTML modifies the children of the shadow host] - expected: FAIL - - [slotchange event must fire on a slot element inside an open shadow root in a document when nested slots's contents change] - expected: FAIL - - [slotchange event must fire on a slot element inside a closed shadow root in a document when nested slots's contents change] - expected: FAIL - - [slotchange event must fire on a slot element inside an open shadow root not in a document when nested slots's contents change] - expected: FAIL - - [slotchange event must fire on a slot element inside a closed shadow root not in a document when nested slots's contents change] - expected: FAIL - - [slotchange event must fire at the end of current microtask after mutation observers are invoked inside an open shadow root in a document when slots's contents change] - expected: FAIL - - [slotchange event must fire at the end of current microtask after mutation observers are invoked inside a closed shadow root in a document when slots's contents change] - expected: FAIL - - [slotchange event must fire at the end of current microtask after mutation observers are invoked inside an open shadow root not in a document when slots's contents change] - expected: FAIL - - [slotchange event must fire at the end of current microtask after mutation observers are invoked inside a closed shadow root not in a document when slots's contents change] - expected: FAIL - diff --git a/testing/web-platform/meta/shadow-dom/slotchange.html.ini b/testing/web-platform/meta/shadow-dom/slotchange.html.ini deleted file mode 100644 index fff6fa28d..000000000 --- a/testing/web-platform/meta/shadow-dom/slotchange.html.ini +++ /dev/null @@ -1,47 +0,0 @@ -[slotchange.html] - type: testharness - [slotchange event: Append a child to a host.] - expected: FAIL - - [slotchange event: Remove a child from a host.] - expected: FAIL - - [slotchange event: Remove a child before adding an event listener.] - expected: FAIL - - [slotchange event: Change slot= attribute to make it un-assigned.] - expected: FAIL - - [slotchange event: Change slot's name= attribute so that none is assigned.] - expected: FAIL - - [slotchange event: Change slot= attribute to make it assigned.] - expected: FAIL - - [slotchange event: Change slot's name= attribute so that a node is assigned to the slot.] - expected: FAIL - - [slotchange event: Add a fallback content.] - expected: FAIL - - [slotchange event: Remove a fallback content.] - expected: FAIL - - [slotchange event: Add a fallback content to nested slots.] - expected: FAIL - - [slotchange event: Remove a fallback content from nested slots.] - expected: FAIL - - [slotchange event: Insert a slot before an existing slot.] - expected: FAIL - - [slotchange event: Remove a preceding slot.] - expected: FAIL - - [slotchange event: A slot is assigned to another slot.] - expected: FAIL - - [slotchange event: Even if distributed nodes do not change, slotchange should be fired if assigned nodes are changed.] - expected: FAIL - -- cgit v1.2.3