OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script src="../../fast/js/resources/js-test-pre.js"></script> | 3 <script src="../../resources/js-test.js"></script> |
4 <style> | 4 <style> |
5 body[style] { } | 5 body[style] { } |
6 </style> | 6 </style> |
7 </head> | 7 </head> |
8 <body> | 8 <body> |
9 <textarea id="target"></textarea> | 9 <textarea id="target"></textarea> |
10 <div>The text field should accept typed characters.</div> | 10 <div>The text field should accept typed characters.</div> |
11 <pre id="console"></pre> | 11 <pre id="console"></pre> |
12 <script> | 12 <script> |
13 document.getElementById("target").addEventListener("textInput", function (evt) {
evt.target.style.width = 100; }); | 13 document.getElementById("target").addEventListener("textInput", function (evt) {
evt.target.style.width = 100; }); |
(...skipping 10 matching lines...) Expand all Loading... |
24 eventSender.keyDown("o"); | 24 eventSender.keyDown("o"); |
25 shouldBe("window.target.value", '"hello"'); | 25 shouldBe("window.target.value", '"hello"'); |
26 finishJSTest(); | 26 finishJSTest(); |
27 }, 0); | 27 }, 0); |
28 } | 28 } |
29 | 29 |
30 window.jsTestIsAsync = true; | 30 window.jsTestIsAsync = true; |
31 </script> | 31 </script> |
32 </body> | 32 </body> |
33 </html> | 33 </html> |
OLD | NEW |