Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(124)

Side by Side Diff: chrome/test/data/speech/basic_recognition.html

Issue 10703141: End-to-end browser tests for speech recognition. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Moved test to /chrome/test Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/test/base/ui_test_utils.cc ('k') | chrome/test/data/speech/grammar_attribute.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <title>Speech input test</title> 3 <title>Speech input test</title>
4 <script type="text/javascript"> 4 <script type="text/javascript">
5 function onspeechresult(value) { 5 function onspeechresult(value) {
6 if (value == "Pictures of the moon") { 6 if (value == "Pictures of the moon") {
7 document.getElementById('status').innerHTML = 'PASS'; 7 document.getElementById('status').innerHTML = 'PASS';
8 document.location = '#pass'; 8 document.location = '#pass';
9 } else { 9 } else {
10 document.location = '#fail'; 10 document.location = '#fail';
11 } 11 }
12 } 12 }
13 </script> 13 </script>
14 </head> 14 </head>
15 <body style="padding:0; margin:0;"> 15 <body style="padding:0; margin:0;">
16 <input id='inputField' x-webkit-speech 16 <input id='inputField' x-webkit-speech
17 x-webkit-grammar="http://example.com/grammar.xml"
17 onwebkitspeechchange="onspeechresult(this.value);" 18 onwebkitspeechchange="onspeechresult(this.value);"
18 onchange="onspeechresult(this.value);" 19 onchange="onspeechresult(this.value);"
19 style="position:absolute; margin:0; padding:0; border:0; width:10px;" > 20 style="position:absolute; margin:0; padding:0; border:0; width:10px;" >
20 <br> 21 <br>
21 <div id="status">FAIL</div> 22 <div id="status">FAIL</div>
22 </body> 23 </body>
23 </html> 24 </html>
OLDNEW
« no previous file with comments | « chrome/test/base/ui_test_utils.cc ('k') | chrome/test/data/speech/grammar_attribute.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698