Pass | SpeechSynthesisErrorEvent with no arguments throws TypeError | Asserts runPass | assert_throws_js(function "function TypeError() { [native code] }", function "() => { new SpeechSynthesisErrorEvent(); }")
at Test.<anonymous> ( /speech-api/SpeechSynthesisErrorEvent-constructor.html:14:3) |
|
Pass | SpeechSynthesisErrorEvent with no eventInitDict throws TypeError | Asserts runPass | assert_throws_js(function "function TypeError() { [native code] }", function "() => { new SpeechSynthesisErrorEvent("type"); }")
at Test.<anonymous> ( /speech-api/SpeechSynthesisErrorEvent-constructor.html:20:3) |
|
Pass | SpeechSynthesisErrorEvent with empty eventInitDict throws TypeError (requires
utterance and error) | Asserts runPass | assert_throws_js(function "function TypeError() { [native code] }", function "() => { new SpeechSynthesisErrorEvent("type", {}); }")
at Test.<anonymous> ( /speech-api/SpeechSynthesisErrorEvent-constructor.html:26:3) |
|
Pass | SpeechSynthesisErrorEvent with eventInitDict without utterance throws
TypeError | Asserts runPass | assert_throws_js(function "function TypeError() { [native code] }", function "() => { new SpeechSynthesisErrorEvent("type", {error:"not-allowed"}); }")
at Test.<anonymous> ( /speech-api/SpeechSynthesisErrorEvent-constructor.html:33:3) |
|
Pass | SpeechSynthesisErrorEvent with eventInitDict without error throws
TypeError | Asserts runPass | assert_throws_js(function "function TypeError() { [native code] }", function "() => { new SpeechSynthesisErrorEvent("type", {utterance: new SpeechSynthesisUtterance()}); }")
at Test.<anonymous> ( /speech-api/SpeechSynthesisErrorEvent-constructor.html:40:3) |
|
Pass | SpeechSynthesisErrorEvent with eventInitDict having utterance and error | Asserts runPass | assert_equals(object "[object SpeechSynthesisUtterance]", object "[object SpeechSynthesisUtterance]")
at Test.<anonymous> ( /speech-api/SpeechSynthesisErrorEvent-constructor.html:49:3) | Pass | assert_equals("not-allowed", "not-allowed")
at Test.<anonymous> ( /speech-api/SpeechSynthesisErrorEvent-constructor.html:50:3) | Pass | assert_equals(0, 0)
at Test.<anonymous> ( /speech-api/SpeechSynthesisErrorEvent-constructor.html:51:3) | Pass | assert_equals(0, 0)
at Test.<anonymous> ( /speech-api/SpeechSynthesisErrorEvent-constructor.html:52:3) | Pass | assert_equals("", "")
at Test.<anonymous> ( /speech-api/SpeechSynthesisErrorEvent-constructor.html:53:3) |
|
Pass | SpeechSynthesisErrorEvent with custom eventInitDict | Asserts runPass | assert_equals(false, false)
at Test.<anonymous> ( /speech-api/SpeechSynthesisErrorEvent-constructor.html:65:3) | Pass | assert_equals(false, false)
at Test.<anonymous> ( /speech-api/SpeechSynthesisErrorEvent-constructor.html:66:3) | Pass | assert_equals("type", "type")
at Test.<anonymous> ( /speech-api/SpeechSynthesisErrorEvent-constructor.html:67:3) | Pass | assert_equals(object "[object SpeechSynthesisUtterance]", object "[object SpeechSynthesisUtterance]")
at Test.<anonymous> ( /speech-api/SpeechSynthesisErrorEvent-constructor.html:68:3) | Pass | assert_equals(5, 5)
at Test.<anonymous> ( /speech-api/SpeechSynthesisErrorEvent-constructor.html:69:3) | Pass | assert_equals(100, 100)
at Test.<anonymous> ( /speech-api/SpeechSynthesisErrorEvent-constructor.html:70:3) | Pass | assert_equals("foo", "foo")
at Test.<anonymous> ( /speech-api/SpeechSynthesisErrorEvent-constructor.html:71:3) | Pass | assert_equals("synthesis-failed", "synthesis-failed")
at Test.<anonymous> ( /speech-api/SpeechSynthesisErrorEvent-constructor.html:72:3) |
|
Pass | SpeechSynthesisErrorEvent with wrong error enum | Asserts runPass | assert_throws_js(function "function TypeError() { [native code] }", function "() => { new SpeechSynthesisErrorEvent("type", { utterance: new SpeechSynthesisUtterance(), error: error }); }")
at Test.<anonymous> ( /speech-api/SpeechSynthesisErrorEvent-constructor.html:84:3) | Pass | assert_throws_js(function "function TypeError() { [native code] }", function "() => { new SpeechSynthesisErrorEvent("type", { utterance: new SpeechSynthesisUtterance(), error: error }); }")
at Test.<anonymous> ( /speech-api/SpeechSynthesisErrorEvent-constructor.html:85:3) | Pass | assert_throws_js(function "function TypeError() { [native code] }", function "() => { new SpeechSynthesisErrorEvent("type", { utterance: new SpeechSynthesisUtterance(), error: error }); }")
at Test.<anonymous> ( /speech-api/SpeechSynthesisErrorEvent-constructor.html:86:3) |
|