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 startSpeechInput(id) { | 10 function startSpeechInput(id) { |
11 // Clicking the speech button should fill in mock speech-recognized text. | 11 // Clicking the speech button should fill in mock speech-recognized text. |
12 debug('Clicking on speech button.'); | 12 debug('Clicking on speech button.'); |
13 var input = document.getElementById(id); | 13 var input = document.getElementById(id); |
14 var isRTL = input.dir == 'rtl'; | 14 var isRTL = input.dir == 'rtl'; |
(...skipping 29 matching lines...) Expand all Loading... |
44 finishJSTest(); | 44 finishJSTest(); |
45 } | 45 } |
46 | 46 |
47 window.onload = run; | 47 window.onload = run; |
48 window.jsTestIsAsync = true; | 48 window.jsTestIsAsync = true; |
49 </script> | 49 </script> |
50 <input id='input1' x-webkit-speech onfocus="onFocus()" onwebkitspeechchange="onS
peechChange()"> | 50 <input id='input1' x-webkit-speech onfocus="onFocus()" onwebkitspeechchange="onS
peechChange()"> |
51 <input id='input2'> | 51 <input id='input2'> |
52 </body> | 52 </body> |
53 </html> | 53 </html> |
OLD | NEW |