| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script src="../js/resources/js-test-pre.js"></script> | 3 <script src="../../resources/js-test.js"></script> |
| 4 </head> | 4 </head> |
| 5 <body> | 5 <body> |
| 6 <p id="description"></p> | 6 <p id="description"></p> |
| 7 <input id="input1" type="text"></input> | 7 <input id="input1" type="text"></input> |
| 8 <input id="input2" type="text"></input> | 8 <input id="input2" type="text"></input> |
| 9 <input id="input3" type="text"></input> | 9 <input id="input3" type="text"></input> |
| 10 <script> | 10 <script> |
| 11 jsTestIsAsync = true; | 11 jsTestIsAsync = true; |
| 12 | 12 |
| 13 description("Checks that the relatedTarget attribute for FocusEvent objects is b
eing set correctly when focusin/focusout events are dispatched. <b>Press tab fo
ur times</b> to dispatch a focusin and focusout event for each of the inputs bel
ow."); | 13 description("Checks that the relatedTarget attribute for FocusEvent objects is b
eing set correctly when focusin/focusout events are dispatched. <b>Press tab fo
ur times</b> to dispatch a focusin and focusout event for each of the inputs bel
ow."); |
| (...skipping 11 matching lines...) Expand all Loading... |
| 25 input2.addEventListener("focus", function(event) { shouldBe('event.relatedTarget
', 'input1'); }); | 25 input2.addEventListener("focus", function(event) { shouldBe('event.relatedTarget
', 'input1'); }); |
| 26 input2.addEventListener("blur", function(event) { shouldBe('event.relatedTarget'
, 'input3'); finishJSTest(); }); | 26 input2.addEventListener("blur", function(event) { shouldBe('event.relatedTarget'
, 'input3'); finishJSTest(); }); |
| 27 | 27 |
| 28 input1.focus(); | 28 input1.focus(); |
| 29 for (var i = 0; i < 2; i++) { | 29 for (var i = 0; i < 2; i++) { |
| 30 eventSender.keyDown('\t'); | 30 eventSender.keyDown('\t'); |
| 31 } | 31 } |
| 32 </script> | 32 </script> |
| 33 </body> | 33 </body> |
| 34 </html> | 34 </html> |
| OLD | NEW |