Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / events / tabindex-no-focusable.html
bloba356966bf8a4474a0b0c9427246fb13f37efb4ba
1 <script src="../../resources/js-test.js"></script>
2 <script>
3 if (window.testRunner)
4 testRunner.dumpAsText();
6 function test()
8 if (!window.testRunner)
9 return;
10 var elem_movetome = document.getElementById('MoveToMe');
11 var elem_focusme = document.getElementById('focusMe');
12 elem_focusme.focus();
14 eventSender.keyDown("\t");
15 shouldBeEqualToString('document.activeElement.id', 'MoveToMe');
16 elem_focusme.focus();
17 eventSender.keyDown("\t", ["shiftKey"]);
18 shouldBeEqualToString('document.activeElement.id', 'MoveToMe');
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>