| 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>
|
|
|