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

Side by Side 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: Use shouldBe and so on 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 unified diff | Download patch
OLDNEW
(Empty)
1 <script src="../../resources/js-test.js"></script>
2 <script>
3 if (window.testRunner)
4 testRunner.dumpAsText();
5
6 function test()
7 {
8 if (!window.testRunner)
9 return;
10 var elem_movetome = document.getElementById('MoveToMe');
11 var elem_focusme = document.getElementById('focusMe');
12 elem_focusme.focus();
13
14 eventSender.keyDown("\t");
15 shouldBeEqualToString('document.activeElement.id','MoveToMe');
hayato 2014/09/12 06:24:13 You need a space after `,`: shouldBeEqualToStrin
yanagawa 2014/09/12 07:09:45 Done.
16 elem_focusme.focus();
17 eventSender.keyDown("\t",["shiftKey"]);
hayato 2014/09/12 06:24:13 Ditto
yanagawa 2014/09/12 07:09:45 Done.
18 shouldBeEqualToString('document.activeElement.id','MoveToMe');
hayato 2014/09/12 06:24:13 Ditto
yanagawa 2014/09/12 07:09:45 Done.
19 }
20 </script>
21 <body onload="test()">
22 <input id="MoveToMe" tabindex="1">
23 <input tabindex="-1">
24 <input id="focusMe" tabindex="-1">
25 <input tabindex="-1">
26 </body>
27
28
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698