1 This tests that passing an argument other than a SpeechSynthesisUtterance to speechSynthesis.speak throws a TypeError exception.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 PASS speechSynthesis.speak() threw exception TypeError: Failed to execute 'speak' on 'SpeechSynthesis': 1 argument required, but only 0 present..
7 PASS speechSynthesis.speak(0) threw exception TypeError: Failed to execute 'speak' on 'SpeechSynthesis': Invalid utterance argument.
8 PASS speechSynthesis.speak('') threw exception TypeError: Failed to execute 'speak' on 'SpeechSynthesis': Invalid utterance argument.
9 PASS speechSynthesis.speak(document.body) threw exception TypeError: Failed to execute 'speak' on 'SpeechSynthesis': Invalid utterance argument.
10 PASS speechSynthesis.speak({}) threw exception TypeError: Failed to execute 'speak' on 'SpeechSynthesis': Invalid utterance argument.
11 PASS speechSynthesis.speak((new SpeechSynthesisUtterance()).text = 'hello') threw exception TypeError: Failed to execute 'speak' on 'SpeechSynthesis': Invalid utterance argument.
12 PASS successfullyParsed is true