d41ce2eda2de3f9571cc41a9640f38157364f6a0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / dom / shadow / querySelector-with-shadow-all-and-shadow-deep-expected.txt
1 crbug.com/337616: test for querySelectorAll with ::shadow and /deep/
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
4
5
6 PASS document.querySelectorAll("#foo-host::shadow span").length is 3
7 PASS document.querySelectorAll("#foo-host::shadow span")[0].id is "not-top"
8 PASS document.querySelectorAll("#foo-host::shadow span")[1].id is "top"
9 PASS document.querySelectorAll("#foo-host::shadow span")[2].id is "inner-host"
10 PASS document.querySelectorAll("#foo-host /deep/ span").length is 5
11 PASS document.querySelectorAll("#foo-host /deep/ span")[0].id is "not-top"
12 PASS document.querySelectorAll("#foo-host /deep/ span")[1].id is "top"
13 PASS document.querySelectorAll("#foo-host /deep/ span")[2].id is "nested"
14 PASS document.querySelectorAll("#foo-host /deep/ span")[3].id is "inner-host"
15 PASS document.querySelectorAll("#foo-host /deep/ span")[4].id is "outer-host"
16 PASS fooShadowRoot.querySelectorAll("*::shadow span").length is 1
17 PASS fooShadowRoot.querySelectorAll("*::shadow span")[0].id is "nested"
18 PASS fooShadowRoot.querySelectorAll("* /deep/ span").length is 3
19 PASS fooShadowRoot.querySelectorAll("* /deep/ span")[0].id is "not-top"
20 PASS fooShadowRoot.querySelectorAll("* /deep/ span")[1].id is "nested"
21 PASS fooShadowRoot.querySelectorAll("* /deep/ span")[2].id is "inner-host"
22 PASS fooShadowRoot.querySelectorAll("#foo-host /deep/ span").length is 0
23 PASS fooShadowRoot.querySelectorAll(":host(div#foo-host)::shadow span").length is 3
24 PASS fooShadowRoot.querySelectorAll(":host(div#foo-host)::shadow span")[0].id is "not-top"
25 PASS fooShadowRoot.querySelectorAll(":host(div#foo-host)::shadow span")[1].id is "top"
26 PASS fooShadowRoot.querySelectorAll(":host(div#foo-host)::shadow span")[2].id is "inner-host"
27 PASS fooShadowRoot.querySelectorAll(":host-context(body)::shadow span").length is 3
28 PASS fooShadowRoot.querySelectorAll(":host-context(body)::shadow span")[0].id is "not-top"
29 PASS fooShadowRoot.querySelectorAll(":host-context(body)::shadow span")[1].id is "top"
30 PASS fooShadowRoot.querySelectorAll(":host-context(body)::shadow span")[2].id is "inner-host"
31 PASS barHost.querySelectorAll("#bar-host::shadow span").length is 1
32 PASS barHost.querySelectorAll("#bar-host::shadow span")[0].id is "nested"
33 PASS barHost.querySelectorAll(":host :scope span").length is 1
34 PASS barHost.querySelectorAll(":host :scope span")[0].id is "inner-host"
35 PASS barHost.querySelectorAll(":host /deep/ #bar-host span").length is 1
36 PASS barHost.querySelectorAll(":host /deep/ #bar-host span")[0].id is "inner-host"
37 PASS barShadowRoot.querySelectorAll("*::shadow span").length is 0
38 PASS barShadowRoot.querySelectorAll("* /deep/ span").length is 0
39 PASS barShadowRoot.querySelectorAll(":host(div#bar-host)::shadow span").length is 1
40 PASS barShadowRoot.querySelectorAll(":host(div#bar-host)::shadow span")[0].id is "nested"
41 PASS barShadowRoot.querySelectorAll(":host(div#bar-host) /deep/ span").length is 1
42 PASS barShadowRoot.querySelectorAll(":host(div#bar-host) /deep/ span")[0].id is "nested"
43 PASS barShadowRoot.querySelectorAll(":host-context(div#foo-host)::shadow span").length is 1
44 PASS barShadowRoot.querySelectorAll(":host-context(div#foo-host)::shadow span")[0].id is "nested"
45 PASS barShadowRoot.querySelectorAll(":host-context(div#foo-host) /deep/ span").length is 1
46 PASS barShadowRoot.querySelectorAll(":host-context(div#foo-host) /deep/ span")[0].id is "nested"
47 PASS successfullyParsed is true
48
49 TEST COMPLETE
50