| OLD | NEW |
| 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| 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 speech button click with <input type="text" speech>.')
; | 8 description('Tests for speech button click with <input type="text" speech>.')
; |
| 9 | 9 |
| 10 function onSpeechChange() { | 10 function onSpeechChange() { |
| 11 // Since we requested dumpRect, the rect comes back as the speech result. | 11 // Since we requested dumpRect, the rect comes back as the speech result. |
| 12 var rect = input.value.split(','); | 12 var rect = input.value.split(','); |
| 13 var x = parseInt(rect[0]); | 13 var x = parseInt(rect[0]); |
| 14 var y = parseInt(rect[1]); | 14 var y = parseInt(rect[1]); |
| (...skipping 30 matching lines...) Expand all Loading... |
| 45 } | 45 } |
| 46 } | 46 } |
| 47 | 47 |
| 48 window.onload = run; | 48 window.onload = run; |
| 49 window.jsTestIsAsync = true; | 49 window.jsTestIsAsync = true; |
| 50 </script> | 50 </script> |
| 51 <iframe id="iframe"> | 51 <iframe id="iframe"> |
| 52 </body> | 52 </body> |
| 53 </html> | 53 </html> |
| 54 | 54 |
| OLD | NEW |