Commit 42b6216b authored by Chromium WPT Sync's avatar Chromium WPT Sync Committed by Commit Bot

Import wpt@98224e6c4e2ac278167a21dc0b0241eac5f35d4f

Using wpt-import in Chromium c35e39bb.

Note to sheriffs: This CL imports external tests and adds
expectations for those tests; if this CL is large and causes
a few new failures, please fix the failures by adding new
lines to TestExpectations rather than reverting. See:
https://chromium.googlesource.com/chromium/src/+/master/docs/testing/web_platform_tests.md

Directory owners for changes in this CL:
jsbell@chromium.org:
  external/wpt/resources

NOAUTOREVERT=true
TBR=markdittmer

No-Export: true
Change-Id: Ie84d1a5e6d1de7d6b172923aa9f04a4544832601
Reviewed-on: https://chromium-review.googlesource.com/c/1349472
Commit-Queue: WPT Autoroller <wpt-autoroller@chops-service-accounts.iam.gserviceaccount.com>
Reviewed-by: default avatarWPT Autoroller <wpt-autoroller@chops-service-accounts.iam.gserviceaccount.com>
Cr-Commit-Position: refs/heads/master@{#610680}
parent 222f6948
This is a testharness.js-based test.
Harness Error. harness_status.status = 1 , harness_status.message = Uncaught ReferenceError: document_types is not defined
PASS Inserting a custom element into the owner document must not enqueue and invoke adoptedCallback
Harness: the test ran to completion.
This is a testharness.js-based test.
FAIL Custom Elements: attributeChangedCallback Uncaught ReferenceError: define_new_custom_element is not defined
Harness: the test ran to completion.
This is a testharness.js-based test.
FAIL Custom Elements: connectedCallback Uncaught ReferenceError: document_types is not defined
Harness: the test ran to completion.
This is a testharness.js-based test.
FAIL Custom Elements: the HTML fragment parsing algorithm must not create a custom element synchronously Uncaught ReferenceError: document_types is not defined
Harness: the test ran to completion.
This is a testharness.js-based test.
FAIL Custom Elements: Each element must have its own custom element reaction queue Uncaught ReferenceError: test_with_window is not defined
Harness: the test ran to completion.
This is a testharness.js-based test.
FAIL Custom Elements: disconnectedCallback Uncaught ReferenceError: document_types is not defined
Harness: the test ran to completion.
This is a testharness.js-based test.
PASS Use NewTarget's prototype, not the one stored at definition time
PASS Rethrow any exceptions thrown while getting the prototype
PASS If prototype is not object (null), derives the fallback from NewTarget's realm (autonomous custom elements)
PASS If prototype is not object (undefined), derives the fallback from NewTarget's realm (autonomous custom elements)
PASS If prototype is not object (5), derives the fallback from NewTarget's realm (autonomous custom elements)
PASS If prototype is not object (string), derives the fallback from NewTarget's realm (autonomous custom elements)
PASS If prototype is not object (null), derives the fallback from NewTarget's realm (customized built-in elements)
PASS If prototype is not object (undefined), derives the fallback from NewTarget's realm (customized built-in elements)
PASS If prototype is not object (5), derives the fallback from NewTarget's realm (customized built-in elements)
PASS If prototype is not object (string), derives the fallback from NewTarget's realm (customized built-in elements)
FAIL HTMLParagraphElement constructor must not get .prototype until it finishes its extends sanity checks, calling proxy constructor directly assert_equals: Should never have gotten .prototype expected 0 but got 1
FAIL HTMLParagraphElement constructor must not get .prototype until it finishes its extends sanity checks, calling via Reflect assert_equals: Should never have gotten .prototype expected 0 but got 1
FAIL Custom Elements: [HTMLConstructor] derives prototype from NewTarget Uncaught ReferenceError: test_with_window is not defined
Harness: the test ran to completion.
This is a testharness.js-based test.
FAIL Custom Elements: Changes to the HTML parser Uncaught ReferenceError: create_attribute_changed_callback_log is not defined
Harness: the test ran to completion.
This is a testharness.js-based test.
Harness Error. harness_status.status = 1 , harness_status.message = Uncaught ReferenceError: test_with_window is not defined
PASS HTML parser must not instantiate custom elements inside template elements
PASS HTML parser must not use the registry of the owner element's document inside an iframe
PASS HTML parser must use the registry of the content document inside an iframe
......@@ -7,7 +8,5 @@ PASS HTML parser must use the registry of window.document in a document created
PASS HTML parser must use the registry of window.document in a document created by document.implementation.createXHTMLDocument()
PASS HTML parser must use the registry of window.document in a document created by new Document
PASS HTML parser must use the registry of window.document in a document created by XMLHttpRequest
FAIL document.write() must not instantiate a custom element without a defined insertion point assert_false: expected false got true
FAIL document.writeln() must not instantiate a custom element without a defined insertion point assert_false: expected false got true
Harness: the test ran to completion.
This is a testharness.js-based test.
FAIL value on Attr must enqueue an attributeChanged reaction when replacing an existing attribute define_new_custom_element is not defined
FAIL value on Attr must not enqueue an attributeChanged reaction when replacing an existing unobserved attribute define_new_custom_element is not defined
Harness: the test ran to completion.
This is a testharness.js-based test.
FAIL cssText on CSSStyleDeclaration must enqueue an attributeChanged reaction when it adds the observed style attribute define_new_custom_element is not defined
FAIL cssText on CSSStyleDeclaration must not enqueue an attributeChanged reaction when it adds the style attribute but the style attribute is not observed define_new_custom_element is not defined
FAIL cssText on CSSStyleDeclaration must enqueue an attributeChanged reaction when it mutates the observed style attribute define_new_custom_element is not defined
FAIL cssText on CSSStyleDeclaration must not enqueue an attributeChanged reaction when it mutates the style attribute but the style attribute is not observed define_new_custom_element is not defined
FAIL setProperty on CSSStyleDeclaration must enqueue an attributeChanged reaction when it adds the observed style attribute define_new_custom_element is not defined
FAIL setProperty on CSSStyleDeclaration must not enqueue an attributeChanged reaction when it adds the style attribute but the style attribute is not observed define_new_custom_element is not defined
FAIL setProperty on CSSStyleDeclaration must enqueue an attributeChanged reaction when it mutates the observed style attribute define_new_custom_element is not defined
FAIL setProperty on CSSStyleDeclaration must not enqueue an attributeChanged reaction when it mutates the style attribute but the style attribute is not observed define_new_custom_element is not defined
FAIL setProperty on CSSStyleDeclaration must enqueue an attributeChanged reaction when it makes a property important and the style attribute is observed define_new_custom_element is not defined
FAIL setProperty on CSSStyleDeclaration must enqueue an attributeChanged reaction when it makes a property important but the style attribute is not observed define_new_custom_element is not defined
FAIL removeProperty on CSSStyleDeclaration must enqueue an attributeChanged reaction when it removes a property from the observed style attribute define_new_custom_element is not defined
FAIL removeProperty on CSSStyleDeclaration must not enqueue an attributeChanged reaction when it removes a property from the style attribute but the style attribute is not observed define_new_custom_element is not defined
FAIL cssFloat on CSSStyleDeclaration must enqueue an attributeChanged reaction when it adds the observed style attribute define_new_custom_element is not defined
FAIL cssFloat on CSSStyleDeclaration must not enqueue an attributeChanged reaction when it adds the style attribute but the style attribute is not observed define_new_custom_element is not defined
FAIL A camel case attribute (borderWidth) on CSSStyleDeclaration must enqueue an attributeChanged reaction when it adds the observed style attribute define_new_custom_element is not defined
FAIL A camel case attribute (borderWidth) on CSSStyleDeclaration must not enqueue an attributeChanged reaction when it adds the style attribute but the style attribute is not observed define_new_custom_element is not defined
FAIL A camel case attribute (borderWidth) on CSSStyleDeclaration must enqueue an attributeChanged reaction when it mutates the observed style attribute define_new_custom_element is not defined
FAIL A camel case attribute (borderWidth) on CSSStyleDeclaration must not enqueue an attributeChanged reaction when it mutates the style attribute but the style attribute is not observed define_new_custom_element is not defined
FAIL A dashed property (border-width) on CSSStyleDeclaration must enqueue an attributeChanged reaction when it adds the observed style attribute define_new_custom_element is not defined
FAIL A dashed property (border-width) on CSSStyleDeclaration must not enqueue an attributeChanged reaction when it adds the style attribute but the style attribute is not observed define_new_custom_element is not defined
FAIL A dashed property (border-width) on CSSStyleDeclaration must enqueue an attributeChanged reaction when it mutates the observed style attribute define_new_custom_element is not defined
FAIL A dashed property (border-width) on CSSStyleDeclaration must not enqueue an attributeChanged reaction when it mutates the style attribute but the style attribute is not observed define_new_custom_element is not defined
FAIL A webkit prefixed camel case attribute (webkitFilter) on CSSStyleDeclaration must enqueue an attributeChanged reaction when it adds the observed style attribute define_new_custom_element is not defined
FAIL A webkit prefixed camel case attribute (webkitFilter) on CSSStyleDeclaration must not enqueue an attributeChanged reaction when it adds the style attribute but the style attribute is not observed define_new_custom_element is not defined
FAIL A webkit prefixed camel case attribute (webkitFilter) on CSSStyleDeclaration must enqueue an attributeChanged reaction when it mutates the observed style attribute define_new_custom_element is not defined
FAIL A webkit prefixed camel case attribute (webkitFilter) on CSSStyleDeclaration must not enqueue an attributeChanged reaction when it mutates the style attribute but the style attribute is not observed define_new_custom_element is not defined
FAIL A webkit prefixed dashed property (-webkit-filter) on CSSStyleDeclaration must enqueue an attributeChanged reaction when it adds the observed style attribute define_new_custom_element is not defined
FAIL A webkit prefixed dashed property (-webkit-filter) on CSSStyleDeclaration must not enqueue an attributeChanged reaction when it adds the style attribute but the style attribute is not observed define_new_custom_element is not defined
FAIL A webkit prefixed dashed property (-webkit-filter) on CSSStyleDeclaration must enqueue an attributeChanged reaction when it mutates the observed style attribute define_new_custom_element is not defined
FAIL A webkit prefixed dashed property (-webkit-filter) on CSSStyleDeclaration must not enqueue an attributeChanged reaction when it mutates the style attribute but the style attribute is not observed define_new_custom_element is not defined
Harness: the test ran to completion.
This is a testharness.js-based test.
FAIL before on ChildNode must enqueue a connected reaction define_new_custom_element is not defined
FAIL before on ChildNode must enqueue a disconnected reaction, an adopted reaction, and a connected reaction when the custom element was in another document define_new_custom_element is not defined
FAIL after on ChildNode must enqueue a connected reaction define_new_custom_element is not defined
FAIL after on ChildNode must enqueue a disconnected reaction, an adopted reaction, and a connected reaction when the custom element was in another document define_new_custom_element is not defined
FAIL replaceWith on ChildNode must enqueue a connected reaction define_new_custom_element is not defined
FAIL replaceWith on ChildNode must enqueue a disconnected reaction, an adopted reaction, and a connected reaction when the custom element was in another document define_new_custom_element is not defined
FAIL remove on ChildNode must enqueue a disconnected reaction define_new_custom_element is not defined
Harness: the test ran to completion.
This is a testharness.js-based test.
FAIL setter on DOMStringMap must enqueue an attributeChanged reaction when adding an observed data attribute define_new_custom_element is not defined
FAIL setter on DOMStringMap must not enqueue an attributeChanged reaction when adding an unobserved data attribute define_new_custom_element is not defined
FAIL setter on DOMStringMap must enqueue an attributeChanged reaction when mutating the value of an observed data attribute define_new_custom_element is not defined
FAIL setter on DOMStringMap must enqueue an attributeChanged reaction when mutating the value of an observed data attribute to the same value define_new_custom_element is not defined
FAIL setter on DOMStringMap must not enqueue an attributeChanged reaction when mutating the value of an unobserved data attribute define_new_custom_element is not defined
FAIL deleter on DOMStringMap must enqueue an attributeChanged reaction when removing an observed data attribute define_new_custom_element is not defined
FAIL deleter on DOMStringMap must not enqueue an attributeChanged reaction when removing an unobserved data attribute define_new_custom_element is not defined
FAIL deleter on DOMStringMap must not enqueue an attributeChanged reaction when it does not remove a data attribute define_new_custom_element is not defined
Harness: the test ran to completion.
This is a testharness.js-based test.
FAIL add on DOMTokenList must enqueue an attributeChanged reaction when adding an attribute define_new_custom_element is not defined
FAIL add on DOMTokenList must not enqueue an attributeChanged reaction when adding an unobserved attribute define_new_custom_element is not defined
FAIL add on DOMTokenList must enqueue an attributeChanged reaction when adding a value to an existing attribute define_new_custom_element is not defined
FAIL add on DOMTokenList must not enqueue an attributeChanged reaction when adding a value to an unobserved attribute define_new_custom_element is not defined
FAIL add on DOMTokenList must enqueue exactly one attributeChanged reaction when adding multiple values to an attribute define_new_custom_element is not defined
FAIL remove on DOMTokenList must enqueue an attributeChanged reaction when removing a value from an attribute define_new_custom_element is not defined
FAIL remove on DOMTokenList must enqueue exactly one attributeChanged reaction when removing multiple values to an attribute define_new_custom_element is not defined
FAIL remove on DOMTokenList must enqueue an attributeChanged reaction even when removing a non-existent value from an attribute define_new_custom_element is not defined
FAIL remove on DOMTokenList must not enqueue an attributeChanged reaction when removing a value from an unobserved attribute define_new_custom_element is not defined
FAIL toggle on DOMTokenList must enqueue an attributeChanged reaction when adding a value to an attribute define_new_custom_element is not defined
FAIL toggle on DOMTokenList must enqueue an attributeChanged reaction when removing a value from an attribute define_new_custom_element is not defined
FAIL replace on DOMTokenList must enqueue an attributeChanged reaction when replacing a value in an attribute define_new_custom_element is not defined
FAIL replace on DOMTokenList must not enqueue an attributeChanged reaction when the token to replace does not exist in the attribute define_new_custom_element is not defined
FAIL replace on DOMTokenList must not enqueue an attributeChanged reaction when replacing a value in an unobserved attribute define_new_custom_element is not defined
FAIL the stringifier of DOMTokenList must enqueue an attributeChanged reaction when adding an observed attribute define_new_custom_element is not defined
FAIL the stringifier of DOMTokenList must not enqueue an attributeChanged reaction when adding an unobserved attribute define_new_custom_element is not defined
FAIL the stringifier of DOMTokenList must enqueue an attributeChanged reaction when mutating the value of an observed attribute define_new_custom_element is not defined
FAIL the stringifier of DOMTokenList must not enqueue an attributeChanged reaction when mutating the value of an unobserved attribute define_new_custom_element is not defined
FAIL the stringifier of DOMTokenList must enqueue an attributeChanged reaction when the setter is called with the original value of the attribute define_new_custom_element is not defined
Harness: the test ran to completion.
This is a testharness.js-based test.
FAIL Custom Elements: CEReactions on Document interface Uncaught ReferenceError: test_with_window is not defined
Harness: the test ran to completion.
This is a testharness.js-based test.
FAIL id on Element must enqueue an attributeChanged reaction when adding id content attribute define_new_custom_element is not defined
FAIL id on Element must enqueue an attributeChanged reaction when replacing an existing attribute define_new_custom_element is not defined
FAIL className on Element must enqueue an attributeChanged reaction when adding class content attribute define_new_custom_element is not defined
FAIL className on Element must enqueue an attributeChanged reaction when replacing an existing attribute define_new_custom_element is not defined
FAIL slot on Element must enqueue an attributeChanged reaction when adding slot content attribute define_new_custom_element is not defined
FAIL slot on Element must enqueue an attributeChanged reaction when replacing an existing attribute define_new_custom_element is not defined
FAIL setAttribute on Element must enqueue an attributeChanged reaction when adding an attribute define_new_custom_element is not defined
FAIL setAttribute on Element must not enqueue an attributeChanged reaction when adding an unobserved attribute define_new_custom_element is not defined
FAIL setAttribute on Element must enqueue an attributeChanged reaction when replacing an existing attribute define_new_custom_element is not defined
FAIL setAttribute on Element must enqueue an attributeChanged reaction when replacing an existing unobserved attribute define_new_custom_element is not defined
FAIL setAttributeNS on Element must enqueue an attributeChanged reaction when adding an attribute define_new_custom_element is not defined
FAIL setAttributeNS on Element must not enqueue an attributeChanged reaction when adding an unobserved attribute define_new_custom_element is not defined
FAIL setAttributeNS on Element must enqueue an attributeChanged reaction when replacing an existing attribute define_new_custom_element is not defined
FAIL setAttributeNS on Element must enqueue an attributeChanged reaction when replacing an existing unobserved attribute define_new_custom_element is not defined
FAIL removeAttribute on Element must not enqueue an attributeChanged reaction when removing an unobserved attribute define_new_custom_element is not defined
FAIL removeAttribute on Element must enqueue an attributeChanged reaction when removing an existing attribute define_new_custom_element is not defined
FAIL removeAttribute on Element must not enqueue an attributeChanged reaction when removing an existing unobserved attribute define_new_custom_element is not defined
FAIL removeAttributeNS on Element must not enqueue an attributeChanged reaction when removing an unobserved attribute define_new_custom_element is not defined
FAIL removeAttributeNS on Element must enqueue an attributeChanged reaction when removing an existing attribute define_new_custom_element is not defined
FAIL removeAttributeNS on Element must not enqueue an attributeChanged reaction when removing an existing unobserved attribute define_new_custom_element is not defined
FAIL setAttributeNode on Element must enqueue an attributeChanged reaction when adding an attribute define_new_custom_element is not defined
FAIL setAttributeNode on Element must not enqueue an attributeChanged reaction when adding an unobserved attribute define_new_custom_element is not defined
FAIL setAttributeNode on Element must enqueue an attributeChanged reaction when replacing an existing attribute define_new_custom_element is not defined
FAIL setAttributeNode on Element must enqueue an attributeChanged reaction when replacing an existing unobserved attribute define_new_custom_element is not defined
FAIL setAttributeNodeNS on Element must enqueue an attributeChanged reaction when adding an attribute define_new_custom_element is not defined
FAIL setAttributeNodeNS on Element must not enqueue an attributeChanged reaction when adding an unobserved attribute define_new_custom_element is not defined
FAIL setAttributeNodeNS on Element must enqueue an attributeChanged reaction when replacing an existing attribute define_new_custom_element is not defined
FAIL setAttributeNodeNS on Element must enqueue an attributeChanged reaction when replacing an existing unobserved attribute define_new_custom_element is not defined
FAIL removeAttributeNode on Element must not enqueue an attributeChanged reaction when removing an unobserved attribute define_new_custom_element is not defined
FAIL removeAttributeNode on Element must enqueue an attributeChanged reaction when removing an existing attribute define_new_custom_element is not defined
FAIL removeAttributeNode on Element must not enqueue an attributeChanged reaction when removing an existing unobserved attribute define_new_custom_element is not defined
FAIL insertAdjacentElement on Element must enqueue a connected reaction define_new_custom_element is not defined
FAIL insertAdjacentElement on Element must enqueue a disconnected reaction, an adopted reaction, and a connected reaction when the custom element was in another document define_new_custom_element is not defined
FAIL innerHTML on Element must enqueue a connected reaction for a newly constructed custom element define_new_custom_element is not defined
FAIL innerHTML on Element must enqueue a attributeChanged reaction for a newly constructed custom element define_new_custom_element is not defined
FAIL innerHTML on Element must enqueue a disconnected reaction define_new_custom_element is not defined
FAIL outerHTML on Element must enqueue a connected reaction for a newly constructed custom element define_new_custom_element is not defined
FAIL outerHTML on Element must enqueue a attributeChanged reaction for a newly constructed custom element define_new_custom_element is not defined
FAIL outerHTML on Element must enqueue a disconnected reaction define_new_custom_element is not defined
FAIL insertAdjacentHTML on Element must enqueue a connected reaction for a newly constructed custom element define_new_custom_element is not defined
FAIL insertAdjacentHTML on Element must enqueue a attributeChanged reaction for a newly constructed custom element define_new_custom_element is not defined
Harness: the test ran to completion.
This is a testharness.js-based test.
FAIL contentEditable on ElementContentEditable must enqueue an attributeChanged reaction when adding contenteditable content attribute define_new_custom_element is not defined
FAIL contentEditable on ElementContentEditable must enqueue an attributeChanged reaction when replacing an existing attribute define_new_custom_element is not defined
Harness: the test ran to completion.
This is a testharness.js-based test.
FAIL Custom Elements: CEReactions on HTMLAnchorElement interface Uncaught ReferenceError: test_with_window is not defined
Harness: the test ran to completion.
This is a testharness.js-based test.
FAIL title on HTMLElement must enqueue an attributeChanged reaction when adding title content attribute define_new_custom_element is not defined
FAIL title on HTMLElement must enqueue an attributeChanged reaction when replacing an existing attribute define_new_custom_element is not defined
FAIL lang on HTMLElement must enqueue an attributeChanged reaction when adding lang content attribute define_new_custom_element is not defined
FAIL lang on HTMLElement must enqueue an attributeChanged reaction when replacing an existing attribute define_new_custom_element is not defined
FAIL translate on HTMLElement must enqueue an attributeChanged reaction when adding translate content attribute define_new_custom_element is not defined
FAIL translate on HTMLElement must enqueue an attributeChanged reaction when replacing an existing attribute define_new_custom_element is not defined
FAIL dir on HTMLElement must enqueue an attributeChanged reaction when adding dir content attribute define_new_custom_element is not defined
FAIL dir on HTMLElement must enqueue an attributeChanged reaction when replacing an existing attribute define_new_custom_element is not defined
FAIL hidden on HTMLElement must enqueue an attributeChanged reaction when adding hidden content attribute define_new_custom_element is not defined
FAIL hidden on HTMLElement must enqueue an attributeChanged reaction when replacing an existing attribute define_new_custom_element is not defined
FAIL tabIndex on HTMLElement must enqueue an attributeChanged reaction when adding tabindex content attribute define_new_custom_element is not defined
FAIL tabIndex on HTMLElement must enqueue an attributeChanged reaction when replacing an existing attribute define_new_custom_element is not defined
FAIL accessKey on HTMLElement must enqueue an attributeChanged reaction when adding accesskey content attribute define_new_custom_element is not defined
FAIL accessKey on HTMLElement must enqueue an attributeChanged reaction when replacing an existing attribute define_new_custom_element is not defined
FAIL draggable on HTMLElement must enqueue an attributeChanged reaction when adding draggable content attribute define_new_custom_element is not defined
FAIL draggable on HTMLElement must enqueue an attributeChanged reaction when replacing an existing attribute define_new_custom_element is not defined
FAIL spellcheck on HTMLElement must enqueue an attributeChanged reaction when adding spellcheck content attribute define_new_custom_element is not defined
FAIL spellcheck on HTMLElement must enqueue an attributeChanged reaction when replacing an existing attribute define_new_custom_element is not defined
FAIL innerText on HTMLElement must enqueue a disconnected reaction define_new_custom_element is not defined
FAIL outerText on HTMLElement must enqueue a disconnected reaction define_new_custom_element is not defined
Harness: the test ran to completion.
This is a testharness.js-based test.
FAIL Custom Elements: CEReactions on HTMLOptionElement interface Uncaught ReferenceError: test_with_window is not defined
Harness: the test ran to completion.
This is a testharness.js-based test.
FAIL Custom Elements: CEReactions on HTMLOptionsCollection interface Uncaught ReferenceError: test_with_window is not defined
Harness: the test ran to completion.
This is a testharness.js-based test.
FAIL Custom Elements: CEReactions on HTMLOutputElement interface Uncaught ReferenceError: test_with_window is not defined
Harness: the test ran to completion.
This is a testharness.js-based test.
FAIL Custom Elements: CEReactions on HTMLSelectElement interface Uncaught ReferenceError: test_with_window is not defined
Harness: the test ran to completion.
This is a testharness.js-based test.
FAIL Custom Elements: CEReactions on HTMLTableElement interface Uncaught ReferenceError: test_with_window is not defined
Harness: the test ran to completion.
This is a testharness.js-based test.
FAIL Custom Elements: CEReactions on HTMLTableRowElement interface Uncaught ReferenceError: test_with_window is not defined
Harness: the test ran to completion.
This is a testharness.js-based test.
FAIL Custom Elements: CEReactions on HTMLTableSectionElement interface Uncaught ReferenceError: test_with_window is not defined
Harness: the test ran to completion.
This is a testharness.js-based test.
FAIL Custom Elements: CEReactions on HTMLTitleElement interface Uncaught ReferenceError: test_with_window is not defined
Harness: the test ran to completion.
This is a testharness.js-based test.
FAIL setNamedItem on NamedNodeMap must enqueue an attributeChanged reaction when adding an attribute define_new_custom_element is not defined
FAIL setNamedItem on NamedNodeMap must not enqueue an attributeChanged reaction when adding an unobserved attribute define_new_custom_element is not defined
FAIL setNamedItem on NamedNodeMap must enqueue an attributeChanged reaction when replacing an existing attribute define_new_custom_element is not defined
FAIL setNamedItem on NamedNodeMap must enqueue an attributeChanged reaction when replacing an existing unobserved attribute define_new_custom_element is not defined
FAIL setNamedItemNS on NamedNodeMap must enqueue an attributeChanged reaction when adding an attribute define_new_custom_element is not defined
FAIL setNamedItemNS on NamedNodeMap must not enqueue an attributeChanged reaction when adding an unobserved attribute define_new_custom_element is not defined
FAIL setNamedItemNS on NamedNodeMap must enqueue an attributeChanged reaction when replacing an existing attribute define_new_custom_element is not defined
FAIL setNamedItemNS on NamedNodeMap must enqueue an attributeChanged reaction when replacing an existing unobserved attribute define_new_custom_element is not defined
FAIL removeNamedItem on NamedNodeMap must not enqueue an attributeChanged reaction when removing an unobserved attribute define_new_custom_element is not defined
FAIL removeNamedItem on NamedNodeMap must enqueue an attributeChanged reaction when removing an existing attribute define_new_custom_element is not defined
FAIL removeNamedItem on NamedNodeMap must not enqueue an attributeChanged reaction when removing an existing unobserved attribute define_new_custom_element is not defined
FAIL removeNamedItemNS on NamedNodeMap must not enqueue an attributeChanged reaction when removing an unobserved attribute define_new_custom_element is not defined
FAIL removeNamedItemNS on NamedNodeMap must enqueue an attributeChanged reaction when removing an existing attribute define_new_custom_element is not defined
FAIL removeNamedItemNS on NamedNodeMap must not enqueue an attributeChanged reaction when removing an existing unobserved attribute define_new_custom_element is not defined
Harness: the test ran to completion.
This is a testharness.js-based test.
FAIL nodeValue on Node must enqueue an attributeChanged reaction when replacing an existing attribute define_new_custom_element is not defined
FAIL nodeValue on Node must not enqueue an attributeChanged reaction when replacing an existing unobserved attribute define_new_custom_element is not defined
FAIL textContent on Node must enqueue an attributeChanged reaction when replacing an existing attribute define_new_custom_element is not defined
FAIL textContent on Node must not enqueue an attributeChanged reaction when replacing an existing unobserved attribute define_new_custom_element is not defined
FAIL cloneNode on Node must enqueue an attributeChanged reaction when cloning an element with an observed attribute define_new_custom_element is not defined
FAIL cloneNode on Node must not enqueue an attributeChanged reaction when cloning an element with an unobserved attribute define_new_custom_element is not defined
FAIL cloneNode on Node must enqueue an attributeChanged reaction when cloning an element only for observed attributes define_new_custom_element is not defined
FAIL insertBefore on ChildNode must enqueue a connected reaction define_new_custom_element is not defined
FAIL insertBefore on ChildNode must enqueue a disconnected reaction, an adopted reaction, and a connected reaction when the custom element was in another document define_new_custom_element is not defined
FAIL appendChild on ChildNode must enqueue a connected reaction define_new_custom_element is not defined
FAIL appendChild on ChildNode must enqueue a disconnected reaction, an adopted reaction, and a connected reaction when the custom element was in another document define_new_custom_element is not defined
FAIL replaceChild on ChildNode must enqueue a connected reaction define_new_custom_element is not defined
FAIL replaceChild on ChildNode must enqueue a disconnected reaction, an adopted reaction, and a connected reaction when the custom element was in another document define_new_custom_element is not defined
FAIL removeChild on ChildNode must enqueue a disconnected reaction define_new_custom_element is not defined
Harness: the test ran to completion.
This is a testharness.js-based test.
FAIL prepend on ParentNode must enqueue a connected reaction define_new_custom_element is not defined
FAIL prepend on ParentNode must enqueue a disconnected reaction, an adopted reaction, and a connected reaction when the custom element was in another document define_new_custom_element is not defined
FAIL append on ParentNode must enqueue a connected reaction define_new_custom_element is not defined
FAIL append on ParentNode must enqueue a disconnected reaction, an adopted reaction, and a connected reaction when the custom element was in another document define_new_custom_element is not defined
Harness: the test ran to completion.
This is a testharness.js-based test.
FAIL deleteContents on Range must enqueue a disconnected reaction define_new_custom_element is not defined
FAIL extractContents on Range must enqueue a disconnected reaction define_new_custom_element is not defined
FAIL cloneContents on Range must enqueue an attributeChanged reaction when cloning an element with an observed attribute define_new_custom_element is not defined
FAIL cloneContents on Range must not enqueue an attributeChanged reaction when cloning an element with an unobserved attribute define_new_custom_element is not defined
FAIL cloneContents on Range must enqueue an attributeChanged reaction when cloning an element only for observed attributes define_new_custom_element is not defined
FAIL insertNode on Range must enqueue a connected reaction define_new_custom_element is not defined
FAIL insertNode on Range must enqueue a disconnected reaction, an adopted reaction, and a connected reaction when the custom element was in another document define_new_custom_element is not defined
FAIL surroundContents on Range must enqueue a connected reaction define_new_custom_element is not defined
FAIL surroundContents on Range must enqueue a disconnected reaction, an adopted reaction, and a connected reaction when the custom element was in another document define_new_custom_element is not defined
FAIL createContextualFragment on Range must construct a custom element define_new_custom_element is not defined
Harness: the test ran to completion.
This is a testharness.js-based test.
FAIL deleteFromDocument on Selection must enqueue a disconnected reaction define_new_custom_element is not defined
Harness: the test ran to completion.
This is a testharness.js-based test.
FAIL Custom Elements: CEReactions on ShadowRoot interface Uncaught ReferenceError: test_with_window is not defined
Harness: the test ran to completion.
This is a testharness.js-based test.
FAIL Custom Elements: CEReactions interaction with exceptions Uncaught ReferenceError: test_with_window is not defined
Harness: the test ran to completion.
<!DOCTYPE html>
<html>
<body>
<p>Navigated!</p>
<script>
parent.postMessage('didNavigate', '*');
</script>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>Custom Elements: create an element for a token must increment and decrement document's throw-on-dynamic-markup-insertion counter</title>
<meta name="author" title="Ryosuke Niwa" href="mailto:rniwa@webkit.org">
<meta name="assert" content="Invoking document.open, document.write, document.writeln, and document.write must throw an exception when the HTML parser is creating a custom element for a token">
<meta name="help" content="https://html.spec.whatwg.org/multipage/parsing.html#create-an-element-for-the-token">
<meta name="help" content="https://html.spec.whatwg.org/multipage/dynamic-markup-insertion.html#throw-on-dynamic-markup-insertion-counter">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/custom-elements-helpers.js"></script>
</head>
<body>
<div id="log"></div>
<script>
async function construct_custom_element_in_parser(test, call_function)
{
const window = await create_window_in_test(test);
const document = window.document;
document.open();
let executed = false;
let exception = null;
class CustomElement extends window.HTMLElement {
constructor() {
super();
try {
call_function(document, window);
} catch (error) {
exception = error;
}
executed = true;
}
}
window.customElements.define('some-element', CustomElement);
document.write('<!DOCTYPE html><html><body><some-element></some-element></body></html>');
document.close();
assert_true(executed, 'Must synchronously instantiate a custom element');
return {window, document, exception};
}
promise_test(async function () {
const result = await construct_custom_element_in_parser(this, (document) => document.open());
assert_throws('InvalidStateError', () => { throw result.exception; }, 'Must throw an InvalidStateError');
}, 'document.open() must throw an InvalidStateError when synchronously constructing a custom element');
promise_test(async function () {
const result = await construct_custom_element_in_parser(this, (document) => document.open('text/html'));
assert_throws('InvalidStateError', () => { throw result.exception; }, 'Must throw an InvalidStateError');
}, 'document.open("text/html") must throw an InvalidStateError when synchronously constructing a custom element');
// https://html.spec.whatwg.org/multipage/dynamic-markup-insertion.html#dom-document-open-window
promise_test(async function () {
let load_promise = new Promise((resolve) => window.onmessage = (event) => resolve(event.data));
const result = await construct_custom_element_in_parser(this, (document, window) => document.open('resources/navigation-destination.html', '_self', ''));
assert_equals(result.exception, null);
assert_equals(await load_promise, 'didNavigate');
}, 'document.open(URL) must NOT throw an InvalidStateError when synchronously constructing a custom element');
promise_test(async function () {
const result = await construct_custom_element_in_parser(this, (document) => document.close());
assert_throws('InvalidStateError', () => { throw result.exception; }, 'Must throw an InvalidStateError');
}, 'document.close() must throw an InvalidStateError when synchronously constructing a custom element');
promise_test(async function () {
const result = await construct_custom_element_in_parser(this, (document) => document.write('<b>some text</b>'));
assert_throws('InvalidStateError', () => { throw result.exception; }, 'Must throw an InvalidStateError');
assert_equals(result.document.querySelector('b'), null, 'Must not insert new content');
assert_false(result.document.documentElement.innerHTML.includes('some text'), 'Must not insert new content');
}, 'document.write must throw an InvalidStateError when synchronously constructing a custom element');
promise_test(async function () {
const result = await construct_custom_element_in_parser(this, (document) => document.writeln('<b>some text</b>'));
assert_throws('InvalidStateError', () => { throw result.exception; }, 'Must throw an InvalidStateError');
assert_equals(result.document.querySelector('b'), null, 'Must not insert new content');
assert_false(result.document.documentElement.innerHTML.includes('some text'), 'Must not insert new content');
}, 'document.writeln must throw an InvalidStateError when synchronously constructing a custom element');
promise_test(async function () {
const another_window = await create_window_in_test(this);
const result = await construct_custom_element_in_parser(this, (document) => another_window.document.open());
assert_equals(result.exception, null);
}, 'document.open() of another document must not throw an InvalidStateError when synchronously constructing a custom element');
promise_test(async function () {
const another_window = await create_window_in_test(this);
const result = await construct_custom_element_in_parser(this, (document) => another_window.document.open('text/html'));
assert_equals(result.exception, null);
}, 'document.open("text/html") of another document must not throw an InvalidStateError when synchronously constructing a custom element');
promise_test(async function () {
const another_window = await create_window_in_test(this);
const result = await construct_custom_element_in_parser(this, (document) => another_window.document.close());
assert_equals(result.exception, null);
}, 'document.close() of another document must not throw an InvalidStateError when synchronously constructing a custom element');
promise_test(async function () {
const another_window = await create_window_in_test(this);
const result = await construct_custom_element_in_parser(this, (document) => another_window.document.write('<b>some text</b>'));
assert_equals(result.exception, null);
assert_equals(another_window.document.querySelector('b').outerHTML, '<b>some text</b>');
}, 'document.write of another document must not throw an InvalidStateError when synchronously constructing a custom element');
promise_test(async function () {
const another_window = await create_window_in_test(this);
const result = await construct_custom_element_in_parser(this, (document) => another_window.document.writeln('<b>some text</b>'));
assert_equals(result.exception, null);
assert_equals(another_window.document.querySelector('b').outerHTML, '<b>some text</b>');
}, 'document.writeln of another document must not throw an InvalidStateError when synchronously constructing a custom element');
</script>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>Custom Elements: create an element for a token must increment and decrement document's throw-on-dynamic-markup-insertion counter</title>
<meta name="author" title="Ryosuke Niwa" href="mailto:rniwa@webkit.org">
<meta name="assert" content="Invoking document.open, document.write, document.writeln, and document.write must throw an exception when the HTML parser is creating a custom element for a token">
<meta name="help" content="https://html.spec.whatwg.org/multipage/parsing.html#create-an-element-for-the-token">
<meta name="help" content="https://html.spec.whatwg.org/multipage/dynamic-markup-insertion.html#throw-on-dynamic-markup-insertion-counter">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/custom-elements-helpers.js"></script>
</head>
<body>
<div id="log"></div>
<script>
async function custom_element_reactions_in_parser(test, call_function)
{
const window = await create_window_in_test(test);
const document = window.document;
document.open();
let executed = false;
let exception = null;
class CustomElement extends window.HTMLElement {
attributeChangedCallback(name, oldValue, newValue) {
try {
call_function(document, window);
} catch (error) {
exception = error;
}
executed = true;
}
}
CustomElement.observedAttributes = ['title'];
window.customElements.define('some-element', CustomElement);
document.write('<!DOCTYPE html><html><body><some-element title="some title"></some-element></body></html>');
document.close();
assert_true(executed, 'Must immediately process custom element reactions for setting attributes');
return {frameElement, window, document, exception};
}
promise_test(async function () {
const result = await custom_element_reactions_in_parser(this, (document) => document.open());
assert_throws('InvalidStateError', () => { throw result.exception; }, 'Must throw an InvalidStateError');
}, 'document.open() must throw an InvalidStateError when processing custom element reactions for a synchronous constructed custom element');
promise_test(async function () {
const result = await custom_element_reactions_in_parser(this, (document) => document.open('text/html'));
assert_throws('InvalidStateError', () => { throw result.exception; }, 'Must throw an InvalidStateError');
}, 'document.open("text/html") must throw an InvalidStateError when processing custom element reactions for a synchronous constructed custom element');
// https://html.spec.whatwg.org/multipage/dynamic-markup-insertion.html#dom-document-open-window
promise_test(async function () {
let load_promise = new Promise((resolve) => window.onmessage = (event) => resolve(event.data));
const result = await custom_element_reactions_in_parser(this, (document, window) => document.open('resources/navigation-destination.html', '_self', ''));
assert_equals(result.exception, null);
assert_equals(await load_promise, 'didNavigate');
}, 'document.open(URL) must NOT throw an InvalidStateError when processing custom element reactions for a synchronous constructed custom element');
promise_test(async function () {
const result = await custom_element_reactions_in_parser(this, (document) => document.close());
assert_throws('InvalidStateError', () => { throw result.exception; }, 'Must throw an InvalidStateError');
}, 'document.close() must throw an InvalidStateError when processing custom element reactions for a synchronous constructed custom element');
promise_test(async function () {
const result = await custom_element_reactions_in_parser(this, (document) => document.write('<b>some text</b>'));
assert_throws('InvalidStateError', () => { throw result.exception; }, 'Must throw an InvalidStateError');
assert_equals(result.document.querySelector('b'), null, 'Must not insert new content');
assert_false(result.document.documentElement.innerHTML.includes('some text'), 'Must not insert new content');
}, 'document.write must throw an InvalidStateError when processing custom element reactions for a synchronous constructed custom element');
promise_test(async function () {
const result = await custom_element_reactions_in_parser(this, (document) => document.writeln('<b>some text</b>'));
assert_throws('InvalidStateError', () => { throw result.exception; }, 'Must throw an InvalidStateError');
assert_equals(result.document.querySelector('b'), null, 'Must not insert new content');
assert_false(result.document.documentElement.innerHTML.includes('some text'), 'Must not insert new content');
}, 'document.writeln must throw an InvalidStateError when processing custom element reactions for a synchronous constructed custom element');
promise_test(async function () {
const another_window = await create_window_in_test(this);
const result = await custom_element_reactions_in_parser(this, (document) => another_window.document.open());
assert_equals(result.exception, null);
}, 'document.open() of another document must not throw an InvalidStateError when processing custom element reactions for a synchronous constructed custom element');
promise_test(async function () {
const another_window = await create_window_in_test(this);
const result = await custom_element_reactions_in_parser(this, (document) => another_window.document.open('text/html'));
assert_equals(result.exception, null);
}, 'document.open("text/html") of another document must not throw an InvalidStateError when processing custom element reactions for a synchronous constructed custom element');
promise_test(async function () {
const another_window = await create_window_in_test(this);
const result = await custom_element_reactions_in_parser(this, (document) => another_window.document.close());
assert_equals(result.exception, null);
}, 'document.close() of another document must not throw an InvalidStateError when processing custom element reactions for a synchronous constructed custom element');
promise_test(async function () {
const another_window = await create_window_in_test(this);
const result = await custom_element_reactions_in_parser(this, (document) => another_window.document.write('<b>some text</b>'));
assert_equals(result.exception, null);
assert_equals(another_window.document.querySelector('b').outerHTML, '<b>some text</b>');
}, 'document.write of another document must not throw an InvalidStateError when processing custom element reactions for a synchronous constructed custom element');
promise_test(async function () {
const another_window = await create_window_in_test(this);
const result = await custom_element_reactions_in_parser(this, (document) => another_window.document.writeln('<b>some text</b>'));
assert_equals(result.exception, null);
assert_equals(another_window.document.querySelector('b').outerHTML, '<b>some text</b>');
}, 'document.writeln of another document must not throw an InvalidStateError when processing custom element reactions for a synchronous constructed custom element');
</script>
</body>
</html>
This is a testharness.js-based test.
FAIL Custom Elements: Enqueue a custom element upgrade reaction Uncaught ReferenceError: document_types is not defined
Harness: the test ran to completion.
This is a testharness.js-based test.
FAIL Document-importNode Uncaught ReferenceError: test_with_window is not defined
Harness: the test ran to completion.
......@@ -4,7 +4,7 @@ function create_window_in_test(t, srcdoc) {
f.srcdoc = srcdoc ? srcdoc : '';
f.onload = (event) => {
let w = f.contentWindow;
t.add_cleanup(() => f.parentNode && f.remove());
t.add_cleanup(() => f.remove());
resolve(w);
};
document.body.appendChild(f);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment