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

Side by Side Diff: LayoutTests/fast/dom/shadow/querySelector-with-shadow-all-and-shadow-deep-expected.txt

Issue 1245933002: document.querySelector[All]() should check selector context (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: . Created 5 years, 3 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 | Annotate | Revision Log
OLDNEW
1 CONSOLE WARNING: ::shadow pseudo-element is deprecated. See https://www.chromest atus.com/features/6750456638341120 for more details. 1 CONSOLE WARNING: ::shadow pseudo-element is deprecated. See https://www.chromest atus.com/features/6750456638341120 for more details.
2 CONSOLE WARNING: /deep/ combinator is deprecated. See https://www.chromestatus.c om/features/6750456638341120 for more details. 2 CONSOLE WARNING: /deep/ combinator is deprecated. See https://www.chromestatus.c om/features/6750456638341120 for more details.
3 crbug.com/337616: test for querySelectorAll with ::shadow and /deep/ 3 crbug.com/337616: test for querySelectorAll with ::shadow and /deep/
4 4
5 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 5 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
6 6
7 7
8 PASS document.querySelectorAll("#foo-host::shadow span").length is 3 8 PASS document.querySelectorAll("#foo-host::shadow span").length is 3
9 PASS document.querySelectorAll("#foo-host::shadow span")[0].id is "not-top" 9 PASS document.querySelectorAll("#foo-host::shadow span")[0].id is "not-top"
10 PASS document.querySelectorAll("#foo-host::shadow span")[1].id is "top" 10 PASS document.querySelectorAll("#foo-host::shadow span")[1].id is "top"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 PASS barShadowRoot.querySelectorAll(":host(div#bar-host) /deep/ span").length is 1 43 PASS barShadowRoot.querySelectorAll(":host(div#bar-host) /deep/ span").length is 1
44 PASS barShadowRoot.querySelectorAll(":host(div#bar-host) /deep/ span")[0].id is "nested" 44 PASS barShadowRoot.querySelectorAll(":host(div#bar-host) /deep/ span")[0].id is "nested"
45 PASS barShadowRoot.querySelectorAll(":host-context(div#foo-host)::shadow span"). length is 1 45 PASS barShadowRoot.querySelectorAll(":host-context(div#foo-host)::shadow span"). length is 1
46 PASS barShadowRoot.querySelectorAll(":host-context(div#foo-host)::shadow span")[ 0].id is "nested" 46 PASS barShadowRoot.querySelectorAll(":host-context(div#foo-host)::shadow span")[ 0].id is "nested"
47 PASS barShadowRoot.querySelectorAll(":host-context(div#foo-host) /deep/ span").l ength is 1 47 PASS barShadowRoot.querySelectorAll(":host-context(div#foo-host) /deep/ span").l ength is 1
48 PASS barShadowRoot.querySelectorAll(":host-context(div#foo-host) /deep/ span")[0 ].id is "nested" 48 PASS barShadowRoot.querySelectorAll(":host-context(div#foo-host) /deep/ span")[0 ].id is "nested"
49 PASS fooHost.querySelectorAll("::shadow span").length is 3 49 PASS fooHost.querySelectorAll("::shadow span").length is 3
50 PASS fooHost.querySelectorAll("::shadow span")[0].id is "not-top" 50 PASS fooHost.querySelectorAll("::shadow span")[0].id is "not-top"
51 PASS fooHost.querySelectorAll("::shadow span")[1].id is "top" 51 PASS fooHost.querySelectorAll("::shadow span")[1].id is "top"
52 PASS fooHost.querySelectorAll("::shadow span")[2].id is "inner-host" 52 PASS fooHost.querySelectorAll("::shadow span")[2].id is "inner-host"
53 PASS document.querySelectorAll("::shadow span").length is 3
54 PASS document.querySelectorAll("::shadow span")[0].id is "not-top"
55 PASS document.querySelectorAll("::shadow span")[1].id is "top"
56 PASS document.querySelectorAll("::shadow span")[2].id is "inner-host"
53 PASS successfullyParsed is true 57 PASS successfullyParsed is true
54 58
55 TEST COMPLETE 59 TEST COMPLETE
56 60
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698