1 CONSOLE WARNING: Calling Element.createShadowRoot() for an element which already hosts a shadow root is deprecated. See https://www.chromestatus.com/features/4668884095336448 for more details.
2 CONSOLE MESSAGE: line 150: [object Selection]
3 SelectAll and Shadow DOM Tree
5 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
8 Select all from host content in shadow tree => select all on document
9 PASS selection.anchorNode.nodeValue is "SelectAll and Shadow DOM Tree"
10 PASS selection.anchorOffset is 0
11 PASS selection.focusNode.nodeValue is "end of document"
12 PASS selection.focusOffset is 15
14 Select all from "EFO" in shadow tree => select descendants of immediate child of shadow root containing start position
15 PASS selection.anchorNode is host1.parentNode
16 PASS selection.anchorOffset is 1
17 PASS selection.focusNode is host1.parentNode
18 PASS selection.focusOffset is 1
19 PASS selectionInHost1.anchorNode.nodeValue is "BEFORE"
20 PASS selectionInHost1.anchorOffset is 0
21 PASS selectionInHost1.focusNode.nodeValue is "BEFORE"
22 PASS selectionInHost1.focusOffset is 6
24 Select all from host content in editable => select all in editable rather than whole document
25 PASS selection.anchorNode.nodeValue is "012"
26 PASS selection.anchorOffset is 0
27 PASS selection.focusNode.nodeValue is "345"
28 PASS selection.anchorOffset is 0
30 Select all from "EFO" in shadow tree => select descendants of immediate child of shadow root containing start position, host editable doesn't affect select all
31 PASS selection.anchorNode is host2.parentNode
32 PASS selection.anchorOffset is 1
33 PASS selection.focusNode is host2.parentNode
34 PASS selection.focusOffset is 1
35 PASS selectionInHost2.anchorNode.nodeValue is "BEFORE"
36 PASS selectionInHost2.anchorOffset is 0
37 PASS selectionInHost2.focusNode.nodeValue is "BEFORE"
38 PASS selectionInHost2.focusOffset is 6
40 Select all from host content in nested shadow tree => select all on document
41 PASS selection.anchorNode.nodeValue is "SelectAll and Shadow DOM Tree"
42 PASS selection.anchorOffset is 0
43 PASS selection.focusNode.nodeValue is "end of document"
44 PASS selection.focusOffset is 15
46 Select all from "EFO" in nested shadow tree => select descendants of immediate child of shadow root containing start position
47 PASS selection.anchorNode is host4.parentNode
48 PASS selection.anchorOffset is 1
49 PASS selection.focusNode is host4.parentNode
50 PASS selection.focusOffset is 1
51 PASS selectionInHost3.anchorNode is null
52 PASS selectionInHost3.anchorOffset is 0
53 PASS selectionInHost3.focusNode is null
54 PASS selectionInHost3.focusOffset is 0
55 PASS selectionInHost4.anchorNode.nodeValue is "BEFORE"
56 PASS selectionInHost4.anchorOffset is 0
57 PASS selectionInHost4.focusNode.nodeValue is "BEFORE"
58 PASS selectionInHost4.focusOffset is 6
60 Select all from selecting node in youngest shadow DOM tree => select descendants of immediate child of shadow root containing start position
61 PASS selectionInHost5.anchorNode.nodeValue is "BEFORE"
62 PASS selectionInHost5.anchorOffset is 0
63 PASS selectionInHost5.focusNode.nodeValue is "BEFORE"
64 PASS selectionInHost5.focusOffset is 6
66 Select all from selecting node in oldest shadow DOM tree => select descendants of immediate child of shadow root containing start position
67 PASS selectionInHost5.anchorNode.nodeValue is "BEFORE"
68 PASS selectionInHost5.anchorOffset is 0
69 PASS selectionInHost5.focusNode.nodeValue is "BEFORE"
70 PASS selectionInHost5.focusOffset is 6
71 PASS successfullyParsed is true
76 012host3abchost4host3def345