OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../js/resources/js-test-pre.js"></script> | 4 <script src="../../resources/js-test.js"></script> |
5 </head> | 5 </head> |
6 <body> | 6 <body> |
7 <script type="text/javascript"> | 7 <script type="text/javascript"> |
8 description('Tests for the ontextInput event with <input type="text" speech>.
'); | 8 description('Tests for the ontextInput event with <input type="text" speech>.
'); |
9 | 9 |
10 function onTextInput() { | 10 function onTextInput() { |
11 shouldBeEqualToString('document.getElementById("speechInput").value', ''); | 11 shouldBeEqualToString('document.getElementById("speechInput").value', ''); |
12 shouldBeEqualToString('window.event.data', 'Green eggs and ham'); | 12 shouldBeEqualToString('window.event.data', 'Green eggs and ham'); |
13 | 13 |
14 // Set to undefined to make this test fail if it's implemented, so it can be
properly set to the correct value once it's available. | 14 // Set to undefined to make this test fail if it's implemented, so it can be
properly set to the correct value once it's available. |
(...skipping 18 matching lines...) Expand all Loading... |
33 eventSender.mouseUp(); | 33 eventSender.mouseUp(); |
34 } | 34 } |
35 } | 35 } |
36 | 36 |
37 window.onload = run; | 37 window.onload = run; |
38 window.jsTestIsAsync = true; | 38 window.jsTestIsAsync = true; |
39 </script> | 39 </script> |
40 <input id='speechInput' x-webkit-speech> | 40 <input id='speechInput' x-webkit-speech> |
41 </body> | 41 </body> |
42 </html> | 42 </html> |
OLD | NEW |