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

Unified Diff: LayoutTests/fast/dom/shadow/pseudoclass-update-enabled-area.html

Issue 610683002: Revert of Support for :enabled selector on Anchor & Area elements (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 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-enabled-area.html
diff --git a/LayoutTests/fast/dom/shadow/pseudoclass-update-enabled-area.html b/LayoutTests/fast/dom/shadow/pseudoclass-update-enabled-area.html
deleted file mode 100644
index 3e79dc695710cc504fd90abb8c2c7917e8a1dccf..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/dom/shadow/pseudoclass-update-enabled-area.html
+++ /dev/null
@@ -1,42 +0,0 @@
-<style>
-area {
- display: inline;
-}
-</style>
-<p>When an anchor tag catch 'href' attribute or release 'href' attribute, distribution should happen.</p>
-<div id="host1"></div>
-<div id="host2"></div>
-<script>
-if (window.testRunner)
- testRunner.waitUntilDone();
-
-function createArea(href, textContent)
-{
- var area = document.createElement('area');
- if (href)
- area.setAttribute('href', href);
- area.appendChild(document.createTextNode(textContent));
-
- return area;
-}
-
-var area1 = createArea('http://www.example.com/', 'Anchor 1');
-var area2 = createArea('http://www.example.com/', 'Anchor 2');
-var area3 = createArea(null, 'Anchor 3');
-var area4 = createArea(null, 'Anchor 4');
-
-host1.appendChild(area1);
-host1.appendChild(area2);
-host2.appendChild(area3);
-host2.appendChild(area4);
-
-host1.createShadowRoot().innerHTML = '<content select="area:enabled"></content>';
-host2.createShadowRoot().innerHTML = '<content select="area:enabled"></content>';
-
-setTimeout(function() {
- area2.removeAttribute('href');
- area4.setAttribute('href', 'http://www.example.com/');
- if (testRunner)
- testRunner.notifyDone();
-}, 0);
-</script>

Powered by Google App Engine
This is Rietveld 408576698