blob: b212f472c56ba72aeb7f06c0fa51271842b3456a [file] [log] [blame]
This tests the constructor for the SpeechRecognitionEvent DOM class.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS new webkitSpeechRecognitionEvent('eventType').bubbles is false
PASS new webkitSpeechRecognitionEvent('eventType').cancelable is false
PASS new webkitSpeechRecognitionEvent('eventType').results is null
PASS new webkitSpeechRecognitionEvent('eventType').resultIndex is 0
PASS new webkitSpeechRecognitionEvent('eventType', { bubbles: false }).bubbles is false
PASS new webkitSpeechRecognitionEvent('eventType', { bubbles: true }).bubbles is true
PASS new webkitSpeechRecognitionEvent('eventType', { cancelable: false }).cancelable is false
PASS new webkitSpeechRecognitionEvent('eventType', { cancelable: true }).cancelable is true
PASS new webkitSpeechRecognitionEvent('eventType', { resultIndex: 42 }).resultIndex is 42
PASS successfullyParsed is true
TEST COMPLETE