diff options
Diffstat (limited to 'tests/wpt/meta/custom-elements/registries')
22 files changed, 255 insertions, 0 deletions
diff --git a/tests/wpt/meta/custom-elements/registries/Construct.html.ini b/tests/wpt/meta/custom-elements/registries/Construct.html.ini new file mode 100644 index 00000000000..00901c2c5b4 --- /dev/null +++ b/tests/wpt/meta/custom-elements/registries/Construct.html.ini @@ -0,0 +1,9 @@ +[Construct.html] + [A constructor with only a scoped custom element registry definition should fail upon construction] + expected: FAIL + + [A constructor uses the global registry to create an element] + expected: FAIL + + [A constructor creating an element from another registry before or after super call should work] + expected: FAIL diff --git a/tests/wpt/meta/custom-elements/registries/CustomElementRegistry-define.html.ini b/tests/wpt/meta/custom-elements/registries/CustomElementRegistry-define.html.ini new file mode 100644 index 00000000000..f3a508799d7 --- /dev/null +++ b/tests/wpt/meta/custom-elements/registries/CustomElementRegistry-define.html.ini @@ -0,0 +1,9 @@ +[CustomElementRegistry-define.html] + [Create a CustomElementRegistry not identically equal to window.customElements] + expected: FAIL + + [Defining an element in the global registry does not add a definition to a scoped CustomElementRegistry] + expected: FAIL + + [Defining an element in a scoped global registry does not add a definition to the global registry] + expected: FAIL diff --git a/tests/wpt/meta/custom-elements/registries/CustomElementRegistry-initialize.html.ini b/tests/wpt/meta/custom-elements/registries/CustomElementRegistry-initialize.html.ini new file mode 100644 index 00000000000..f15268ae654 --- /dev/null +++ b/tests/wpt/meta/custom-elements/registries/CustomElementRegistry-initialize.html.ini @@ -0,0 +1,21 @@ +[CustomElementRegistry-initialize.html] + [initialize is a function on both global and scoped CustomElementRegistry] + expected: FAIL + + [initialize sets element.customElementRegistry to the global registry] + expected: FAIL + + [initialize does not set the registry of nested shadow tree to the global registry] + expected: FAIL + + [initialize sets element.customElementRegistry to a scoped registry] + expected: FAIL + + [initialize does not set the registry of nested shadow tree to a scoped registry] + expected: FAIL + + [initialize sets element.customElementRegistry permantently] + expected: FAIL + + [initialize is no-op on a subtree with a non-null registry] + expected: FAIL diff --git a/tests/wpt/meta/custom-elements/registries/CustomElementRegistry-multi-register.html.ini b/tests/wpt/meta/custom-elements/registries/CustomElementRegistry-multi-register.html.ini new file mode 100644 index 00000000000..a3a9b97cef0 --- /dev/null +++ b/tests/wpt/meta/custom-elements/registries/CustomElementRegistry-multi-register.html.ini @@ -0,0 +1,6 @@ +[CustomElementRegistry-multi-register.html] + [Same constructor can be registered to different registries] + expected: FAIL + + [Non-global registries still reject duplicate registrations of the same constructor] + expected: FAIL diff --git a/tests/wpt/meta/custom-elements/registries/CustomElementRegistry-upgrade.html.ini b/tests/wpt/meta/custom-elements/registries/CustomElementRegistry-upgrade.html.ini new file mode 100644 index 00000000000..8f5497a46ca --- /dev/null +++ b/tests/wpt/meta/custom-elements/registries/CustomElementRegistry-upgrade.html.ini @@ -0,0 +1,12 @@ +[CustomElementRegistry-upgrade.html] + [upgrade is a function on both global and scoped CustomElementRegistry] + expected: FAIL + + [upgrade is a no-op when called on a shadow root with no association] + expected: FAIL + + [upgrade should upgrade a candidate element when called on a shadow root with an association] + expected: FAIL + + [upgrade should not upgrade a candidate element not associated with the registry] + expected: FAIL diff --git a/tests/wpt/meta/custom-elements/registries/Document-createElement.html.ini b/tests/wpt/meta/custom-elements/registries/Document-createElement.html.ini new file mode 100644 index 00000000000..1867ea7e6b9 --- /dev/null +++ b/tests/wpt/meta/custom-elements/registries/Document-createElement.html.ini @@ -0,0 +1,2 @@ +[Document-createElement.html] + expected: ERROR diff --git a/tests/wpt/meta/custom-elements/registries/Document-createElementNS.html.ini b/tests/wpt/meta/custom-elements/registries/Document-createElementNS.html.ini new file mode 100644 index 00000000000..44a90a38b12 --- /dev/null +++ b/tests/wpt/meta/custom-elements/registries/Document-createElementNS.html.ini @@ -0,0 +1,2 @@ +[Document-createElementNS.html] + expected: ERROR diff --git a/tests/wpt/meta/custom-elements/registries/Document-customElementRegistry.html.ini b/tests/wpt/meta/custom-elements/registries/Document-customElementRegistry.html.ini new file mode 100644 index 00000000000..fc4c3a1d674 --- /dev/null +++ b/tests/wpt/meta/custom-elements/registries/Document-customElementRegistry.html.ini @@ -0,0 +1,12 @@ +[Document-customElementRegistry.html] + [customElementRegistry on a document should return window.customElements by default] + expected: FAIL + + [customElementRegistry on a document without a browsing context should return null] + expected: FAIL + + [customElementRegistry on a document of a connected iframe should return contentWindow.customElements] + expected: FAIL + + [customElementRegistry on a document of a disconnected iframe should return contentWindow.customElements] + expected: FAIL diff --git a/tests/wpt/meta/custom-elements/registries/Document-importNode.html.ini b/tests/wpt/meta/custom-elements/registries/Document-importNode.html.ini new file mode 100644 index 00000000000..12d4cc44da9 --- /dev/null +++ b/tests/wpt/meta/custom-elements/registries/Document-importNode.html.ini @@ -0,0 +1,2 @@ +[Document-importNode.html] + expected: ERROR diff --git a/tests/wpt/meta/custom-elements/registries/Element-customElementRegistry-exceptions.html.ini b/tests/wpt/meta/custom-elements/registries/Element-customElementRegistry-exceptions.html.ini new file mode 100644 index 00000000000..91d4fac698d --- /dev/null +++ b/tests/wpt/meta/custom-elements/registries/Element-customElementRegistry-exceptions.html.ini @@ -0,0 +1,6 @@ +[Element-customElementRegistry-exceptions.html] + [customElementRegistry on a failed custom element created by calling createElement on CustomElementRegistry should return the registry] + expected: FAIL + + [customElementRegistry on a failed custom element created by setting innerHTML should return the associated scoped registry] + expected: FAIL diff --git a/tests/wpt/meta/custom-elements/registries/Element-customElementRegistry.html.ini b/tests/wpt/meta/custom-elements/registries/Element-customElementRegistry.html.ini new file mode 100644 index 00000000000..e5a8d9736ea --- /dev/null +++ b/tests/wpt/meta/custom-elements/registries/Element-customElementRegistry.html.ini @@ -0,0 +1,30 @@ +[Element-customElementRegistry.html] + [customElementRegistry on a newly constrcuted element should return window.customElements by default] + expected: FAIL + + [customElementRegistry on an element inside a declarative shadow DOM should return window.customElements by default] + expected: FAIL + + [customElementRegistry on an element inside a declarative shadow DOM with shadowrootcustomelementregistry should return null] + expected: FAIL + + [customElementRegistry on a clone of a declarative shadow tree with shadowrootcustomelementregistry should return null] + expected: FAIL + + [customElementRegistry on a clone of a declarative shadow tree with shadowrootcustomelementregistry should return the global registry after getting inserted into a document] + expected: FAIL + + [customElementRegistry on an element inside a declarative shadow DOM with shadowrootcustomelementregistry should return the scoped registry after calling initialize] + expected: FAIL + + [customElementRegistry on a builtin element created by calling createElement on CustomElementRegistry should return the registry] + expected: FAIL + + [customElementRegistry on an upgarde candidate created by calling createElement on CustomElementRegistry should return the registry] + expected: FAIL + + [customElementRegistry on an unknown element created by calling createElement on CustomElementRegistry should return the registry] + expected: FAIL + + [customElementRegistry on a defined custom element created by calling createElement on CustomElementRegistry should return the registry] + expected: FAIL diff --git a/tests/wpt/meta/custom-elements/registries/Element-innerHTML.html.ini b/tests/wpt/meta/custom-elements/registries/Element-innerHTML.html.ini new file mode 100644 index 00000000000..00b7afc465a --- /dev/null +++ b/tests/wpt/meta/custom-elements/registries/Element-innerHTML.html.ini @@ -0,0 +1,6 @@ +[Element-innerHTML.html] + [innerHTML on a disconnected element should use the scoped registry it was created with] + expected: FAIL + + [innerHTML on an inserted element should continue to use the scoped registry it was created with] + expected: FAIL diff --git a/tests/wpt/meta/custom-elements/registries/ShadowRoot-init-customElementRegistry.html.ini b/tests/wpt/meta/custom-elements/registries/ShadowRoot-init-customElementRegistry.html.ini new file mode 100644 index 00000000000..816737280ed --- /dev/null +++ b/tests/wpt/meta/custom-elements/registries/ShadowRoot-init-customElementRegistry.html.ini @@ -0,0 +1,15 @@ +[ShadowRoot-init-customElementRegistry.html] + [A newly attached disconnected ShadowRoot should use the global registry by default] + expected: FAIL + + [A newly attached connected ShadowRoot should use the global registry by default] + expected: FAIL + + [A newly attached disconnected ShadowRoot should use the scoped registry if explicitly specified in attachShadow] + expected: FAIL + + [A newly attached connected ShadowRoot should use the scoped registry if explicitly specified in attachShadow] + expected: FAIL + + [attachShadow() should throw for a null customElementRegistry value] + expected: FAIL diff --git a/tests/wpt/meta/custom-elements/registries/ShadowRoot-innerHTML.html.ini b/tests/wpt/meta/custom-elements/registries/ShadowRoot-innerHTML.html.ini new file mode 100644 index 00000000000..b0d227521cd --- /dev/null +++ b/tests/wpt/meta/custom-elements/registries/ShadowRoot-innerHTML.html.ini @@ -0,0 +1,12 @@ +[ShadowRoot-innerHTML.html] + [innerHTML on a shadow root should use the scoped registry] + expected: FAIL + + [innerHTML on a connected shadow root should use the associated scoped registry] + expected: FAIL + + [innerHTML on a connected shadow root should not upgrade a custom element inside a template element] + expected: FAIL + + [innerHTML on a connected shadow root should be able to create an unknown element] + expected: FAIL diff --git a/tests/wpt/meta/custom-elements/registries/constructor-reentry-with-different-definition.html.ini b/tests/wpt/meta/custom-elements/registries/constructor-reentry-with-different-definition.html.ini new file mode 100644 index 00000000000..2169b2e7f71 --- /dev/null +++ b/tests/wpt/meta/custom-elements/registries/constructor-reentry-with-different-definition.html.ini @@ -0,0 +1,12 @@ +[constructor-reentry-with-different-definition.html] + [Re-entry via upgrade before calling super()] + expected: FAIL + + [Re-entry via upgrade after calling super()] + expected: FAIL + + [Re-entry via direct constructor call before calling super()] + expected: FAIL + + [Re-entry via direct constructor call after calling super()] + expected: FAIL diff --git a/tests/wpt/meta/custom-elements/registries/initial-about-blank.window.js.ini b/tests/wpt/meta/custom-elements/registries/initial-about-blank.window.js.ini new file mode 100644 index 00000000000..40b0c57028d --- /dev/null +++ b/tests/wpt/meta/custom-elements/registries/initial-about-blank.window.js.ini @@ -0,0 +1,3 @@ +[initial-about-blank.window.html] + [Each navigable document has its own registry] + expected: FAIL diff --git a/tests/wpt/meta/custom-elements/registries/per-global.html.ini b/tests/wpt/meta/custom-elements/registries/per-global.html.ini new file mode 100644 index 00000000000..ed02ddb6100 --- /dev/null +++ b/tests/wpt/meta/custom-elements/registries/per-global.html.ini @@ -0,0 +1,3 @@ +[per-global.html] + [Navigating from the initial about:blank must not replace window.customElements] + expected: FAIL diff --git a/tests/wpt/meta/custom-elements/registries/pseudo-class-defined.window.js.ini b/tests/wpt/meta/custom-elements/registries/pseudo-class-defined.window.js.ini new file mode 100644 index 00000000000..480bdb54402 --- /dev/null +++ b/tests/wpt/meta/custom-elements/registries/pseudo-class-defined.window.js.ini @@ -0,0 +1,9 @@ +[pseudo-class-defined.window.html] + ["uncustomized" :defined doesn't care about your registry'] + expected: FAIL + + ["custom" :defined doesn't care about your registry] + expected: FAIL + + [pseudo-class-defined] + expected: FAIL diff --git a/tests/wpt/meta/custom-elements/registries/scoped-registry-define-upgrade-criteria.html.ini b/tests/wpt/meta/custom-elements/registries/scoped-registry-define-upgrade-criteria.html.ini new file mode 100644 index 00000000000..1e2293b249e --- /dev/null +++ b/tests/wpt/meta/custom-elements/registries/scoped-registry-define-upgrade-criteria.html.ini @@ -0,0 +1,33 @@ +[scoped-registry-define-upgrade-criteria.html] + [Adding definition to global registry should not affect shadow roots using scoped registry] + expected: FAIL + + [Adding definition to scoped registry should affect all associated shadow roots] + expected: FAIL + + [Adding definition to scoped registry should not affect document tree scope] + expected: FAIL + + [Adding definition to scoped registry should not affect shadow roots using other registries] + expected: FAIL + + [Adding definition to global registry should not upgrade nodes no longer using the registry] + expected: FAIL + + [Adding definition to scoped registry should not upgrade nodes no longer using the registry] + expected: FAIL + + [Adding definition to scoped registry affects associated shadow roots in all iframes] + expected: FAIL + + [Adding definition to scoped registry affects associated shadow roots in other frame trees] + expected: FAIL + + [Adding definition to scoped registry should not upgrade disconnected elements] + expected: FAIL + + [Adding definition to scoped registry should not upgrade nodes in constructed documents] + expected: FAIL + + [Adding definition to scoped registry should not upgrade nodes in detached frames] + expected: FAIL diff --git a/tests/wpt/meta/custom-elements/registries/scoped-registry-define-upgrade-order.html.ini b/tests/wpt/meta/custom-elements/registries/scoped-registry-define-upgrade-order.html.ini new file mode 100644 index 00000000000..8fef8d0e42f --- /dev/null +++ b/tests/wpt/meta/custom-elements/registries/scoped-registry-define-upgrade-order.html.ini @@ -0,0 +1,21 @@ +[scoped-registry-define-upgrade-order.html] + [Upgrade in tree order in the same tree scope] + expected: FAIL + + [Upgrade in shadow-including tree order across tree scopes] + expected: FAIL + + [Upgrade order does not depend on shadow root attach order] + expected: FAIL + + [Upgrade in association order across documents, then tree order in each document] + expected: FAIL + + [Upgrade order is not affected by DOM order between child frames] + expected: FAIL + + [Upgrade order is affected by shadow tree adoption across documents] + expected: FAIL + + [Elements in the "owner" window of a scoped registry are not always upgraded first] + expected: FAIL diff --git a/tests/wpt/meta/custom-elements/registries/scoped-registry-registry-define-get-etc.html.ini b/tests/wpt/meta/custom-elements/registries/scoped-registry-registry-define-get-etc.html.ini new file mode 100644 index 00000000000..df8446a2f98 --- /dev/null +++ b/tests/wpt/meta/custom-elements/registries/scoped-registry-registry-define-get-etc.html.ini @@ -0,0 +1,21 @@ +[scoped-registry-registry-define-get-etc.html] + [Custom element registries with a registered custom element return the class in their get method, and the name in their getName method] + expected: FAIL + + [Scoped Custom element registries do not inherit names or classes from the global registry] + expected: FAIL + + [Scoped Custom element registries return the same constructor when it is defined in both] + expected: FAIL + + [Scoped Custom element registries allow registering name that exists in global registry] + expected: FAIL + + [Custom element registries with a registered custom element resolve the class in their whenDefined method] + expected: FAIL + + [Scoped Custom element registries resolve the same constructor from whenDefined when it is defined in both] + expected: FAIL + + [Scoped Custom element registry getters do not resolve globally registered classes from whenDefined] + expected: FAIL diff --git a/tests/wpt/meta/custom-elements/registries/template.window.js.ini b/tests/wpt/meta/custom-elements/registries/template.window.js.ini new file mode 100644 index 00000000000..9f97ee65f99 --- /dev/null +++ b/tests/wpt/meta/custom-elements/registries/template.window.js.ini @@ -0,0 +1,9 @@ +[template.window.html] + [shadowRootCustomElementRegistry reflects as string] + expected: FAIL + + [Serializing a ShadowRoot with a null registry] + expected: FAIL + + [Serializing a ShadowRoot with a registry that differs from its host] + expected: FAIL |