| Index: chrome/test/data/speech/basic_recognition.html
|
| diff --git a/chrome/test/data/speech/basic_recognition.html b/chrome/test/data/speech/basic_recognition.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..ef0ccb18624334005a023722151a1c0c70dea2f8
|
| --- /dev/null
|
| +++ b/chrome/test/data/speech/basic_recognition.html
|
| @@ -0,0 +1,30 @@
|
| +<html>
|
| + <head>
|
| + <title>Speech input test</title>
|
| + <script type="text/javascript">
|
| + function onspeechresult(value) {
|
| + if (value == "Pictures of the moon") {
|
| + document.getElementById('status').innerHTML = 'PASS';
|
| + document.location = '#pass';
|
| + } else {
|
| + document.location = '#fail';
|
| + }
|
| + }
|
| + function run() {
|
| + // Send a click to the right corner of the input field where the speech
|
| + // button is rendered.
|
| + var inputField = document.getElementById('inputField');
|
| + var evt = document.createEvent('MouseEvents');
|
| + evt.initMouseEvent('click', true, true, window,
|
| + 0, 0, 0,
|
| + inputField.offsetWidth - 4, 4,
|
| + false, false, false, false, 0, null);
|
| + inputField.dispatchEvent(evt);
|
| + }
|
| + </script>
|
| + </head>
|
| + <body onLoad="run()">
|
| + <input id='inputField' speech onchange="onspeechresult(this.value);"><br>
|
| + <div id="status">FAIL</div>
|
| + </body>
|
| +</html>
|
|
|