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

Unified Diff: LayoutTests/fast/dom/shadow/pseudo-not.html

Issue 1129673002: Remove support for pseudo classes in <content select>. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix more tests. Created 5 years, 7 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/pseudo-not.html
diff --git a/LayoutTests/fast/dom/shadow/pseudo-not.html b/LayoutTests/fast/dom/shadow/pseudo-not.html
new file mode 100644
index 0000000000000000000000000000000000000000..ffc4facb70ebf49e768df817cc8d16166b5ce079
--- /dev/null
+++ b/LayoutTests/fast/dom/shadow/pseudo-not.html
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+
+<script src="../../../resources/js-test.js"></script>
+
+<div id="host">
+ <span class="first"></span>
+ <span class="second"></span>
+</div>
+
+<script>
+description("Test the :not pseudo selector in <content select>");
+
+var host = document.getElementById("host");
+var root = host.createShadowRoot();
+var content = document.createElement("content");
+root.appendChild(content);
+
+content.select = ":not(.first)";
+shouldBe("content.getDistributedNodes().length", "1");
+shouldBeEqualToString("content.getDistributedNodes()[0].className", "second");
+
+content.select = ":not(.second)";
+shouldBe("content.getDistributedNodes().length", "1");
+shouldBeEqualToString("content.getDistributedNodes()[0].className", "first");
+</script>

Powered by Google App Engine
This is Rietveld 408576698