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

Unified Diff: third_party/WebKit/LayoutTests/fast/forms/fieldset/fieldset-disabled.html

Issue 1422573006: Disabled FIELDSET elements should not be focusable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix for fast/events/tabindex-focus-blur-all.html Created 5 years, 2 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 | third_party/WebKit/LayoutTests/fast/forms/fieldset/fieldset-disabled-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/forms/fieldset/fieldset-disabled.html
diff --git a/third_party/WebKit/LayoutTests/fast/forms/fieldset/fieldset-disabled.html b/third_party/WebKit/LayoutTests/fast/forms/fieldset/fieldset-disabled.html
index 9471bd97ca8cbf53e7ab2c316f3f222ce762dd0b..d730ddafe4074050a3af685c38ecf32b008436e0 100644
--- a/third_party/WebKit/LayoutTests/fast/forms/fieldset/fieldset-disabled.html
+++ b/third_party/WebKit/LayoutTests/fast/forms/fieldset/fieldset-disabled.html
@@ -31,7 +31,7 @@ input:disabled {
<input type="text" id="parserGeneratedInput9">
</fieldset>
</form>
-
+<fieldset tabindex=0 disabled id="fieldset-tabindex"></fieldset>
<script>
description('Tests for HTMLFieldSetElement.disabled behavior.');
@@ -291,10 +291,15 @@ shouldBe('insertedLegendTextInput.value', '"JJJK"');
shouldBe('firstLegendTextInput.value', '"IIK"');
shouldBe('secondLegendTextInput.value', '"K"');
+var disabledFieldsetWithTabindex = document.getElementById('fieldset-tabindex');
+document.activeElement.blur();
+shouldBe('disabledFieldsetWithTabindex.focus(); document.activeElement', 'document.body');
+
document.body.removeChild(document.getElementsByTagName('form')[0]);
document.body.removeChild(fieldSet);
document.body.removeChild(outerFieldSet);
document.body.removeChild(legendFieldSet);
+document.body.removeChild(disabledFieldsetWithTabindex);
var successfullyParsed = true;
</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/forms/fieldset/fieldset-disabled-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698