Commit 94a21f41 authored by Mason Freed's avatar Mason Freed Committed by Commit Bot

Remove createShadowRoot() from fast/dom/shadow/resources/shadow-dom.js

This resource file affects many tests, most of which have changes to
their expectations files simply removing the console warning about the
usage of Shadow DOM v0.

Other small related changes in this patchset:
 - fast/dom/shadow/drag-and-drop-in-shadow.html had one instance of a
   'content' element replaced with 'slot'.
 - Many tests in virtual/web-components-v0-disabled virtual suite have
   their expectations change to "working" because the corresponding
   non-virtual suite test no longer uses web components v0. Several
   still fail, just differently now.
 - Five tests in web-components-v0-only/shadow-dom-v0 were modified
   to point to the web-components-v0-only local copy of shadow-dom.js,
   instead of referring outside the web-components-v0-only tree.
 - One more V0-only test (events-stopped-at-shadow-boundary.html) was
   moved into the web-components-v0-only folder.

Bug: 937746
Change-Id: I741223e1bea30e77c0d269262d0fe394b2524040
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2208102
Auto-Submit: Mason Freed <masonfreed@chromium.org>
Commit-Queue: Stephen Chenney <schenney@chromium.org>
Reviewed-by: default avatarStephen Chenney <schenney@chromium.org>
Cr-Commit-Position: refs/heads/master@{#774306}
parent 4ab8c975
CONSOLE WARNING: line 87: Element.createShadowRoot is deprecated and will be removed in M80, around February 2020. Please use Element.attachShadow instead. See https://www.chromestatus.com/features/4507242028072960 and https://developers.google.com/web/updates/2019/07/web-components-time-to-upgrade for more details.
Tests to ensure that accesskey works in regard to shadow DOM boundary. Can only run within DRT. Tests to ensure that accesskey works in regard to shadow DOM boundary. Can only run within DRT.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
......
CONSOLE WARNING: line 87: Element.createShadowRoot is deprecated and will be removed in M80, around February 2020. Please use Element.attachShadow instead. See https://www.chromestatus.com/features/4507242028072960 and https://developers.google.com/web/updates/2019/07/web-components-time-to-upgrade for more details.
Tests for Node.compareDocumentPosition() for nodes in shadow tree. Tests for Node.compareDocumentPosition() for nodes in shadow tree.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
......
CONSOLE WARNING: line 87: Element.createShadowRoot is deprecated and will be removed in M80, around February 2020. Please use Element.attachShadow instead. See https://www.chromestatus.com/features/4507242028072960 and https://developers.google.com/web/updates/2019/07/web-components-time-to-upgrade for more details.
Tests for TreeScope.comparePosition(). Tests for TreeScope.comparePosition().
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
......
CONSOLE WARNING: line 87: Element.createShadowRoot is deprecated and will be removed in M80, around February 2020. Please use Element.attachShadow instead. See https://www.chromestatus.com/features/4507242028072960 and https://developers.google.com/web/updates/2019/07/web-components-time-to-upgrade for more details.
Tests for node's contains(). Tests for node's contains().
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
......
CONSOLE WARNING: line 87: Element.createShadowRoot is deprecated and will be removed in M80, around February 2020. Please use Element.attachShadow instead. See https://www.chromestatus.com/features/4507242028072960 and https://developers.google.com/web/updates/2019/07/web-components-time-to-upgrade for more details.
Tests whether we can start dragging a node in shadow trees. Tests whether we can start dragging a node in shadow trees.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
......
...@@ -10,7 +10,7 @@ sandbox.appendChild( ...@@ -10,7 +10,7 @@ sandbox.appendChild(
createShadowRoot({'id': 'shadow-root'}, createShadowRoot({'id': 'shadow-root'},
createDOM('div', {'id': 'shadow-root-child'}, createDOM('div', {'id': 'shadow-root-child'},
document.createTextNode('Shadow Root Child')), document.createTextNode('Shadow Root Child')),
createDOM('content', {})), createDOM('slot', {})),
createDOM('div', {'id': 'host-child'}, createDOM('div', {'id': 'host-child'},
document.createTextNode('Host Child')))); document.createTextNode('Host Child'))));
......
CONSOLE WARNING: line 87: Element.createShadowRoot is deprecated and will be removed in M80, around February 2020. Please use Element.attachShadow instead. See https://www.chromestatus.com/features/4507242028072960 and https://developers.google.com/web/updates/2019/07/web-components-time-to-upgrade for more details.
This tests navigation from non keyboard-focusable shadow host to its shadow. crbug.com/446584 This tests navigation from non keyboard-focusable shadow host to its shadow. crbug.com/446584
Should move from host-div to host-div/input-in-shadow in forward Should move from host-div to host-div/input-in-shadow in forward
......
CONSOLE WARNING: line 87: Element.createShadowRoot is deprecated and will be removed in M80, around February 2020. Please use Element.attachShadow instead. See https://www.chromestatus.com/features/4507242028072960 and https://developers.google.com/web/updates/2019/07/web-components-time-to-upgrade for more details.
PASS unless crash. PASS unless crash.
CONSOLE WARNING: line 87: Element.createShadowRoot is deprecated and will be removed in M80, around February 2020. Please use Element.attachShadow instead. See https://www.chromestatus.com/features/4507242028072960 and https://developers.google.com/web/updates/2019/07/web-components-time-to-upgrade for more details.
This test confirms that the number of elements having Shadow in a shadow subtree is correctly counted. See Bug 100922 also. This test confirms that the number of elements having Shadow in a shadow subtree is correctly counted. See Bug 100922 also.
Initial count should be 0 Initial count should be 0
......
CONSOLE WARNING: line 87: Element.createShadowRoot is deprecated and will be removed in M80, around February 2020. Please use Element.attachShadow instead. See https://www.chromestatus.com/features/4507242028072960 and https://developers.google.com/web/updates/2019/07/web-components-time-to-upgrade for more details.
Test whether :host matches a shadow host correctly. Test whether :host matches a shadow host correctly.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
......
CONSOLE WARNING: line 87: Element.createShadowRoot is deprecated and will be removed in M80, around February 2020. Please use Element.attachShadow instead. See https://www.chromestatus.com/features/4507242028072960 and https://developers.google.com/web/updates/2019/07/web-components-time-to-upgrade for more details.
Test that :host-context(:first-child) is re-evaluated when :first-child changes. Test that :host-context(:first-child) is re-evaluated when :first-child changes.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
......
CONSOLE WARNING: line 87: Element.createShadowRoot is deprecated and will be removed in M80, around February 2020. Please use Element.attachShadow instead. See https://www.chromestatus.com/features/4507242028072960 and https://developers.google.com/web/updates/2019/07/web-components-time-to-upgrade for more details.
Outer scope !important rules wins with higher specificity (v0 bug compatibility). Outer scope !important rules wins with higher specificity (v0 bug compatibility).
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
......
CONSOLE WARNING: line 87: Element.createShadowRoot is deprecated and will be removed in M80, around February 2020. Please use Element.attachShadow instead. See https://www.chromestatus.com/features/4507242028072960 and https://developers.google.com/web/updates/2019/07/web-components-time-to-upgrade for more details.
CONSOLE WARNING: line 87: Element.createShadowRoot is deprecated and will be removed in M80, around February 2020. Please use Element.attachShadow instead. See https://www.chromestatus.com/features/4507242028072960 and https://developers.google.com/web/updates/2019/07/web-components-time-to-upgrade for more details.
Test that :host(selector) can match a shadow host when the host matches the selector: http://crbug.com/313935. Test that :host(selector) can match a shadow host when the host matches the selector: http://crbug.com/313935.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
......
...@@ -84,7 +84,7 @@ function createDOM(tagName, attributes) ...@@ -84,7 +84,7 @@ function createDOM(tagName, attributes)
if (child.parameter && Object.keys(child.parameter).length > 0) if (child.parameter && Object.keys(child.parameter).length > 0)
shadowRoot = element.attachShadow(child.parameter); shadowRoot = element.attachShadow(child.parameter);
else else
shadowRoot = element.createShadowRoot(); shadowRoot = element.attachShadow({mode: 'open'});
} }
if (child.attributes) { if (child.attributes) {
for (var attribute in child.attributes) { for (var attribute in child.attributes) {
......
CONSOLE WARNING: line 87: Element.createShadowRoot is deprecated and will be removed in M80, around February 2020. Please use Element.attachShadow instead. See https://www.chromestatus.com/features/4507242028072960 and https://developers.google.com/web/updates/2019/07/web-components-time-to-upgrade for more details.
Flat Tree will be: Flat Tree will be:
......
CONSOLE WARNING: line 87: Element.createShadowRoot is deprecated and will be removed in M80, around February 2020. Please use Element.attachShadow instead. See https://www.chromestatus.com/features/4507242028072960 and https://developers.google.com/web/updates/2019/07/web-components-time-to-upgrade for more details.
Flat Tree will be: Flat Tree will be:
......
CONSOLE WARNING: line 87: Element.createShadowRoot is deprecated and will be removed in M80, around February 2020. Please use Element.attachShadow instead. See https://www.chromestatus.com/features/4507242028072960 and https://developers.google.com/web/updates/2019/07/web-components-time-to-upgrade for more details.
Flat Tree will be: Flat Tree will be:
......
CONSOLE WARNING: line 87: Element.createShadowRoot is deprecated and will be removed in M80, around February 2020. Please use Element.attachShadow instead. See https://www.chromestatus.com/features/4507242028072960 and https://developers.google.com/web/updates/2019/07/web-components-time-to-upgrade for more details.
Tests to ensure that MouseEvent's offsetX and offsetY are adjusted in re-targeting. Tests to ensure that MouseEvent's offsetX and offsetY are adjusted in re-targeting.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
......
CONSOLE WARNING: line 87: Element.createShadowRoot is deprecated and will be removed in M80, around February 2020. Please use Element.attachShadow instead. See https://www.chromestatus.com/features/4507242028072960 and https://developers.google.com/web/updates/2019/07/web-components-time-to-upgrade for more details.
This tests the blur() on on shadow host should work when a shadow host contains a focused element in its shadow DOM subtrees property (bug 81102) This tests the blur() on on shadow host should work when a shadow host contains a focused element in its shadow DOM subtrees property (bug 81102)
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
......
CONSOLE WARNING: line 87: Element.createShadowRoot is deprecated and will be removed in M80, around February 2020. Please use Element.attachShadow instead. See https://www.chromestatus.com/features/4507242028072960 and https://developers.google.com/web/updates/2019/07/web-components-time-to-upgrade for more details.
PASS unless crash PASS unless crash
PASS successfullyParsed is true PASS successfullyParsed is true
......
CONSOLE WARNING: line 87: Element.createShadowRoot is deprecated and will be removed in M80, around February 2020. Please use Element.attachShadow instead. See https://www.chromestatus.com/features/4507242028072960 and https://developers.google.com/web/updates/2019/07/web-components-time-to-upgrade for more details.
Test for issue 247275: shadow tree styles selects shadow host. Test for issue 247275: shadow tree styles selects shadow host.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
......
CONSOLE WARNING: line 87: Element.createShadowRoot is deprecated and will be removed in M80, around February 2020. Please use Element.attachShadow instead. See https://www.chromestatus.com/features/4507242028072960 and https://developers.google.com/web/updates/2019/07/web-components-time-to-upgrade for more details.
crbug.com/337573: Test direct/indirect adjucent and positinal rules under shadow root. crbug.com/337573: Test direct/indirect adjucent and positinal rules under shadow root.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
......
CONSOLE WARNING: line 87: Element.createShadowRoot is deprecated and will be removed in M80, around February 2020. Please use Element.attachShadow instead. See https://www.chromestatus.com/features/4507242028072960 and https://developers.google.com/web/updates/2019/07/web-components-time-to-upgrade for more details.
Test for Case1: Non-Nested Test for Case1: Non-Nested
PASS harness.expected is testRunner.tooltipText PASS harness.expected is testRunner.tooltipText
Test for Case 2: Nested Test for Case 2: Nested
......
CONSOLE WARNING: line 87: Element.createShadowRoot is deprecated and will be removed in M80, around February 2020. Please use Element.attachShadow instead. See https://www.chromestatus.com/features/4507242028072960 and https://developers.google.com/web/updates/2019/07/web-components-time-to-upgrade for more details.
Tests update the text of styles updates styles in shadow dom, crbug.com/247280 Tests update the text of styles updates styles in shadow dom, crbug.com/247280
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
......
CONSOLE WARNING: line 87: Element.createShadowRoot is deprecated and will be removed in M80, around February 2020. Please use Element.attachShadow instead. See https://www.chromestatus.com/features/4507242028072960 and https://developers.google.com/web/updates/2019/07/web-components-time-to-upgrade for more details.
:focus and shadow host without delegatesFocus for crbug/479050 :focus and shadow host without delegatesFocus for crbug/479050
PASS backgroundColorOf('shadow-host') is "rgb(255, 255, 255)" PASS backgroundColorOf('shadow-host') is "rgb(255, 255, 255)"
Test shadow host without tabindex Test shadow host without tabindex
......
...@@ -178,7 +178,7 @@ function test8(mode) { ...@@ -178,7 +178,7 @@ function test8(mode) {
function test() { function test() {
debug('Testing shadow host with possible combinations of mode, tabindex and delegatesFocus'); debug('Testing shadow host with possible combinations of mode, tabindex and delegatesFocus');
test1('open'); test1('open');
test2('open'); test2('open');
test3('open'); test3('open');
......
CONSOLE ERROR: line 87: Uncaught TypeError: element.createShadowRoot is not a function
Tests to ensure that accesskey works in regard to shadow DOM boundary. Can only run within DRT.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
FAIL successfullyParsed should be true. Was false.
TEST COMPLETE
CONSOLE ERROR: line 87: Uncaught TypeError: element.createShadowRoot is not a function
Test for casacde of treeboundary crossing rules. Test for casacde of treeboundary crossing rules.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
FAIL successfullyParsed should be true. Was false. FAIL borderColorOf(getNodeInComposedTree("target")) should be rgb(0, 128, 0). Was rgb(0, 0, 255).
PASS borderColorOf(getNodeInComposedTree("host/target")) is "rgb(0, 128, 0)"
PASS successfullyParsed is true
TEST COMPLETE TEST COMPLETE
CONSOLE ERROR: line 87: Uncaught TypeError: element.createShadowRoot is not a function
Tests for Node.compareDocumentPosition() for nodes in shadow tree.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
FAIL successfullyParsed should be true. Was false.
TEST COMPLETE
CONSOLE ERROR: line 87: Uncaught TypeError: element.createShadowRoot is not a function
Tests for TreeScope.comparePosition().
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
FAIL successfullyParsed should be true. Was false.
TEST COMPLETE
CONSOLE ERROR: line 87: Uncaught TypeError: element.createShadowRoot is not a function
Tests for node's contains().
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
FAIL successfullyParsed should be true. Was false.
TEST COMPLETE
CONSOLE ERROR: line 87: Uncaught TypeError: element.createShadowRoot is not a function
Tests whether we can start dragging a node in shadow trees.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
FAIL successfullyParsed should be true. Was false.
TEST COMPLETE
CONSOLE ERROR: line 87: Uncaught TypeError: element.createShadowRoot is not a function
FAIL successfullyParsed should be true. Was false. event.path on node #C
#C, #B, #A, #sandbox, [object HTMLBodyElement], [object HTMLHtmlElement], [object HTMLDocument], [object Window], length: 8
event.path on node #B
#C, #B, #A, #sandbox, [object HTMLBodyElement], [object HTMLHtmlElement], [object HTMLDocument], [object Window], length: 8
event.path on node #A
#C, #B, #A, #sandbox, [object HTMLBodyElement], [object HTMLHtmlElement], [object HTMLDocument], [object Window], length: 8
PASS successfullyParsed is true
TEST COMPLETE TEST COMPLETE
......
CONSOLE ERROR: line 87: Uncaught TypeError: element.createShadowRoot is not a function
FAIL successfullyParsed should be true. Was false. event.path on node #C
#C, #B, #A, #sandbox, [object HTMLBodyElement], [object HTMLHtmlElement], [object HTMLDocument], [object Window], length: 8
event.path on node #B
#C, #B, #A, #sandbox, [object HTMLBodyElement], [object HTMLHtmlElement], [object HTMLDocument], [object Window], length: 8
Removing node #C
event.path on node #A
#C, #B, #A, #sandbox, [object HTMLBodyElement], [object HTMLHtmlElement], [object HTMLDocument], [object Window], length: 8
PASS successfullyParsed is true
TEST COMPLETE TEST COMPLETE
......
CONSOLE ERROR: line 87: Uncaught TypeError: element.createShadowRoot is not a function
Tests to ensure that all kinds of events are not stopeed at shadow boundary if created by users. Tests to ensure that all kinds of events are not stopeed at shadow boundary if created by users.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
None of the events should be stopped at a Shadow boundary if created by users. None of the events should be stopped at a Shadow boundary if created by users.
FAIL successfullyParsed should be true. Was false.
abort
@target (target: target)
@parent-of-target (target: target)
select
@target (target: target)
@parent-of-target (target: target)
change
@target (target: target)
@parent-of-target (target: target)
reset
@target (target: target)
@parent-of-target (target: target)
resize
@target (target: target)
@parent-of-target (target: target)
scroll
@target (target: target)
@parent-of-target (target: target)
selectstart
@target (target: target)
@parent-of-target (target: target)
load
@target (target: target)
@parent-of-target (target: target)
click
@target (target: target)
@parent-of-target (target: target)
An event fired on a distributed child should not be stopped at the shadow boundary of its host (host2), but should be stopped at the nearest shadow boundary (host1).
selectstart
@distributed-child (target: distributed-child)
@host2 (target: distributed-child)
PASS successfullyParsed is true
TEST COMPLETE TEST COMPLETE
......
CONSOLE ERROR: line 87: Uncaught TypeError: element.createShadowRoot is not a function
Tests for Composed Shadow DOM Tree Traversal APIs. Can only run within DRT Tests for Composed Shadow DOM Tree Traversal APIs. Can only run within DRT
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
ShadowRoot should be used. ShadowRoot should be used.
FAIL successfullyParsed should be true. Was false. Flat Tree:
#a
#b
Traverse in forward.
#a
#b
Traverse in backward.
#b
#a
A content element should select light children
Flat Tree:
#a
#b
[object HTMLContentElement]
Traverse in forward.
#a
#b
[object HTMLContentElement]
Traverse in backward.
[object HTMLContentElement]
#b
#a
Test for content element selector.
Flat Tree:
#a
#b
[object HTMLContentElement]
Traverse in forward.
#a
#b
[object HTMLContentElement]
Traverse in backward.
[object HTMLContentElement]
#b
#a
Light children should be selected only at once.
Flat Tree:
#a
#b
[object HTMLContentElement]
[object HTMLContentElement]
Traverse in forward.
#a
#b
[object HTMLContentElement]
[object HTMLContentElement]
Traverse in backward.
[object HTMLContentElement]
[object HTMLContentElement]
#b
#a
A content element can have fallback elements.
Flat Tree:
#a
#b
[object HTMLContentElement]
#f1
#f2
Traverse in forward.
#a
#b
[object HTMLContentElement]
#f1
#f2
Traverse in backward.
#f2
#f1
[object HTMLContentElement]
#b
#a
Fallback elements should not be used if a content element selects an element.
Flat Tree:
#a
#b
[object HTMLContentElement]
#f1
#f2
Traverse in forward.
#a
#b
[object HTMLContentElement]
#f1
#f2
Traverse in backward.
#f2
#f1
[object HTMLContentElement]
#b
#a
Test for traversal, starting with a fallback element which is not used.
Flat Tree:
#f1
#f2
Traverse in forward.
#f1
#f2
Traverse in backward.
#f2
#f1
Next node of [#f1] is [#f2]
Next node of [#f2] is [[object Text]]
Test for Nested ShadowRoots.
Flat Tree:
#a
#b
#c
[object HTMLContentElement]
#d
#f
[object HTMLContentElement]
#g
Traverse in forward.
#a
#b
#c
[object HTMLContentElement]
#d
#f
[object HTMLContentElement]
#g
Traverse in backward.
#g
[object HTMLContentElement]
#f
#d
[object HTMLContentElement]
#c
#b
#a
Test for inactive insertion points.
Flat Tree:
#a
#b
#c
Traverse in forward.
#a
#b
#c
Traverse in backward.
#c
#b
#a
Test for a content element which does not select any nodes nor have fallback elements.
Flat Tree:
#a
[object HTMLContentElement]
#b
[object HTMLContentElement]
#c
[object HTMLContentElement]
Traverse in forward.
#a
[object HTMLContentElement]
#b
[object HTMLContentElement]
#c
[object HTMLContentElement]
Traverse in backward.
[object HTMLContentElement]
#c
[object HTMLContentElement]
#b
[object HTMLContentElement]
#a
Test for a nested insertion point.
Flat Tree:
#a
#b
[object HTMLContentElement]
Traverse in forward.
#a
#b
[object HTMLContentElement]
Traverse in backward.
[object HTMLContentElement]
#b
#a
Test for nested insertion points. Some of them are either empty insertion points or inactive insertion points.
Flat Tree:
#a
[object HTMLContentElement]
#b
[object HTMLContentElement]
#c
[object HTMLContentElement]
Traverse in forward.
#a
[object HTMLContentElement]
#b
[object HTMLContentElement]
#c
[object HTMLContentElement]
Traverse in backward.
[object HTMLContentElement]
#c
[object HTMLContentElement]
#b
[object HTMLContentElement]
#a
Test for a re-projection.
Flat Tree:
#a
#b
[object HTMLContentElement]
Traverse in forward.
#a
#b
[object HTMLContentElement]
Traverse in backward.
[object HTMLContentElement]
#b
#a
Test for a content element which is selected by another content element.
Flat Tree:
#a
#b
[object HTMLContentElement]
#most-inner-child
[object HTMLContentElement]
Traverse in forward.
#a
#b
[object HTMLContentElement]
#most-inner-child
[object HTMLContentElement]
Traverse in backward.
[object HTMLContentElement]
#most-inner-child
[object HTMLContentElement]
#b
#a
Test for a reprojection. Content elements should be used in document order.
Flat Tree:
#a
[object HTMLContentElement]
#b
[object HTMLContentElement]
Traverse in forward.
#a
[object HTMLContentElement]
#b
[object HTMLContentElement]
Traverse in backward.
[object HTMLContentElement]
#b
[object HTMLContentElement]
#a
Test for complex re-projections.
Flat Tree:
#a
#b
[object HTMLContentElement]
#c
Traverse in forward.
#a
#b
[object HTMLContentElement]
#c
Traverse in backward.
#c
[object HTMLContentElement]
#b
#a
PASS successfullyParsed is true
TEST COMPLETE TEST COMPLETE
......
CONSOLE ERROR: line 87: Uncaught TypeError: element.createShadowRoot is not a function
This tests navigation from non keyboard-focusable shadow host to its shadow. crbug.com/446584
FAIL successfullyParsed should be true. Was false.
TEST COMPLETE
CONSOLE ERROR: line 87: Uncaught TypeError: element.createShadowRoot is not a function FAIL event.eventPhase should be 2. Threw exception TypeError: Cannot read property 'eventPhase' of undefined
FAIL successfullyParsed should be true. Was false. FAIL event.eventPhase should be 2. Threw exception TypeError: Cannot read property 'eventPhase' of undefined
FAIL event.eventPhase should be 2. Threw exception TypeError: Cannot read property 'eventPhase' of undefined
gesturetap
@div1-shadow-root-child (target: div1-shadow-root-child)
@div1 (target: div1)
PASS successfullyParsed is true
TEST COMPLETE TEST COMPLETE
......
CONSOLE ERROR: line 87: Uncaught TypeError: element.createShadowRoot is not a function
PASS unless crash.
CONSOLE ERROR: line 87: Uncaught TypeError: element.createShadowRoot is not a function CONSOLE ERROR: line 20: Uncaught TypeError: document.getElementById(...).getDestinationInsertionPoints is not a function
Tests that getDestinationInsertionPoints() should skip insertion points in user-agent shadow roots. Tests that getDestinationInsertionPoints() should skip insertion points in user-agent shadow roots.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
......
CONSOLE ERROR: line 87: Uncaught TypeError: element.createShadowRoot is not a function
crbug.com/337618: computedStyle should be cleared when distribution is updated crbug.com/337618: computedStyle should be cleared when distribution is updated
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
FAIL successfullyParsed should be true. Was false. FAIL window.getComputedStyle(getNodeInComposedTree("child/bar")).color should be rgb(0, 128, 0). Was rgb(0, 0, 0).
PASS window.getComputedStyle(getNodeInComposedTree("child/bar")).color is "rgb(0, 0, 0)"
PASS successfullyParsed is true
TEST COMPLETE TEST COMPLETE
CONSOLE ERROR: line 87: Uncaught TypeError: element.createShadowRoot is not a function
This test confirms that the number of elements having Shadow in a shadow subtree is correctly counted. See Bug 100922 also.
FAIL successfullyParsed should be true. Was false.
TEST COMPLETE
CONSOLE ERROR: line 87: Uncaught TypeError: element.createShadowRoot is not a function
Class change affecting a node in a distributed node's subtree. Class change affecting a node in a distributed node's subtree.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
FAIL successfullyParsed should be true. Was false. PASS getComputedStyle(b, null).backgroundColor is transparent
FAIL getComputedStyle(b, null).backgroundColor should be rgb(0, 128, 0). Was rgba(0, 0, 0, 0).
PASS successfullyParsed is true
TEST COMPLETE TEST COMPLETE
......
CONSOLE ERROR: line 87: Uncaught TypeError: element.createShadowRoot is not a function
Test whether :host matches a shadow host correctly.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
:host out of shadow tree should not match any shadow hosts.
FAIL successfullyParsed should be true. Was false.
TEST COMPLETE
CONSOLE ERROR: line 87: Uncaught TypeError: element.createShadowRoot is not a function
Test that :host-context(:first-child) is re-evaluated when :first-child changes.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
FAIL successfullyParsed should be true. Was false.
TEST COMPLETE
CONSOLE ERROR: line 87: Uncaught TypeError: element.createShadowRoot is not a function
Test whether :host-context matches a shadow host correctly. Test whether :host-context matches a shadow host correctly.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
:host-context out of shadow tree should not match any shadow hosts. :host-context out of shadow tree should not match any shadow hosts.
FAIL successfullyParsed should be true. Was false. PASS backgroundColorOf('host') is "rgba(0, 0, 0, 0)"
:host-context with * should not match any shadow hosts.
PASS backgroundColorOf('host') is "rgba(0, 0, 0, 0)"
:host-context with tag selector should not match any shadow hosts.
PASS backgroundColorOf('host') is "rgba(0, 0, 0, 0)"
:host-context with class selector should not match any shadow hosts.
PASS backgroundColorOf('host') is "rgba(0, 0, 0, 0)"
:host-context with id selector should not match any shadow hosts.
PASS backgroundColorOf('host') is "rgba(0, 0, 0, 0)"
:host-context with attribute selector should not match any shadow hosts.
PASS backgroundColorOf('host') is "rgba(0, 0, 0, 0)"
:host-context in a shadow tree should match its shadow host.
PASS backgroundColorOf('host') is "rgb(0, 128, 0)"
:host-context with :host in a shadow tree should match its shadow host.
PASS backgroundColorOf('host') is "rgb(0, 128, 0)"
crbug.com/552602 :host-context with non-matching selector with :host should not crash.
PASS backgroundColorOf('host') is "rgba(0, 0, 0, 0)"
:host-context takes simple selectors and matches when one of the simple selectors matches.
PASS backgroundColorOf('host') is "rgb(0, 128, 0)"
:host-context matches a shadow host in just a nested shadow tree, not all enclosing shadow trees.
PASS backgroundColorOf('host1') is "rgba(0, 0, 0, 0)"
PASS backgroundColorOf('host1/host2') is "rgb(0, 128, 0)"
:host-context matches based on a flat tree.
FAIL backgroundColorOf('host/target') should be rgb(0, 128, 0). Was rgba(0, 0, 0, 0).
:host-context is updated when its matched ancestor changes className or id.
PASS backgroundColorOf('host') is "rgb(0, 128, 0)"
PASS backgroundColorOf('host') is "rgba(0, 0, 0, 0)"
PASS backgroundColorOf('host') is "rgb(0, 128, 0)"
PASS backgroundColorOf('host') is "rgba(0, 0, 0, 0)"
Compare :host-context with :host-context.
PASS backgroundColorOf('host') is "rgb(0, 128, 0)"
PASS backgroundColorOf('host') is "rgb(255, 0, 0)"
PASS backgroundColorOf('host/target') is "rgb(0, 128, 0)"
PASS backgroundColorOf('host/target') is "rgb(0, 128, 0)"
PASS backgroundColorOf('host/target') is "rgb(0, 128, 0)"
:host-context without functional notation should not match any shadow hosts.
PASS backgroundColorOf('host') is "rgba(0, 0, 0, 0)"
PASS successfullyParsed is true
TEST COMPLETE TEST COMPLETE
......
CONSOLE ERROR: line 87: Uncaught TypeError: element.createShadowRoot is not a function
Outer scope !important rules wins with higher specificity (v0 bug compatibility).
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
FAIL successfullyParsed should be true. Was false.
TEST COMPLETE
CONSOLE ERROR: line 87: Uncaught TypeError: element.createShadowRoot is not a function
Inner scope rules wins, with higher specificity (v0 bug compatibility). Inner scope rules wins, with higher specificity (v0 bug compatibility).
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
FAIL successfullyParsed should be true. Was false. FAIL getComputedStyle(target).color should be rgb(255, 0, 0). Was rgb(0, 128, 0).
PASS successfullyParsed is true
TEST COMPLETE TEST COMPLETE
......
CONSOLE ERROR: line 87: Uncaught TypeError: element.createShadowRoot is not a function
Test that :host(selector) can match a shadow host when the host matches the selector: http://crbug.com/313935.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
FAIL successfullyParsed should be true. Was false.
TEST COMPLETE
CONSOLE ERROR: line 87: Uncaught TypeError: element.createShadowRoot is not a function
crbug.com/337618: querySelector needs ensure distribution. crbug.com/337618: querySelector needs ensure distribution.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
FAIL successfullyParsed should be true. Was false. FAIL barShadowRoot.querySelectorAll(":host-context(.foo)::shadow div")[0].id should be bar. Threw exception TypeError: Cannot read property 'id' of undefined
PASS barShadowRoot.querySelectorAll(":host-context(.foo)::shadow div")[0] is undefined
PASS successfullyParsed is true
TEST COMPLETE TEST COMPLETE
CONSOLE ERROR: line 87: Uncaught TypeError: element.createShadowRoot is not a function
crbug.com/337618: querySelector needs ensure distribution. crbug.com/337618: querySelector needs ensure distribution.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
FAIL successfullyParsed should be true. Was false. FAIL barShadowRoot.querySelectorAll(":host-context(.foo)::shadow div")[0].id should be bar. Threw exception TypeError: Cannot read property 'id' of undefined
PASS barShadowRoot.querySelectorAll(":host-context(.foo)::shadow div")[0] is undefined
PASS successfullyParsed is true
TEST COMPLETE TEST COMPLETE
CONSOLE ERROR: line 87: Uncaught TypeError: element.createShadowRoot is not a function
FAIL successfullyParsed should be true. Was false.
Flat Tree will be:
DIV id=sandbox
DIV id=top
DIV id=A
DIV id=B
CONTENT id=active-content
Moving mouse from A to child-of-inactive-content
mouseout
@A (target: A) (related: )
@top (target: A) (related: )
mouseover
PASS successfullyParsed is true
TEST COMPLETE TEST COMPLETE
......
CONSOLE ERROR: line 87: Uncaught TypeError: element.createShadowRoot is not a function
FAIL successfullyParsed should be true. Was false.
Flat Tree will be:
DIV id=sandbox
DIV id=top
DIV id=A
CONTENT id=content1
DIV id=used-fallback
CONTENT id=content2
DIV id=non-used-fallback
Moving mouse from A/used-fallback to A
FAIL event.eventPhase should be 2. Threw exception TypeError: Cannot read property 'eventPhase' of undefined
FAIL event.eventPhase should be 2. Threw exception TypeError: Cannot read property 'eventPhase' of undefined
mouseout
@used-fallback (target: used-fallback) (related: A)
@content1 (target: used-fallback) (related: A)
@shadow-root (target: used-fallback) (related: A)
mouseover
Moving mouse from A to A/used-fallback
FAIL event.eventPhase should be 2. Threw exception TypeError: Cannot read property 'eventPhase' of undefined
mouseout
mouseover
@used-fallback (target: used-fallback) (related: A)
@content1 (target: used-fallback) (related: A)
@shadow-root (target: used-fallback) (related: A)
Click non-used-fallback node
FAIL event.eventPhase should be 2. Threw exception TypeError: Cannot read property 'eventPhase' of undefined
click
@non-used-fallback (target: non-used-fallback)
@content2 (target: non-used-fallback)
@shadow-root (target: non-used-fallback)
@A (target: A)
@top (target: A)
PASS successfullyParsed is true
TEST COMPLETE TEST COMPLETE
......
CONSOLE ERROR: line 87: Uncaught TypeError: element.createShadowRoot is not a function
FAIL successfullyParsed should be true. Was false.
TEST COMPLETE
CONSOLE ERROR: line 87: Uncaught TypeError: element.createShadowRoot is not a function
FAIL successfullyParsed should be true. Was false.
TEST COMPLETE
CONSOLE ERROR: line 87: Uncaught TypeError: element.createShadowRoot is not a function
FAIL successfullyParsed should be true. Was false.
Flat Tree will be:
DIV id=sandbox
DIV id=top
DIV id=A
DIV id=B
DIV id=G
DIV id=J
CONTENT id=N
DIV id=L
CONTENT id=O
Moving mouse from F to D
mouseout
mouseover
Moving mouse from B/G/L to D
FAIL event.eventPhase should be 2. Threw exception TypeError: Cannot read property 'eventPhase' of undefined
FAIL event.eventPhase should be 2. Threw exception TypeError: Cannot read property 'eventPhase' of undefined
FAIL event.eventPhase should be 2. Threw exception TypeError: Cannot read property 'eventPhase' of undefined
FAIL event.eventPhase should be 2. Threw exception TypeError: Cannot read property 'eventPhase' of undefined
mouseout
@L (target: L) (related: )
@shadow-root-G (target: L) (related: )
@G (target: G) (related: )
@shadow-root-B (target: G) (related: )
@B (target: B) (related: )
@A (target: B) (related: )
@top (target: B) (related: )
mouseover
Moving mouse from B/G/L to B/G/J
FAIL event.eventPhase should be 2. Threw exception TypeError: Cannot read property 'eventPhase' of undefined
FAIL event.eventPhase should be 2. Threw exception TypeError: Cannot read property 'eventPhase' of undefined
FAIL event.eventPhase should be 2. Threw exception TypeError: Cannot read property 'eventPhase' of undefined
FAIL event.eventPhase should be 2. Threw exception TypeError: Cannot read property 'eventPhase' of undefined
mouseout
@L (target: L) (related: J)
@shadow-root-G (target: L) (related: J)
mouseover
@J (target: J) (related: L)
@shadow-root-G (target: J) (related: L)
Moving mouse from A to D
FAIL event.eventPhase should be 2. Threw exception TypeError: Cannot read property 'eventPhase' of undefined
FAIL event.eventPhase should be 2. Threw exception TypeError: Cannot read property 'eventPhase' of undefined
mouseout
@A (target: A) (related: )
@top (target: A) (related: )
mouseover
Moving mouse from D to A
mouseout
mouseover
@A (target: A) (related: )
@top (target: A) (related: )
PASS successfullyParsed is true
TEST COMPLETE TEST COMPLETE
......
CONSOLE ERROR: line 87: Uncaught TypeError: element.createShadowRoot is not a function
FAIL successfullyParsed should be true. Was false.
Flat Tree will be:
DIV id=sandbox
DIV id=top
DIV id=shadow-host
svg id=svg-in-shadow-tree class=[object SVGAnimatedString]
Moving mouse from shadow-host/svg-in-shadow-tree to top
FAIL event.eventPhase should be 2. Threw exception TypeError: Cannot read property 'eventPhase' of undefined
FAIL event.eventPhase should be 2. Threw exception TypeError: Cannot read property 'eventPhase' of undefined
mouseout
@svg-in-shadow-tree (target: svg-in-shadow-tree) (related: top)
@shadow-root (target: svg-in-shadow-tree) (related: top)
@top (target: shadow-host) (related: top)
mouseover
@top (target: top) (related: shadow-host)
PASS successfullyParsed is true
TEST COMPLETE TEST COMPLETE
......
CONSOLE ERROR: line 87: Uncaught TypeError: element.createShadowRoot is not a function
FAIL successfullyParsed should be true. Was false.
TEST COMPLETE
CONSOLE ERROR: line 87: Uncaught TypeError: element.createShadowRoot is not a function
Tests to ensure that MouseEvent's offsetX and offsetY are adjusted in re-targeting.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
FAIL successfullyParsed should be true. Was false.
TEST COMPLETE
CONSOLE ERROR: line 87: Uncaught TypeError: element.createShadowRoot is not a function
This tests the activeElement property of a ShadowRoot. This tests the activeElement property of a ShadowRoot.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
FAIL successfullyParsed should be true. Was false. PASS shadowRoot1.activeElement is defined.
PASS shadowRoot2.activeElement is defined.
PASS nodeInDocument.focus(); document.activeElement is nodeInDocument
PASS nodeInDocument.focus(); shadowRoot1.activeElement is null
PASS nodeInDocument.focus(); shadowRoot2.activeElement is null
FAIL distributedLightChild.focus(); document.activeElement should be [object HTMLDivElement]. Was [object HTMLDivElement].
FAIL distributedLightChild.focus(); shadowRoot1.activeElement should be [object HTMLDivElement]. Was null.
PASS distributedLightChild.focus(); shadowRoot2.activeElement is null
PASS childInShadowRoot1.focus(); document.activeElement is shadowHost1
PASS childInShadowRoot1.focus(); shadowRoot1.activeElement is childInShadowRoot1
PASS childInShadowRoot1.focus(); shadowRoot2.activeElement is null
PASS childInShadowRoot2.focus(); document.activeElement is shadowHost1
PASS childInShadowRoot2.focus(); shadowRoot1.activeElement is shadowHost2
PASS childInShadowRoot2.focus(); shadowRoot2.activeElement is childInShadowRoot2
childInShadowRoot2.blur();
PASS document.activeElement is document.body
PASS shadowRoot1.activeElement is null
PASS shadowRoot2.activeElement is null
PASS successfullyParsed is true
TEST COMPLETE TEST COMPLETE
......
CONSOLE ERROR: line 87: Uncaught TypeError: element.createShadowRoot is not a function
This tests the blur() on on shadow host should work when a shadow host contains a focused element in its shadow DOM subtrees property (bug 81102)
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
FAIL successfullyParsed should be true. Was false.
TEST COMPLETE
CONSOLE ERROR: line 87: Uncaught TypeError: element.createShadowRoot is not a function
FAIL Unexpected error: Uncaught TypeError: element.createShadowRoot is not a function
FAIL successfullyParsed should be true. Was false.
TEST COMPLETE
CONSOLE ERROR: line 87: Uncaught TypeError: element.createShadowRoot is not a function
Test for issue 247275: shadow tree styles selects shadow host.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
Test that tag selectors in a shadow tree cannot match without :host.
FAIL successfullyParsed should be true. Was false.
TEST COMPLETE
CONSOLE ERROR: line 87: Uncaught TypeError: element.createShadowRoot is not a function
crbug.com/337573: Test direct/indirect adjucent and positinal rules under shadow root.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
FAIL successfullyParsed should be true. Was false.
TEST COMPLETE
CONSOLE ERROR: line 87: Uncaught TypeError: element.createShadowRoot is not a function
FAIL Unexpected error: Uncaught TypeError: element.createShadowRoot is not a function
FAIL successfullyParsed should be true. Was false.
TEST COMPLETE
CONSOLE ERROR: line 87: Uncaught TypeError: element.createShadowRoot is not a function
Touch event retargeting. Touch event retargeting.
FAIL successfullyParsed should be true. Was false. foo
FAIL event.eventPhase should be 2. Threw exception TypeError: Cannot read property 'eventPhase' of undefined
FAIL event.eventPhase should be 2. Threw exception TypeError: Cannot read property 'eventPhase' of undefined
touchstart
@div1 (target: div1) (touches: div1, div2, div3) (targetTouches: div1) (changedTouches: div1, div2, div3)
@div2 (target: div2) (touches: div1, div2, div3) (targetTouches: div2) (changedTouches: div1, div2, div3)
@div2-shadow-root-child (target: div2-shadow-root-child) (touches: div1, div2-shadow-root-child, div3) (targetTouches: div2-shadow-root-child) (changedTouches: div1, div2-shadow-root-child, div3)
@div3 (target: div3) (touches: div1, div2, div3) (targetTouches: div3) (changedTouches: div1, div2, div3)
@div3-shadow-root-child (target: div3-shadow-root-child) (touches: div1, div2, div3-shadow-root-child) (targetTouches: div3-shadow-root-child) (changedTouches: div1, div2, div3-shadow-root-child)
PASS successfullyParsed is true
TEST COMPLETE TEST COMPLETE
......
CONSOLE ERROR: line 87: Uncaught TypeError: element.createShadowRoot is not a function
Tests update the text of styles updates styles in shadow dom, crbug.com/247280
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
FAIL successfullyParsed should be true. Was false.
TEST COMPLETE
CONSOLE ERROR: line 87: Uncaught TypeError: element.createShadowRoot is not a function
Tests to ensure that a '-webkit-user-modify' CSS property is not inherited across shadow boundaries. Tests to ensure that a '-webkit-user-modify' CSS property is not inherited across shadow boundaries.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
...@@ -9,7 +8,11 @@ FAIL computedStyle(prepareNodeInShadowRoot(document.getElementById("contentedita ...@@ -9,7 +8,11 @@ FAIL computedStyle(prepareNodeInShadowRoot(document.getElementById("contentedita
FAIL computedStyle(prepareNodeInShadowRoot(document.getElementById("non-contenteditable-host1"), null)) should be read-only. Threw exception TypeError: host.createShadowRoot is not a function FAIL computedStyle(prepareNodeInShadowRoot(document.getElementById("non-contenteditable-host1"), null)) should be read-only. Threw exception TypeError: host.createShadowRoot is not a function
FAIL computedStyle(prepareNodeInShadowRoot(document.getElementById("non-contenteditable-host2"), "false")) should be read-only. Threw exception TypeError: host.createShadowRoot is not a function FAIL computedStyle(prepareNodeInShadowRoot(document.getElementById("non-contenteditable-host2"), "false")) should be read-only. Threw exception TypeError: host.createShadowRoot is not a function
FAIL computedStyle(prepareNodeInShadowRoot(document.getElementById("non-contenteditable-host3"), "true")) should be read-write. Threw exception TypeError: host.createShadowRoot is not a function FAIL computedStyle(prepareNodeInShadowRoot(document.getElementById("non-contenteditable-host3"), "true")) should be read-write. Threw exception TypeError: host.createShadowRoot is not a function
FAIL successfullyParsed should be true. Was false. FAIL getUserModifyProperty("child-a") should be read-write. Was read-only.
FAIL getUserModifyProperty("child-b") should be read-write. Was read-only.
PASS getUserModifyProperty("child-c") is "read-only"
PASS getUserModifyProperty("child-d") is "read-only"
PASS successfullyParsed is true
TEST COMPLETE TEST COMPLETE
......
CONSOLE ERROR: line 87: Uncaught TypeError: element.createShadowRoot is not a function
:focus and shadow host without delegatesFocus for crbug/479050 :focus and shadow host without delegatesFocus for crbug/479050
FAIL successfullyParsed should be true. Was false. PASS backgroundColorOf('shadow-host') is "rgb(255, 255, 255)"
Test shadow host without tabindex
PASS backgroundColorOf('shadow-host') is "rgb(255, 255, 255)"
PASS backgroundColorOf('shadow-host') is "rgb(255, 255, 255)"
PASS backgroundColorOf('shadow-host') is "rgb(255, 255, 255)"
PASS backgroundColorOf('shadow-host') is "rgb(255, 255, 255)"
PASS backgroundColorOf('shadow-host') is "rgb(255, 255, 255)"
Test shadow host with tabindex=-1
PASS backgroundColorOf('shadow-host') is "rgb(255, 255, 255)"
PASS backgroundColorOf('shadow-host') is "rgb(255, 255, 255)"
PASS backgroundColorOf('shadow-host') is "rgb(255, 255, 255)"
PASS backgroundColorOf('shadow-host') is "rgb(255, 255, 255)"
PASS backgroundColorOf('shadow-host') is "rgb(0, 128, 0)"
Test shadow host without tabindex=0
PASS backgroundColorOf('shadow-host') is "rgb(255, 255, 255)"
PASS backgroundColorOf('shadow-host') is "rgb(255, 255, 255)"
PASS backgroundColorOf('shadow-host') is "rgb(255, 255, 255)"
PASS backgroundColorOf('shadow-host') is "rgb(255, 255, 255)"
PASS backgroundColorOf('shadow-host') is "rgb(0, 128, 0)"
PASS successfullyParsed is true
TEST COMPLETE TEST COMPLETE
......
<!doctype html> <!doctype html>
<script src="../../resources/js-test.js"></script> <script src="../../resources/js-test.js"></script>
<script src="../../fast/dom/shadow/resources/shadow-dom.js"></script> <script src="../fast/dom-shadow/resources/shadow-dom.js"></script>
<style id="style1"> <style id="style1">
</style> </style>
<body></body> <body></body>
......
<!doctype html> <!doctype html>
<script src="../../resources/js-test.js"></script> <script src="../../resources/js-test.js"></script>
<script src="../../fast/dom/shadow/resources/shadow-dom.js"></script> <script src="../fast/dom-shadow/resources/shadow-dom.js"></script>
<body> <body>
<div id="parent"></div> <div id="parent"></div>
</body> </body>
......
<!doctype html> <!doctype html>
<script src="../../resources/js-test.js"></script> <script src="../../resources/js-test.js"></script>
<script src="../../fast/dom/shadow/resources/shadow-dom.js"></script> <script src="../fast/dom-shadow/resources/shadow-dom.js"></script>
<body></body> <body></body>
<script> <script>
function prepareTree() { function prepareTree() {
......
<!DOCTYPE html> <!DOCTYPE html>
<script src="../../resources/js-test.js"></script> <script src="../../resources/js-test.js"></script>
<script src="../../fast/dom/shadow/resources/shadow-dom.js"></script> <script src="../fast/dom-shadow/resources/shadow-dom.js"></script>
<body></body> <body></body>
<script> <script>
description("Tests for getDestinationInsertionPoints() which involves re-distribution."); description("Tests for getDestinationInsertionPoints() which involves re-distribution.");
......
<!DOCTYPE html> <!DOCTYPE html>
<script src="../../resources/js-test.js"></script> <script src="../../resources/js-test.js"></script>
<script src="../../fast/dom/shadow/resources/shadow-dom.js"></script> <script src="../fast/dom-shadow/resources/shadow-dom.js"></script>
<body></body> <body></body>
<script> <script>
description("Tests for getDestinationInsertionPoints()."); description("Tests for getDestinationInsertionPoints().");
......
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