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

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

Issue 408293002: Support for :enabled selector on Anchor & Area elements (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated layout tests with fixes from esprehn Created 6 years, 5 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
« no previous file with comments | « no previous file | LayoutTests/fast/dom/shadow/pseudoclass-update-enabled-anchor-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/dom/shadow/pseudoclass-update-enabled-anchor.html
diff --git a/LayoutTests/fast/dom/shadow/pseudoclass-update-visited-anchor.html b/LayoutTests/fast/dom/shadow/pseudoclass-update-enabled-anchor.html
similarity index 75%
copy from LayoutTests/fast/dom/shadow/pseudoclass-update-visited-anchor.html
copy to LayoutTests/fast/dom/shadow/pseudoclass-update-enabled-anchor.html
index 169f42cc0cbf94d218ebe2fefe166318687bb306..53ea18d35e9201e01210b2df79c1c05ce4e6b913 100644
--- a/LayoutTests/fast/dom/shadow/pseudoclass-update-visited-anchor.html
+++ b/LayoutTests/fast/dom/shadow/pseudoclass-update-enabled-anchor.html
@@ -1,36 +1,22 @@
-<!DOCTYPE html>
-<html>
-<head>
-</head>
-
-<body>
-
<p>When an anchor tag catch 'href' attribute or release 'href' attribute, distribution should happen.</p>
-
<div id="host1">
<a id="anchor1" href="http://www.example.com/">Anchor 1</a>
<a id="anchor2" href="http://www.example.com/">Anchor 2</a>
</div>
-
<div id="host2">
<a id="anchor3">Anchor 3</a>
<a id="anchor4">Anchor 4</a>
</div>
-
<script>
if (window.testRunner)
testRunner.waitUntilDone();
-host1.createShadowRoot().innerHTML = '<content select=":visited"></content>';
-host2.createShadowRoot().innerHTML = '<content select=":visited"></content>';
+host1.createShadowRoot().innerHTML = '<content select=":enabled"></content>';
+host2.createShadowRoot().innerHTML = '<content select=":enabled"></content>';
setTimeout(function() {
anchor2.removeAttribute('href');
anchor4.setAttribute('href', 'http://www.example.com/');
testRunner.notifyDone();
}, 0);
-
</script>
-</body>
-</html>
-
« no previous file with comments | « no previous file | LayoutTests/fast/dom/shadow/pseudoclass-update-enabled-anchor-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698