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

Unified Diff: LayoutTests/fast/dom/shadow/pseudoclass-update-checked-option.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/pseudoclass-update-checked-option.html
diff --git a/LayoutTests/fast/dom/shadow/pseudoclass-update-checked-option.html b/LayoutTests/fast/dom/shadow/pseudoclass-update-checked-option.html
deleted file mode 100644
index a6fde96c7a9e99d0fc9c5dcb586ef64b1524af88..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/dom/shadow/pseudoclass-update-checked-option.html
+++ /dev/null
@@ -1,59 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<script src="../../../resources/js-test.js"></script>
-</head>
-
-<body>
-
-<p>When an option element became 'checked' or not-'checked', distribution should happen.</p>
-<p>Since an option element does not create a renderer, we cannot check this using reftest.</p>
-
-<div id="container">
- <div id="host1">
- <option id="option1">option 1</option>
- </div>
-
- <div id="host2">
- <option id="option2" selected>option 2</option>
- </div>
-</div>
-
-<pre id="console"></pre>
-
-<script>
-jsTestIsAsync = true;
-
-var shadowRoot1 = host1.createShadowRoot();
-var shadowRoot2 = host2.createShadowRoot();
-
-shadowRoot1.innerHTML = '<content select="option:checked">';
-shadowRoot2.innerHTML = '<content select="option:checked">';
-
-var content1 = shadowRoot1.querySelector('content');
-var content2 = shadowRoot2.querySelector('content');
-
-setTimeout(function() {
- nodes1 = content1.getDistributedNodes();
- shouldBe('nodes1.length', '0');
-
- nodes2 = content2.getDistributedNodes();
- shouldBe('nodes2.length', '1');
-
- debug('Flipping :checked state');
- option1.setAttribute('selected', true);
- option2.selected = false;
-
- nodes1 = content1.getDistributedNodes();
- shouldBe('nodes1.length', '1');
-
- nodes2 = content2.getDistributedNodes();
- shouldBe('nodes2.length', '0');
-
- container.innerHTML = "";
- finishJSTest();
-}, 0);
-
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698