Chromium Code Reviews| 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..23868a29c68a7434c0633cc99655c61eb2042330 |
| --- /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'); |
|
hayato
2014/09/12 06:24:13
You need a space after `,`:
shouldBeEqualToStrin
yanagawa
2014/09/12 07:09:45
Done.
|
| + elem_focusme.focus(); |
| + eventSender.keyDown("\t",["shiftKey"]); |
|
hayato
2014/09/12 06:24:13
Ditto
yanagawa
2014/09/12 07:09:45
Done.
|
| + shouldBeEqualToString('document.activeElement.id','MoveToMe'); |
|
hayato
2014/09/12 06:24:13
Ditto
yanagawa
2014/09/12 07:09:45
Done.
|
| +} |
| +</script> |
| +<body onload="test()"> |
| +<input id="MoveToMe" tabindex="1"> |
| +<input tabindex="-1"> |
| +<input id="focusMe" tabindex="-1"> |
| +<input tabindex="-1"> |
| +</body> |
| + |
| + |