Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/shadow/multiple-shadowroot-with-params-expected.txt

Issue 1751953003: Remove the support of multiple shadow roots with a user agent shadow root (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix failing tests Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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.
3 This tests multiple shadow roots creation with createShadowRoot and mode paramet er. 2 This tests multiple shadow roots creation with createShadowRoot and mode paramet er.
4 3
5 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 4 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
6 5
7 6
8 createShadowRoot() can still create multiple shadow roots. 7 createShadowRoot() can still create multiple shadow roots.
9 PASS internals.shadowRootType(shadow1) is "V0ShadowRoot" 8 PASS internals.shadowRootType(shadow1) is "V0ShadowRoot"
10 PASS internals.shadowRootType(shadow2) is "V0ShadowRoot" 9 PASS internals.shadowRootType(shadow2) is "V0ShadowRoot"
11 PASS internals.youngestShadowRoot(div) is shadow2 10 PASS internals.youngestShadowRoot(div) is shadow2
12 PASS shadow2.olderShadowRoot is shadow1 11 PASS shadow2.olderShadowRoot is shadow1
13 Other attempts to create multiple shadow roots should fail 12 Other attempts to create multiple shadow roots should fail
14 PASS internals.shadowRootType(shadow1) is "V0ShadowRoot" 13 PASS internals.shadowRootType(shadow1) is "V0ShadowRoot"
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.. 14 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.. 15 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..
17 PASS internals.youngestShadowRoot(div) is shadow1 16 PASS internals.youngestShadowRoot(div) is shadow1
18 PASS internals.shadowRootType(shadow1) is "OpenShadowRoot" 17 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.. 18 PASS div.createShadowRoot() threw exception InvalidStateError: Failed to execute 'createShadowRoot' on 'Element': Shadow root cannot be created on a host which already hosts a v1 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.. 19 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 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..
22 PASS internals.youngestShadowRoot(div) is shadow1 21 PASS internals.youngestShadowRoot(div) is shadow1
23 PASS internals.shadowRootType(shadow1) is "ClosedShadowRoot" 22 PASS internals.shadowRootType(shadow1) is "ClosedShadowRoot"
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.. 23 PASS div.createShadowRoot() threw exception InvalidStateError: Failed to execute 'createShadowRoot' on 'Element': Shadow root cannot be created on a host which already hosts a v1 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.. 24 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..
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.. 25 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..
27 PASS internals.youngestShadowRoot(div) is shadow1 26 PASS internals.youngestShadowRoot(div) is shadow1
28 V1 shadow root cannot be created on UA shadow root 27 V0 shadow root cannot be created on UA shadow root
29 PASS internals.shadowRootType(internals.shadowRoot(input)) is "UserAgentShadowRo ot" 28 PASS internals.shadowRootType(internals.shadowRoot(input)) is "UserAgentShadowRo ot"
30 PASS internals.youngestShadowRoot(input) is shadow1 29 PASS input.createShadowRoot() threw exception InvalidStateError: Failed to execu te 'createShadowRoot' on 'Element': Shadow root cannot be created on a host whic h already hosts an user-agent shadow tree..
31 PASS internals.shadowRootType(shadow1) is "V0ShadowRoot"
32 PASS input.attachShadow({mode: "open"}) threw exception NotSupportedError: Faile d to execute 'attachShadow' on 'Element': This element does not support attachSh adow. 30 PASS input.attachShadow({mode: "open"}) threw exception NotSupportedError: Faile d to execute 'attachShadow' on 'Element': This element does not support attachSh adow.
33 PASS input.attachShadow({mode: "closed"}) threw exception NotSupportedError: Fai led to execute 'attachShadow' on 'Element': This element does not support attach Shadow. 31 PASS input.attachShadow({mode: "closed"}) threw exception NotSupportedError: Fai led to execute 'attachShadow' on 'Element': This element does not support attach Shadow.
34 PASS successfullyParsed is true 32 PASS successfullyParsed is true
35 33
36 TEST COMPLETE 34 TEST COMPLETE
37 35
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698