Commit 9f5c52fb authored by Mason Freed's avatar Mason Freed Committed by Commit Bot

Move Custom Elements v0 tests to a separate folder

This is part of a multi-CL set that will move all "Web Components v0
only" tests into a separate folder. This will make landing the eventual
removal of WCv0 easier, because this entire folder can simply be skipped
rather than requiring file-by-file changes. There should not be any
tests in this folder that are needed for testing Web Components
VERSION 1 features.

While this CL does not change any behavior or testing now, care should
be taken in reviewing the list of tests, since when WCv0 is removed,
all of these tests will be deleted. So any tests being moved here that
are required for testing a non-WCv0 feature should *not* be included in
this move. This set should only include specific Custom Elements v0
tests, which should be fairly-well covered by existing WPT tests.

This CL just moves this one folder:
 - fast/dom/custom

Bug: 937746
Change-Id: Ic76746a5a43d0c86fe4ab6492f58862356421086
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2202124
Commit-Queue: Rune Lillesveen <futhark@chromium.org>
Reviewed-by: default avatarRune Lillesveen <futhark@chromium.org>
Auto-Submit: Mason Freed <masonfreed@chromium.org>
Cr-Commit-Position: refs/heads/master@{#769638}
parent 2651fd83
...@@ -3820,15 +3820,6 @@ crbug.com/789139 http/tests/devtools/sources/debugger/live-edit-no-reveal.js [ F ...@@ -3820,15 +3820,6 @@ crbug.com/789139 http/tests/devtools/sources/debugger/live-edit-no-reveal.js [ F
# ====== Begin web-components-v0-disabled virtual suite tests ====== # ====== Begin web-components-v0-disabled virtual suite tests ======
# Ignore these - they are tests of the disabled features. Eventually remove these. # Ignore these - they are tests of the disabled features. Eventually remove these.
crbug.com/937746 virtual/web-components-v0-disabled/fast/dom/custom/callback-context.html [ Skip ]
crbug.com/937746 virtual/web-components-v0-disabled/fast/dom/custom/crash-without-dom-wrapper.html [ Skip ]
crbug.com/937746 virtual/web-components-v0-disabled/fast/dom/custom/created-callback.html [ Skip ]
crbug.com/937746 virtual/web-components-v0-disabled/fast/dom/custom/document-register-on-create-callback.html [ Skip ]
crbug.com/937746 virtual/web-components-v0-disabled/fast/dom/custom/imports-custom-element-abort.html [ Skip ]
crbug.com/937746 virtual/web-components-v0-disabled/fast/dom/custom/registration-context-delete-during-attribute-changed.html [ Skip ]
crbug.com/937746 virtual/web-components-v0-disabled/fast/dom/custom/registration-context-delete-during-callback-recursion.html [ Skip ]
crbug.com/937746 virtual/web-components-v0-disabled/fast/dom/custom/registration-context-delete-during-upgrade.html [ Skip ]
crbug.com/937746 virtual/web-components-v0-disabled/fast/dom/custom/registration-context-sharing.html [ Skip ]
crbug.com/937746 virtual/web-components-v0-disabled/fast/dom/shadow/access-document-of-detached-stylesheetlist-crash.html [ Skip ] crbug.com/937746 virtual/web-components-v0-disabled/fast/dom/shadow/access-document-of-detached-stylesheetlist-crash.html [ Skip ]
crbug.com/937746 virtual/web-components-v0-disabled/fast/dom/shadow/content-after-style.html [ Skip ] crbug.com/937746 virtual/web-components-v0-disabled/fast/dom/shadow/content-after-style.html [ Skip ]
crbug.com/937746 virtual/web-components-v0-disabled/fast/dom/shadow/content-element-in-media-element.html [ Skip ] crbug.com/937746 virtual/web-components-v0-disabled/fast/dom/shadow/content-element-in-media-element.html [ Skip ]
...@@ -3867,7 +3858,6 @@ crbug.com/937746 virtual/web-components-v0-disabled/fast/dom/shadow/shadow-inser ...@@ -3867,7 +3858,6 @@ crbug.com/937746 virtual/web-components-v0-disabled/fast/dom/shadow/shadow-inser
crbug.com/937746 virtual/web-components-v0-disabled/fast/dom/shadow/style-sharing-with-content-and-host.html [ Skip ] crbug.com/937746 virtual/web-components-v0-disabled/fast/dom/shadow/style-sharing-with-content-and-host.html [ Skip ]
crbug.com/937746 virtual/web-components-v0-disabled/fast/dom/shadow/svg-style-in-shadow-tree.xhtml [ Skip ] crbug.com/937746 virtual/web-components-v0-disabled/fast/dom/shadow/svg-style-in-shadow-tree.xhtml [ Skip ]
crbug.com/937746 virtual/web-components-v0-disabled/fast/dom/shadow/text-node-in-shadow.html [ Skip ] crbug.com/937746 virtual/web-components-v0-disabled/fast/dom/shadow/text-node-in-shadow.html [ Skip ]
crbug.com/937746 virtual/web-components-v0-disabled/fast/dom/custom/lifecycle-created-parser-only.html [ Skip ]
crbug.com/937746 virtual/web-components-v0-disabled/fast/dom/shadow/content-element-fallback-display-none-dynamic.html [ Skip ] crbug.com/937746 virtual/web-components-v0-disabled/fast/dom/shadow/content-element-fallback-display-none-dynamic.html [ Skip ]
crbug.com/937746 virtual/web-components-v0-disabled/fast/dom/shadow/content-element-outside-shadow-style.html [ Skip ] crbug.com/937746 virtual/web-components-v0-disabled/fast/dom/shadow/content-element-outside-shadow-style.html [ Skip ]
crbug.com/937746 virtual/web-components-v0-disabled/fast/dom/shadow/content-element-select-namespace.html [ Skip ] crbug.com/937746 virtual/web-components-v0-disabled/fast/dom/shadow/content-element-select-namespace.html [ Skip ]
......
This is a testharness.js-based test.
FAIL transfer attribute changed callback document.registerElement is not a function
FAIL add, change and remove an attribute document.registerElement is not a function
Harness: the test ran to completion.
CONSOLE ERROR: line 22: Uncaught TypeError: document.registerElement is not a function
Ensure that custom element callback fires before DOMContentLoaded event
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
FAIL successfullyParsed should be true. Was false.
TEST COMPLETE
FAIL eventlog[0] should be created x-foo. Was DOMContentLoaded event.
FAIL eventlog[1] should be DOMContentLoaded event. Was load event.
FAIL eventlog[2] should be load event (of type string). Was undefined (of type undefined).
This is a testharness.js-based test.
FAIL should inherit from passed constructor document.registerElement is not a function
Harness: the test ran to completion.
CONSOLE ERROR: line 12: Uncaught TypeError: document.registerElement is not a function
Tests that custom element constructors run the createdCallback synchronously.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
FAIL successfullyParsed should be true. Was false.
TEST COMPLETE
This is a testharness.js-based test.
FAIL Test for crbug/666610: Crash in blink::getTypeExtension document.registerElement is not a function
Harness: the test ran to completion.
This is a testharness.js-based test.
FAIL createElement is case insensitive for custom tags document.registerElement is not a function
FAIL createElement is case insensitive for type extensions document.registerElement is not a function
Harness: the test ran to completion.
This is a testharness.js-based test.
FAIL a default prototype object should be provided if one is not specified document.registerElement is not a function
Harness: the test ran to completion.
CONSOLE ERROR: line 21: Uncaught TypeError: document.registerElement is not a function
Testing document.registerElement() basic behaviors.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
FAIL successfullyParsed should be true. Was false.
TEST COMPLETE
This is a testharness.js-based test.
FAIL constructor type document.registerElement is not a function
FAIL constructor name document.registerElement is not a function
FAIL prototype "constructor" property document.registerElement is not a function
FAIL constructor "prototype" property document.registerElement is not a function
Harness: the test ran to completion.
CONSOLE ERROR: line 24: Uncaught TypeError: document.registerElement is not a function
Using document.registerElement() for extending HTML and non-HTML elements.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
FAIL successfullyParsed should be true. Was false.
TEST COMPLETE
Fuzzing document.registerElement() through getters. PASS uless crash.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
Constructor object isn't created.
Constructor object isn't created.
PASS successfullyParsed is true
TEST COMPLETE
Fuzzing document.registerElement() through getters. PASS uless crash.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
Constructor object isn't created.
Constructor object isn't created.
PASS successfullyParsed is true
TEST COMPLETE
Fuzzing document.registerElement() through getters. PASS unless crash.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
Constructor object isn't created.
Constructor object isn't created.
PASS successfullyParsed is true
TEST COMPLETE
This is a testharness.js-based test.
FAIL registration of SVG types assert_throws_dom: register of an SVG element requires the extends parameter function "function() {
document.registerElement('x-foo', {prototype: proto});
}" threw object "TypeError: document.registerElement is not a function" that is not a DOMException NOT_SUPPORTED_ERR: property "code" is equal to undefined, expected 9
Harness: the test ran to completion.
CONSOLE ERROR: line 28: Uncaught TypeError: document.registerElement is not a function
Testing document.registerElement() type extension behaviours through createElement().
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
FAIL successfullyParsed should be true. Was false.
TEST COMPLETE
This is a testharness.js-based test.
FAIL invalid and reserved names assert_throws_dom: register invalid custom element name: foo function "function (){
document.registerElement(invalidName, createRegisterParameters());
}" threw object "TypeError: document.registerElement is not a function" that is not a DOMException SYNTAX_ERR: property "code" is equal to undefined, expected 12
FAIL name conflicts document.registerElement is not a function
FAIL strange but valid names document.registerElement is not a function
Harness: the test ran to completion.
CONSOLE ERROR: line 28: Uncaught TypeError: document.registerElement is not a function
Test that changing an instantiated custom element's 'is' attribute does not affect its element type.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS window.testRunner is non-null.
FAIL successfullyParsed should be true. Was false.
TEST COMPLETE
CONSOLE ERROR: line 17: Uncaught TypeError: document.registerElement is not a function
Tests the element upgrade algorithm.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
FAIL successfullyParsed should be true. Was false.
TEST COMPLETE
This is a testharness.js-based test.
FAIL entered, left callbacks should only be invoked when entering or leaving a document with a view docB.registerElement is not a function
Harness: the test ran to completion.
Tests throwing an exception during registration of constructor
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
FAIL document.registerElement("x-a", {prototype: proto}) should throw Exception thrown from getter. Threw exception TypeError: document.registerElement is not a function.
PASS successfullyParsed is true
TEST COMPLETE
CONSOLE ERROR: line 17: Uncaught TypeError: document.registerElement is not a function
Test that accessing window.frameElement from a custom iframe does not crash.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
FAIL Unexpected error: Uncaught TypeError: document.registerElement is not a function
FAIL successfullyParsed should be true. Was false.
TEST COMPLETE
PASS Did not crash
FAIL successfullyParsed should be true. Was false.
TEST COMPLETE
CONSOLE WARNING: HTML Imports is deprecated and has now been removed as of M80. See https://www.chromestatus.com/features/5144752345317376 and https://developers.google.com/web/updates/2019/07/web-components-time-to-upgrade for more details.
This is a testharness.js-based test.
FAIL upgrade in the master assert_array_equals: Elements in the master and imports should be upgraded by a definition in an import. lengths differ, expected array ["a1", "a2", "a3", "b0", "b1", "b2", "a4", "b3", "b4", "a5"] length 10, got [] length 0
Harness: the test ran to completion.
CONSOLE WARNING: HTML Imports is deprecated and has now been removed as of M80. See https://www.chromestatus.com/features/5144752345317376 and https://developers.google.com/web/updates/2019/07/web-components-time-to-upgrade for more details.
This is a testharness.js-based test.
FAIL upgrade in the master assert_array_equals: Elements in the master should be upgraded by a definition in an import. lengths differ, expected array ["a1", "a2"] length 2, got [] length 0
Harness: the test ran to completion.
This is a testharness.js-based test.
FAIL generated constructor prototype property document.registerElement is not a function
Harness: the test ran to completion.
This is a testharness.js-based test.
FAIL registering invalid first letter combinators, not covered in Document::validNames assert_throws_dom: registering custom element: *ஃ-xfoo* should throw syntax error function "function () {
document.registerElement(invalidCombinator);
}" threw object "TypeError: document.registerElement is not a function" that is not a DOMException SYNTAX_ERR: property "code" is equal to undefined, expected 12
Harness: the test ran to completion.
CONSOLE ERROR: line 53: Uncaught TypeError: document.registerElement is not a function
Tests that accessing custom elements from an isolated world does not cause worlds to collide and destroy the galaxy.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS window.testRunner is non-null.
FAIL result should be 9 (of type number). Was undefined (of type undefined).
FAIL successfullyParsed should be true. Was false.
TEST COMPLETE
CONSOLE ERROR: line 8: Uncaught TypeError: document.registerElement is not a function
FAIL successfullyParsed should be true. Was false.
TEST COMPLETE
CONSOLE ERROR: line 22: Uncaught TypeError: document.registerElement is not a function
This test ensures that the lifecycle callback of a parser-made element is visible in following script block.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
FAIL window.callbacksCalled should be X-FOO,X-BAR. Was .
FAIL successfullyParsed should be true. Was false.
TEST COMPLETE
CONSOLE ERROR: line 13: Uncaught TypeError: document.registerElement is not a function
This test ensures that the lifecycle callbacks of API-originated elements are visible in following script block.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
FAIL document.createElement('x-foo').callbacksCalled should be true (of type boolean). Was undefined (of type undefined).
FAIL document.createElement('div', 'x-bar').callbacksCalled should be true (of type boolean). Was undefined (of type undefined).
FAIL document.createElementNS('http://www.w3.org/1999/xhtml', 'x-foo').callbacksCalled should be true (of type boolean). Was undefined (of type undefined).
FAIL document.createElementNS('http://www.w3.org/1999/xhtml', 'div', 'x-bar').callbacksCalled should be true (of type boolean). Was undefined (of type undefined).
FAIL foo.cloneNode().callbacksCalled should be true (of type boolean). Was undefined (of type undefined).
FAIL foo.cloneNode(true).firstChild.callbacksCalled should be true (of type boolean). Was undefined (of type undefined).
FAIL bar.cloneNode().callbacksCalled should be true (of type boolean). Was undefined (of type undefined).
FAIL bar.cloneNode(true).firstChild.callbacksCalled should be true (of type boolean). Was undefined (of type undefined).
FAIL foreignFoo.callbacksCalled should be true (of type boolean). Was undefined (of type undefined).
FAIL foreignFoo.firstChild.callbacksCalled should be true (of type boolean). Was undefined (of type undefined).
FAIL importedFoo.callbacksCalled should be true (of type boolean). Was undefined (of type undefined).
FAIL importedFoo.firstChild.callbacksCalled should be true (of type boolean). Was undefined (of type undefined).
FAIL window.callbacksCalled should be div,x-foo. Was .
FAIL importedBar.callbacksCalled should be true (of type boolean). Was undefined (of type undefined).
FAIL importedBar.firstChild.callbacksCalled should be true (of type boolean). Was undefined (of type undefined).
FAIL window.callbacksCalled should be DIV,X-FOO. Was .
FAIL window.callbacksCalled should be X-FOO. Was .
FAIL window.callbacksCalled should be X-FOO. Was .
FAIL successfullyParsed should be true. Was false.
TEST COMPLETE
CONSOLE ERROR: line 15: Uncaught TypeError: document.registerElement is not a function
This test ensures that the lifecycle callback of a parser-made element is visible in following script block.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
FAIL window.callbacksCalled should be a,b,c. Was .
FAIL window.callbacksCalled should be a,b,c. Was .
FAIL successfullyParsed should be true. Was false.
TEST COMPLETE
CONSOLE ERROR: line 8: Uncaught TypeError: document.registerElement is not a function
This test ensures that the lifecycle callback of a parser-made element is visible in following script block.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
FAIL window.callbacksCalled should be true (of type boolean). Was undefined (of type undefined).
FAIL successfullyParsed should be true. Was false.
TEST COMPLETE
CONSOLE ERROR: line 8: Uncaught TypeError: document.registerElement is not a function
This test ensures that the lifecycle callbacks of editing-originated elements are visible in following script block.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
FAIL window.callbacksCalled should be X-FOO,DIV. Was .
FAIL window.callbacksCalled should be X-FOO,DIV,X-FOO,DIV. Was .
FAIL successfullyParsed should be true. Was false.
TEST COMPLETE
CONSOLE ERROR: line 4: Uncaught TypeError: document.registerElement is not a function
CONSOLE ERROR: line 4: Uncaught TypeError: document.registerElement is not a function
Test that Custom Element should be defined while navigating between frames.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS customBody is defined.
PASS customBody.toLocaleString() is "[object HTMLBodyElement]"
PASS successfullyParsed is true
TEST COMPLETE
This is a testharness.js-based test.
FAIL recursively scheduled callbacks document.registerElement is not a function
Harness: the test ran to completion.
This is a testharness.js-based test.
FAIL registerElement should register type with U+212A document.registerElement is not a function
Harness: the test ran to completion.
Tests destroying a context during registration at the point when the attributeChanged callback is retrieved.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS caught expected exception "TypeError: document.registerElement is not a function"
PASS child done
PASS successfullyParsed is true
TEST COMPLETE
Tests destroying a context during registration at the point when the prototype's constructor property is retrieved.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS caught expected exception "TypeError: document.registerElement is not a function"
PASS child done
PASS successfullyParsed is true
TEST COMPLETE
Tests destroying a context during registration at the point when the created callback is retrieved.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS caught expected exception "TypeError: document.registerElement is not a function"
PASS child done
PASS successfullyParsed is true
TEST COMPLETE
Tests destroying a context during registration at the point when the "extends" option is retrieved, then throws an exception.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS caught expected exception "TypeError: document.registerElement is not a function"
PASS child done
PASS successfullyParsed is true
TEST COMPLETE
Tests destroying a context during registration at the point when the "extends" option is retrieved.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS caught expected exception "TypeError: document.registerElement is not a function"
PASS child done
PASS successfullyParsed is true
TEST COMPLETE
Tests destroying a context during registration at the point when the prototype is retrieved, then throws an exception.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS caught expected exception "TypeError: document.registerElement is not a function"
PASS child done
PASS successfullyParsed is true
TEST COMPLETE
Tests destroying a context during registration at the point when the prototype is retrieved.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS caught expected exception "TypeError: document.registerElement is not a function"
PASS child done
PASS successfullyParsed is true
TEST COMPLETE
Tests destroying a context, then trying to register a new custom element.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS destroyed context
PASS caught expected exception "TypeError: document.registerElement is not a function"
PASS child done
PASS successfullyParsed is true
TEST COMPLETE
This is a testharness.js-based test.
FAIL registration context should not be shared with an iframe's document this.documentA.registerElement is not a function
FAIL registration context should not be shared with the template document this.documentA.registerElement is not a function
FAIL registration context should not be created by DOMImplementation-created documents assert_throws_dom: function "function() { documentB.registerElement('x-a'); }" threw object "TypeError: documentB.registerElement is not a function" that is not a DOMException NOT_SUPPORTED_ERR: property "code" is equal to undefined, expected 9
Harness: the test ran to completion.
CONSOLE ERROR: line 4: Uncaught TypeError: document.registerElement is not a function
PASS successfullyParsed is true
TEST COMPLETE
If this doesn't crash, it passed.
This is a testharness.js-based test.
FAIL SVG <use> shadow trees should not be exposed through custom elements. document.registerElement is not a function
Harness: the test ran to completion.
This is a testharness.js-based test.
FAIL type extension from null should be treated as if "extends" is not given document.registerElement is not a function
Harness: the test ran to completion.
This is a testharness.js-based test.
FAIL register a type extension document.registerElement is not a function
FAIL register a type extension with a non-element prototype document.registerElement is not a function
FAIL register a type extension of an unknown element document.registerElement is not a function
FAIL register a type extension of an SVG element document.registerElement is not a function
FAIL register a type extension of an element whose interface is HTMLElement document.registerElement is not a function
FAIL register a type extensions of an interface with multiple element names document.registerElement is not a function
FAIL register a type extension with unusual case document.registerElement is not a function
FAIL registering a type extension of a custom tag should fail assert_throws_dom: registering a type extension of a custom tag should fail function "function() {
var p = Object.create(HTMLElement.prototype);
document.registerElement('x-bespoke', {extends: 'x-spoke', prototype: p});
}" threw object "TypeError: document.registerElement is not a function" that is not a DOMException NOT_SUPPORTED_ERR: property "code" is equal to undefined, expected 9
Harness: the test ran to completion.
CONSOLE ERROR: line 34: Uncaught TypeError: document.registerElement is not a function
Tests the :unresolved pseudoclass.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
FAIL document.querySelector("x-x:unresolved") should be [object HTMLElement]. Threw exception SyntaxError: Failed to execute 'querySelector' on 'Document': 'x-x:unresolved' is not a valid selector.
FAIL window.getComputedStyle(a).color should be rgb(0, 0, 222). Was rgb(0, 222, 0).
FAIL window.getComputedStyle(b).color should be rgb(0, 0, 222). Was rgb(0, 0, 0).
FAIL window.getComputedStyle(b).borderColor should be rgb(0, 0, 111). Was rgb(0, 0, 0).
FAIL successfullyParsed should be true. Was false.
TEST COMPLETE
CONSOLE ERROR: line 148: Uncaught TypeError: text.replace is not a function
Tests that an element is not upgraded after being moved to a different document, then destroyed
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
FAIL Unexpected error: Uncaught TypeError: text.replace is not a function
FAIL successfullyParsed should be true. Was false.
TEST COMPLETE
CONSOLE ERROR: line 19: Uncaught TypeError: document.registerElement is not a function
Tests that an element is not upgraded after being destroyed
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
FAIL successfullyParsed should be true. Was false.
TEST COMPLETE
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