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

Side by Side Diff: third_party/WebKit/LayoutTests/shadow-dom/v0/closed-mode-deep-combinator-and-shadow-pseudo.html

Issue 2074393002: Clean up shadow-dom layout tests so that they are well organized (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 <!doctype html> 1 <!doctype html>
2 <script src="../resources/js-test.js"></script> 2 <script src="../../resources/js-test.js"></script>
3 <script src="../fast/dom/shadow/resources/shadow-dom.js"></script> 3 <script src="../../fast/dom/shadow/resources/shadow-dom.js"></script>
4 <style id="style1"> 4 <style id="style1">
5 </style> 5 </style>
6 <body></body> 6 <body></body>
7 <script> 7 <script>
8 function prepareShadowTree(hostId, mode1, mode2, div1, div2, div3) { 8 function prepareShadowTree(hostId, mode1, mode2, div1, div2, div3) {
9 var parent = document.body; 9 var parent = document.body;
10 parent.appendChild( 10 parent.appendChild(
11 createDOM('div', {'id': hostId}, 11 createDOM('div', {'id': hostId},
12 attachShadow({'mode': mode1}, 12 attachShadow({'mode': mode1},
13 createDOM('div', {'id': div1}, 13 createDOM('div', {'id': div1},
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 shouldBe('host_open_open.querySelectorAll("div::shadow div").length', '0'); 145 shouldBe('host_open_open.querySelectorAll("div::shadow div").length', '0');
146 shouldBe('host_open_closed.querySelectorAll("div::shadow div").length', '0'); 146 shouldBe('host_open_closed.querySelectorAll("div::shadow div").length', '0');
147 shouldBe('host_closed_open.querySelectorAll("div::shadow div").length', '0'); 147 shouldBe('host_closed_open.querySelectorAll("div::shadow div").length', '0');
148 shouldBe('host_closed_closed.querySelectorAll("div::shadow div").length', '0'); 148 shouldBe('host_closed_closed.querySelectorAll("div::shadow div").length', '0');
149 149
150 shouldBe('div1.querySelectorAll("div::shadow div").length', '0'); 150 shouldBe('div1.querySelectorAll("div::shadow div").length', '0');
151 shouldBe('div3.querySelectorAll("div::shadow div").length', '0'); 151 shouldBe('div3.querySelectorAll("div::shadow div").length', '0');
152 shouldBe('div5.querySelectorAll("div::shadow div").length', '0'); 152 shouldBe('div5.querySelectorAll("div::shadow div").length', '0');
153 shouldBe('div7.querySelectorAll("div::shadow div").length', '0'); 153 shouldBe('div7.querySelectorAll("div::shadow div").length', '0');
154 </script> 154 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698