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

Unified Diff: third_party/WebKit/LayoutTests/fast/forms/legend/legend-focus.html

Issue 1528823002: Move tests related to <fieldset> and <legend> to fast/forms/fieldset. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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: third_party/WebKit/LayoutTests/fast/forms/legend/legend-focus.html
diff --git a/third_party/WebKit/LayoutTests/fast/forms/legend/legend-focus.html b/third_party/WebKit/LayoutTests/fast/forms/legend/legend-focus.html
deleted file mode 100644
index 5925acecdb132f22ac244cdff55320185fa3e2b1..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/forms/legend/legend-focus.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<!DOCTYPE html>
-<body>
-<div id="log"></div>
-<script src="../../../resources/testharness.js"></script>
-<script src="../../../resources/testharnessreport.js"></script>
-
-<fieldset>
-<legend id="legend1">Legend</legend>
-<input>
-</fieldset>
-
-<fieldset>
-<legend id="legend2" tabindex=10>Legend</legend>
-<input>
-</fieldset>
-
-<script>
-test(function() {
- document.getElementById('legend1').focus();
- assert_equals(document.activeElement.tagName, 'INPUT');
-}, 'focus() for non-focusable LEGEND element delegates focus to the first control in the owner FIELDSET.');
-
-test(function() {
- document.getElementById('legend2').focus();
- assert_equals(document.activeElement.tagName, 'LEGEND');
-}, 'focus() for focusable LEGEND should not delgates focus.');
-</script>
-</body>

Powered by Google App Engine
This is Rietveld 408576698