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

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: Two Tests for Ver.2 Patch. 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-focus-chain.html b/LayoutTests/fast/events/tabindex-no-focusable.html
similarity index 73%
copy from LayoutTests/fast/events/tabindex-focus-chain.html
copy to LayoutTests/fast/events/tabindex-no-focusable.html
index 0432e8099244277f311ee2dca28d8bcb2f2d44ac..ce6f807ef082e51a054dc8d3715e8580d1c833c8 100644
--- a/LayoutTests/fast/events/tabindex-focus-chain.html
+++ b/LayoutTests/fast/events/tabindex-no-focusable.html
@@ -7,15 +7,13 @@ function test()
{
if (!window.testRunner)
return;
-
- var elem = document.getElementById('focusMe')
- key = -1;
- elem.focus();
+
+ var elem_focusme = document.getElementById('focusMe')
+ elem_focusme.focus();
eventSender.keyDown("\t");
if (!key) { // first test passed, continue with second test
- key = 1;
- elem.focus();
+ elem_focusme.focus();
eventSender.keyDown("\t",["shiftKey"]);
if (!key) { // second test passed
hayato 2014/09/05 07:08:11 I don't think it is good to use the value of the `
yanagawa 2014/09/10 05:26:33 Done.
@@ -29,8 +27,11 @@ function test()
}
</script>
<body onload="test()">
-<input onfocus="key-=1">
+<input tabindex="1">
+<input onfocus="key-=1" tabindex="-1">
<input id="focusMe" tabindex="-1">
-<input onfocus="key+=1">
+<input onfocus="key-=1" tabindex="-1">
<div id="results"></div>
</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