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

Unified Diff: LayoutTests/fast/dom/shadow/querySelector-for-multiple-shadowroots.html

Issue 210713002: Implement ::shadow pseudo element and replace /shadow/ with ::shadow. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed patch conflict Created 6 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/dom/shadow/querySelector-for-multiple-shadowroots.html
diff --git a/LayoutTests/fast/dom/shadow/querySelector-for-multiple-shadowroots.html b/LayoutTests/fast/dom/shadow/querySelector-for-multiple-shadowroots.html
index b089f35fd398bff048b410b064ae8f478e0b9314..38400f1a081d8f5437817ab34f07c78f8f389844 100644
--- a/LayoutTests/fast/dom/shadow/querySelector-for-multiple-shadowroots.html
+++ b/LayoutTests/fast/dom/shadow/querySelector-for-multiple-shadowroots.html
@@ -25,31 +25,31 @@ document.body.appendChild(
document.body.appendChild(
createDOM('pre', {'id': 'console'}));
-description('crbug.com/337616: test for querySelectorAll with /shadow/ and /deep/');
+description('crbug.com/337616: test for querySelectorAll with ::shadow and /deep/');
var shadowRoot1 = getNodeInTreeOfTrees('foo-host/');
var shadowRoot2 = getNodeInTreeOfTrees('foo-host//');
var shadowRoot3 = getNodeInTreeOfTrees('foo-host///');
-shouldBe('document.querySelectorAll("#foo-host /shadow/ span").length', '6');
-shouldBe('document.querySelectorAll("#foo-host /shadow/ span")[0].id', '"not-top1"');
-shouldBe('document.querySelectorAll("#foo-host /shadow/ span")[1].id', '"top1"');
-shouldBe('document.querySelectorAll("#foo-host /shadow/ span")[2].id', '"not-top2"');
-shouldBe('document.querySelectorAll("#foo-host /shadow/ span")[3].id', '"top2"');
-shouldBe('document.querySelectorAll("#foo-host /shadow/ span")[4].id', '"not-top3"');
-shouldBe('document.querySelectorAll("#foo-host /shadow/ span")[5].id', '"top3"');
-
-shouldBe('shadowRoot1.querySelectorAll(":host /shadow/ span").length', '2');
-shouldBe('shadowRoot1.querySelectorAll(":host /shadow/ span")[0].id', '"not-top1"');
-shouldBe('shadowRoot1.querySelectorAll(":host /shadow/ span")[1].id', '"top1"');
-
-shouldBe('shadowRoot2.querySelectorAll(":host /shadow/ span").length', '2');
-shouldBe('shadowRoot2.querySelectorAll(":host /shadow/ span")[0].id', '"not-top2"');
-shouldBe('shadowRoot2.querySelectorAll(":host /shadow/ span")[1].id', '"top2"');
-
-shouldBe('shadowRoot3.querySelectorAll(":host /shadow/ span").length', '2');
-shouldBe('shadowRoot3.querySelectorAll(":host /shadow/ span")[0].id', '"not-top3"');
-shouldBe('shadowRoot3.querySelectorAll(":host /shadow/ span")[1].id', '"top3"');
+shouldBe('document.querySelectorAll("#foo-host::shadow span").length', '6');
+shouldBe('document.querySelectorAll("#foo-host::shadow span")[0].id', '"not-top1"');
+shouldBe('document.querySelectorAll("#foo-host::shadow span")[1].id', '"top1"');
+shouldBe('document.querySelectorAll("#foo-host::shadow span")[2].id', '"not-top2"');
+shouldBe('document.querySelectorAll("#foo-host::shadow span")[3].id', '"top2"');
+shouldBe('document.querySelectorAll("#foo-host::shadow span")[4].id', '"not-top3"');
+shouldBe('document.querySelectorAll("#foo-host::shadow span")[5].id', '"top3"');
+
+shouldBe('shadowRoot1.querySelectorAll(":host::shadow span").length', '2');
+shouldBe('shadowRoot1.querySelectorAll(":host::shadow span")[0].id', '"not-top1"');
+shouldBe('shadowRoot1.querySelectorAll(":host::shadow span")[1].id', '"top1"');
+
+shouldBe('shadowRoot2.querySelectorAll(":host::shadow span").length', '2');
+shouldBe('shadowRoot2.querySelectorAll(":host::shadow span")[0].id', '"not-top2"');
+shouldBe('shadowRoot2.querySelectorAll(":host::shadow span")[1].id', '"top2"');
+
+shouldBe('shadowRoot3.querySelectorAll(":host::shadow span").length', '2');
+shouldBe('shadowRoot3.querySelectorAll(":host::shadow span")[0].id', '"not-top3"');
+shouldBe('shadowRoot3.querySelectorAll(":host::shadow span")[1].id', '"top3"');
</script>
</html>

Powered by Google App Engine
This is Rietveld 408576698