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

Unified Diff: LayoutTests/fast/dom/shadow/pseudoclass-update-enabled-area.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
Index: LayoutTests/fast/dom/shadow/pseudoclass-update-enabled-area.html
diff --git a/LayoutTests/fast/dom/shadow/pseudoclass-update-link-area.html b/LayoutTests/fast/dom/shadow/pseudoclass-update-enabled-area.html
similarity index 81%
copy from LayoutTests/fast/dom/shadow/pseudoclass-update-link-area.html
copy to LayoutTests/fast/dom/shadow/pseudoclass-update-enabled-area.html
index e74f8984286feeaf1271b7bdcb383e668015619b..3e79dc695710cc504fd90abb8c2c7917e8a1dccf 100644
--- a/LayoutTests/fast/dom/shadow/pseudoclass-update-link-area.html
+++ b/LayoutTests/fast/dom/shadow/pseudoclass-update-enabled-area.html
@@ -1,21 +1,11 @@
-<!DOCTYPE html>
-<html>
-<head>
-</head>
-
-<body>
-
<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();
@@ -40,8 +30,8 @@ host1.appendChild(area2);
host2.appendChild(area3);
host2.appendChild(area4);
-host1.createShadowRoot().innerHTML = '<content select="area:link"></content>';
-host2.createShadowRoot().innerHTML = '<content select="area:link"></content>';
+host1.createShadowRoot().innerHTML = '<content select="area:enabled"></content>';
+host2.createShadowRoot().innerHTML = '<content select="area:enabled"></content>';
setTimeout(function() {
area2.removeAttribute('href');
@@ -49,8 +39,4 @@ setTimeout(function() {
if (testRunner)
testRunner.notifyDone();
}, 0);
-
</script>
-</body>
-</html>
-

Powered by Google App Engine
This is Rietveld 408576698