Summary

Harness status: OK

Found 8 tests

Details

ResultTest NameMessage
PassSpeechSynthesisErrorEvent with no arguments throws TypeError
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "() => {     new SpeechSynthesisErrorEvent();   }")
    at Test.<anonymous> ( /speech-api/SpeechSynthesisErrorEvent-constructor.html:14:3)
PassSpeechSynthesisErrorEvent with no eventInitDict throws TypeError
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "() => {     new SpeechSynthesisErrorEvent("type");   }")
    at Test.<anonymous> ( /speech-api/SpeechSynthesisErrorEvent-constructor.html:20:3)
PassSpeechSynthesisErrorEvent with empty eventInitDict throws TypeError (requires utterance and error)
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "() => {     new SpeechSynthesisErrorEvent("type", {});   }")
    at Test.<anonymous> ( /speech-api/SpeechSynthesisErrorEvent-constructor.html:26:3)
PassSpeechSynthesisErrorEvent with eventInitDict without utterance throws TypeError
Asserts run
Pass
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)
PassSpeechSynthesisErrorEvent with eventInitDict without error throws TypeError
Asserts run
Pass
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)
PassSpeechSynthesisErrorEvent with eventInitDict having utterance and error
Asserts run
Pass
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)
PassSpeechSynthesisErrorEvent with custom eventInitDict
Asserts run
Pass
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)
PassSpeechSynthesisErrorEvent with wrong error enum
Asserts run
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: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)