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

Unified Diff: LayoutTests/fast/events/tabindex-no-focusable.html

Issue 484383002: Disable the focus moves to an element which doesn't satisfy the spec. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix indent and add space after ', 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
« no previous file with comments | « no previous file | LayoutTests/fast/events/tabindex-no-focusable-all-negative.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/events/tabindex-no-focusable.html
diff --git a/LayoutTests/fast/events/tabindex-no-focusable.html b/LayoutTests/fast/events/tabindex-no-focusable.html
new file mode 100644
index 0000000000000000000000000000000000000000..a356966bf8a4474a0b0c9427246fb13f37efb4ba
--- /dev/null
+++ b/LayoutTests/fast/events/tabindex-no-focusable.html
@@ -0,0 +1,28 @@
+<script src="../../resources/js-test.js"></script>
+<script>
+if (window.testRunner)
+ testRunner.dumpAsText();
+
+function test()
+{
+ if (!window.testRunner)
+ return;
+ var elem_movetome = document.getElementById('MoveToMe');
+ var elem_focusme = document.getElementById('focusMe');
+ elem_focusme.focus();
+
+ eventSender.keyDown("\t");
+ shouldBeEqualToString('document.activeElement.id', 'MoveToMe');
+ elem_focusme.focus();
+ eventSender.keyDown("\t", ["shiftKey"]);
+ shouldBeEqualToString('document.activeElement.id', 'MoveToMe');
+}
+</script>
+<body onload="test()">
+<input id="MoveToMe" tabindex="1">
+<input tabindex="-1">
+<input id="focusMe" tabindex="-1">
+<input tabindex="-1">
+</body>
+
+
« no previous file with comments | « no previous file | LayoutTests/fast/events/tabindex-no-focusable-all-negative.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698