blob: 7753e4f4963b2b093f42d54db563c9ce81c54e9a [file] [log] [blame]
CONSOLE WARNING: line 87: Calling Element.createShadowRoot() for an element which already hosts a shadow root is deprecated and will be removed in M63, around December 2017. See https://www.chromestatus.com/features/4668884095336448 for more details.
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".
Multiple shadow root without shadow element
Flat Tree:
#a
#c
Traverse in forward.
#a
#c
Traverse in backward.
#c
#a
Multiple shadow root with shadow element
Flat Tree:
#a
#c
#b
#e
Traverse in forward.
#a
#c
#b
#e
Traverse in backward.
#e
#b
#c
#a
Multiple shadow root with shadow element, case 2
Flat Tree:
#a
#f
#c
#b
#e
#h
Traverse in forward.
#a
#f
#c
#b
#e
#h
Traverse in backward.
#h
#e
#b
#c
#f
#a
shadow reprojection
Flat Tree:
#a
#b
#d
#a-child
#f
Traverse in forward.
#a
#b
#d
#a-child
#f
Traverse in backward.
#f
#a-child
#d
#b
#a
shadow reprojection, take 2
Flat Tree:
#a
#d
#f
#b
#h
Traverse in forward.
#a
#d
#f
#b
#h
Traverse in backward.
#h
#b
#f
#d
#a
Ignore shadow fallback elements
Flat Tree:
#a
#i
#k
#c
#b
#f
#g
#h
#m
Traverse in forward.
#a
#i
#k
#c
#b
#f
#g
#h
#m
Traverse in backward.
#m
#h
#g
#f
#b
#c
#k
#i
#a
with inactive insertion points
Flat Tree:
#a
#s
#u
#f
#b
#c
#d
#e
#l
#m
#n
#w
Traverse in forward.
#a
#s
#u
#f
#b
#c
#d
#e
#l
#m
#n
#w
Traverse in backward.
#w
#n
#m
#l
#e
#d
#c
#b
#f
#u
#s
#a
PASS successfullyParsed is true
TEST COMPLETE