OLD | NEW |
(Empty) | |
| 1 <body onload="test()"> |
| 2 <iframe src="data:text/html,<body><input><script>document.getElementsByTagName('
input')[0].focus()</script></body>" height=40 width=200></iframe> |
| 3 <p>This field should look and act focused. Try to type into it: <input></p> |
| 4 <script> |
| 5 if (window.layoutTestController) |
| 6 layoutTestController.waitUntilDone(); |
| 7 |
| 8 function test() |
| 9 { |
| 10 document.getElementsByTagName("iframe")[0].focus(); |
| 11 frames[0].focus(); |
| 12 setTimeout('test2()', 10); |
| 13 } |
| 14 |
| 15 function test2() |
| 16 { |
| 17 focus(); |
| 18 document.getElementsByTagName("input")[0].focus() |
| 19 |
| 20 if (window.eventSender) { |
| 21 eventSender.keyDown('A'); |
| 22 |
| 23 var input = document.getElementsByTagName("input")[0]; |
| 24 if (input.value == "A") |
| 25 input.value = "PASS"; |
| 26 } |
| 27 |
| 28 if (window.layoutTestController) |
| 29 layoutTestController.notifyDone(); |
| 30 |
| 31 } |
| 32 </script> |
| 33 </body> |
OLD | NEW |