OLD | NEW |
1 CONSOLE WARNING: Calling Element.createShadowRoot() for an element which already
hosts a shadow root is deprecated. See https://www.chromestatus.com/features/46
68884095336448 for more details. | 1 CONSOLE WARNING: Calling Element.createShadowRoot() for an element which already
hosts a shadow root is deprecated. See https://www.chromestatus.com/features/46
68884095336448 for more details. |
2 CONSOLE WARNING: Calling Element.createShadowRoot() for an element which already
hosts a user-agent shadow root is deprecated. See https://www.chromestatus.com/
features/4668884095336448 for more details. | 2 CONSOLE WARNING: Calling Element.createShadowRoot() for an element which already
hosts a user-agent shadow root is deprecated. See https://www.chromestatus.com/
features/4668884095336448 for more details. |
3 This tests multiple shadow roots creation with createShadowRoot and mode paramet
er. | 3 This tests multiple shadow roots creation with createShadowRoot and mode paramet
er. |
4 | 4 |
5 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 5 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
6 | 6 |
7 | 7 |
8 (1/1) For compatibility, no parameter createShadowRoot() can still create multip
le shadow roots. | 8 createShadowRoot() can still create multiple shadow roots. |
9 PASS internals.shadowRootType(shadow1) is "OpenByDefaultShadowRoot" | 9 PASS internals.shadowRootType(shadow1) is "OpenByDefaultShadowRoot" |
10 PASS internals.shadowRootType(shadow2) is "OpenByDefaultShadowRoot" | 10 PASS internals.shadowRootType(shadow2) is "OpenByDefaultShadowRoot" |
11 PASS internals.youngestShadowRoot(div) is shadow2 | 11 PASS internals.youngestShadowRoot(div) is shadow2 |
12 PASS shadow2.olderShadowRoot is shadow1 | 12 PASS shadow2.olderShadowRoot is shadow1 |
13 (2/2) createShadowRoot({mode:"open"}) cannot create multiple shadow roots | 13 Other attempts to create multiple shadow roots should fail |
14 PASS internals.shadowRootType(shadow1) is "OpenByDefaultShadowRoot" | 14 PASS internals.shadowRootType(shadow1) is "OpenByDefaultShadowRoot" |
15 PASS div.createShadowRoot({mode: "open"}) threw exception InvalidStateError: Fai
led to execute 'createShadowRoot' on 'Element': Shadow root cannot be created on
a host which already hosts a shadow tree.. | 15 PASS div.attachShadow({mode: "open"}) threw exception InvalidStateError: Failed
to execute 'attachShadow' on 'Element': Shadow root cannot be created on a host
which already hosts a shadow tree.. |
| 16 PASS div.attachShadow({mode: "closed"}) threw exception InvalidStateError: Faile
d to execute 'attachShadow' on 'Element': Shadow root cannot be created on a hos
t which already hosts a shadow tree.. |
16 PASS internals.youngestShadowRoot(div) is shadow1 | 17 PASS internals.youngestShadowRoot(div) is shadow1 |
17 (3/3) createShadowRoot() cannot create multiple shadow roots on shadow root with
explicit open parameter. | |
18 PASS internals.shadowRootType(shadow1) is "OpenShadowRoot" | 18 PASS internals.shadowRootType(shadow1) is "OpenShadowRoot" |
19 PASS div.createShadowRoot() threw exception InvalidStateError: Failed to execute
'createShadowRoot' on 'Element': Shadow root cannot be created on a host which
already hosts this type of shadow tree.. | 19 PASS div.createShadowRoot() threw exception InvalidStateError: Failed to execute
'createShadowRoot' on 'Element': Shadow root cannot be created on a host which
already hosts this type of shadow tree.. |
| 20 PASS div.attachShadow({mode: "open"}) threw exception InvalidStateError: Failed
to execute 'attachShadow' on 'Element': Shadow root cannot be created on a host
which already hosts a shadow tree.. |
| 21 PASS div.attachShadow({mode: "closed"}) threw exception InvalidStateError: Faile
d to execute 'attachShadow' on 'Element': Shadow root cannot be created on a hos
t which already hosts a shadow tree.. |
20 PASS internals.youngestShadowRoot(div) is shadow1 | 22 PASS internals.youngestShadowRoot(div) is shadow1 |
21 (4/4) closed shadow root cannot be created on any open shadow roots | |
22 PASS internals.shadowRootType(shadow1) is "OpenByDefaultShadowRoot" | |
23 PASS div.createShadowRoot({mode: "closed"}) threw exception InvalidStateError: F
ailed to execute 'createShadowRoot' on 'Element': Shadow root cannot be created
on a host which already hosts a shadow tree.. | |
24 PASS internals.youngestShadowRoot(div) is shadow1 | |
25 PASS internals.shadowRootType(shadow1) is "OpenShadowRoot" | |
26 PASS div.createShadowRoot({mode: "closed"}) threw exception InvalidStateError: F
ailed to execute 'createShadowRoot' on 'Element': Shadow root cannot be created
on a host which already hosts a shadow tree.. | |
27 PASS internals.youngestShadowRoot(div) is shadow1 | |
28 (5/5) any shadow root cannot be created on closed shadow root | |
29 PASS internals.shadowRootType(shadow1) is "ClosedShadowRoot" | 23 PASS internals.shadowRootType(shadow1) is "ClosedShadowRoot" |
30 PASS div.createShadowRoot() threw exception InvalidStateError: Failed to execute
'createShadowRoot' on 'Element': Shadow root cannot be created on a host which
already hosts this type of shadow tree.. | 24 PASS div.createShadowRoot() threw exception InvalidStateError: Failed to execute
'createShadowRoot' on 'Element': Shadow root cannot be created on a host which
already hosts this type of shadow tree.. |
31 PASS div.createShadowRoot({mode: "open"}) threw exception InvalidStateError: Fai
led to execute 'createShadowRoot' on 'Element': Shadow root cannot be created on
a host which already hosts a shadow tree.. | 25 PASS div.attachShadow({mode: "open"}) threw exception InvalidStateError: Failed
to execute 'attachShadow' on 'Element': Shadow root cannot be created on a host
which already hosts a shadow tree.. |
32 PASS div.createShadowRoot({mode: "closed"}) threw exception InvalidStateError: F
ailed to execute 'createShadowRoot' on 'Element': Shadow root cannot be created
on a host which already hosts a shadow tree.. | 26 PASS div.attachShadow({mode: "closed"}) threw exception InvalidStateError: Faile
d to execute 'attachShadow' on 'Element': Shadow root cannot be created on a hos
t which already hosts a shadow tree.. |
33 (6/6) explicitly open/closed shadow root cannot be created on UA shadow root | 27 PASS internals.youngestShadowRoot(div) is shadow1 |
| 28 V1 shadow root cannot be created on UA shadow root |
34 PASS internals.shadowRootType(internals.shadowRoot(input)) is "UserAgentShadowRo
ot" | 29 PASS internals.shadowRootType(internals.shadowRoot(input)) is "UserAgentShadowRo
ot" |
35 PASS internals.youngestShadowRoot(input) is shadow1 | 30 PASS internals.youngestShadowRoot(input) is shadow1 |
36 PASS internals.shadowRootType(shadow1) is "OpenByDefaultShadowRoot" | 31 PASS internals.shadowRootType(shadow1) is "OpenByDefaultShadowRoot" |
37 PASS input.createShadowRoot({mode: "open"}) threw exception InvalidStateError: F
ailed to execute 'createShadowRoot' on 'Element': Shadow root cannot be created
on a host which already hosts a shadow tree.. | 32 PASS input.attachShadow({mode: "open"}) threw exception InvalidStateError: Faile
d to execute 'attachShadow' on 'Element': Shadow root cannot be created on a hos
t which already hosts a shadow tree.. |
38 PASS input.createShadowRoot({mode: "closed"}) threw exception InvalidStateError:
Failed to execute 'createShadowRoot' on 'Element': Shadow root cannot be create
d on a host which already hosts a shadow tree.. | 33 PASS input.attachShadow({mode: "closed"}) threw exception InvalidStateError: Fai
led to execute 'attachShadow' on 'Element': Shadow root cannot be created on a h
ost which already hosts a shadow tree.. |
39 PASS successfullyParsed is true | 34 PASS successfullyParsed is true |
40 | 35 |
41 TEST COMPLETE | 36 TEST COMPLETE |
42 | 37 |
OLD | NEW |