| <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| <script src="../js/resources/js-test-pre.js"></script> |
| <script type="text/javascript"> |
| description('Tests for SpeechInputResultList\' behavior with too few arguments.'); |
| var speechInputCreatedByScript = false; |
| function onWebkitSpeechChange() { |
| shouldThrow('window.event.results.item()'); |
| if (!window.layoutTestController || !window.eventSender) |
| layoutTestController.addMockSpeechInputResult('Pictures of the moon', 1.0, ''); |
| var input = document.getElementById('speechInput'); |
| input.addEventListener('webkitspeechchange', onWebkitSpeechChange); |
| var x = input.offsetLeft + input.offsetWidth - 8; |
| var y = input.offsetTop + input.offsetHeight / 2; |
| eventSender.mouseMoveTo(x, y); |
| window.jsTestIsAsync = true; |
| window.successfullyParsed = true; |
| <script src="../js/resources/js-test-post.js"></script> |
| <input id='speechInput' x-webkit-speech> |