IndexedDBFactory now ForceCloses databases.
[chromium-blink-merge.git] / content / test / data / speech / grammar_attribute.html
blob393d68a8d178e3b64895ec11a89886c1a20f1e7a
1 <html>
2 <head>
3 <title>Speech input with grammar attribute test</title>
4 <script type="text/javascript">
5 function onspeechresult(value) {
6 if (value == "Pictures of the moon") {
7 document.getElementById('status').innerHTML = 'PASS';
8 document.location = '#pass';
9 } else {
10 document.location = '#fail';
13 </script>
14 </head>
15 <body style="padding:0; margin:0;">
16 <input id='inputField' x-webkit-speech
17 x-webkit-grammar="http://example.com/grammar.xml"
18 onwebkitspeechchange="onspeechresult(this.value);"
19 onchange="onspeechresult(this.value);"
20 style="position:absolute; margin:0; padding:0; border:0; width:10px;">
21 <br>
22 <div id="status">FAIL</div>
23 <script>document.getElementById('inputField').focus();</script>
24 </body>
25 </html>