Chromium Code Reviews| OLD | NEW |
|---|---|
| (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_focusme = document.getElementById('focusMe'); | |
| 11 elem_focusme.focus(); | |
| 12 | |
| 13 eventSender.keyDown("\t"); | |
| 14 shouldBeEqualToString('document.activeElement.id','focusMe'); | |
|
hayato
2014/09/12 06:24:13
Ditto
yanagawa
2014/09/12 07:09:45
Done.
| |
| 15 elem_focusme.focus(); | |
| 16 eventSender.keyDown("\t",["shiftKey"]); | |
|
hayato
2014/09/12 06:24:13
Ditto
yanagawa
2014/09/12 07:09:45
Done.
| |
| 17 shouldBeEqualToString('document.activeElement.id','focusMe'); | |
|
hayato
2014/09/12 06:24:13
Ditto
yanagawa
2014/09/12 07:09:45
Done.
| |
| 18 } | |
| 19 </script> | |
| 20 <body onload="test()"> | |
| 21 <input tabindex="-1"> | |
| 22 <input id="focusMe" tabindex="-1"> | |
| 23 <input tabindex="-1"> | |
| 24 </body> | |
| 25 | |
| OLD | NEW |