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

Side by Side Diff: LayoutTests/editing/shadow/selection-of-shadowroot-expected.txt

Issue 1159563012: Add a deprecation message for multiple shadow roots. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase more expectations. Created 5 years, 7 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 In this test, we create a complex Shadow DOM and try to drag from a div in neste d shadow root of older shadow root to a div in nested shadow root of younger sha dow root. Then we get selection from the following TreeScopes: 2 In this test, we create a complex Shadow DOM and try to drag from a div in neste d shadow root of older shadow root to a div in nested shadow root of younger sha dow root. Then we get selection from the following TreeScopes:
2 * treeScopes[0] = document 3 * treeScopes[0] = document
3 * treeScopes[1] = OLDER SHADOW ROOT 4 * treeScopes[1] = OLDER SHADOW ROOT
4 * treeScopes[2] = YOUNGER SHADOW ROOT 5 * treeScopes[2] = YOUNGER SHADOW ROOT
5 * treeScopes[3] = NESTED SHADOW ROOT IN OLDER SHADOW ROOT 6 * treeScopes[3] = NESTED SHADOW ROOT IN OLDER SHADOW ROOT
6 * treeScopes[4] = NESTED SHADOW ROOT IN YOUNGER SHADOW ROOT 7 * treeScopes[4] = NESTED SHADOW ROOT IN YOUNGER SHADOW ROOT
7 and check selection.anchorNode, selection.focusNode, selection.baseNode, and sel ection.extentNode are null or in the same treescope. 8 and check selection.anchorNode, selection.focusNode, selection.baseNode, and sel ection.extentNode are null or in the same treescope.
8 9
9 Dragged from (DIV 2 IN NESTED SHADOW DOM OF OLDER SHADOW ROOT) to (DIV 2 IN NEST ED SHADOW DOM OF YOUNGER SHADOW ROOT) 10 Dragged from (DIV 2 IN NESTED SHADOW DOM OF OLDER SHADOW ROOT) to (DIV 2 IN NEST ED SHADOW DOM OF YOUNGER SHADOW ROOT)
10 11
(...skipping 26 matching lines...) Expand all
37 Since treeScope[4] is outside of selection start point, no node should not be ta ken. 38 Since treeScope[4] is outside of selection start point, no node should not be ta ken.
38 PASS treeScopes[4].getSelection().anchorNode is null 39 PASS treeScopes[4].getSelection().anchorNode is null
39 PASS treeScopes[4].getSelection().focusNode is null 40 PASS treeScopes[4].getSelection().focusNode is null
40 PASS treeScopes[4].getSelection().baseNode is null 41 PASS treeScopes[4].getSelection().baseNode is null
41 PASS treeScopes[4].getSelection().extentNode is null 42 PASS treeScopes[4].getSelection().extentNode is null
42 43
43 PASS successfullyParsed is true 44 PASS successfullyParsed is true
44 45
45 TEST COMPLETE 46 TEST COMPLETE
46 47
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698