Summary

Harness status: OK

Found 6 tests

Details

ResultTest NameMessage
PassSpeechSynthesisEvent with no arguments throws TypeError
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "() => {     new SpeechSynthesisEvent();   }")
    at Test.<anonymous> ( /speech-api/SpeechSynthesisEvent-constructor.html:17:3)
PassSpeechSynthesisEvent with no eventInitDict throws TypeError
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "() => {     new SpeechSynthesisEvent("type");   }")
    at Test.<anonymous> ( /speech-api/SpeechSynthesisEvent-constructor.html:23:3)
PassSpeechSynthesisEvent with empty eventInitDict throws TypeError (requires utterance)
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "() => {     new SpeechSynthesisEvent("type", {});   }")
    at Test.<anonymous> ( /speech-api/SpeechSynthesisEvent-constructor.html:29:3)
PassSpeechSynthesisEvent with eventInitDict not having utterance throws TypeError
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "() => {     new SpeechSynthesisEvent("type", {charIndex: 10, elapsedTime: 50, name:"foo"});   }")
    at Test.<anonymous> ( /speech-api/SpeechSynthesisEvent-constructor.html:36:3)
PassSpeechSynthesisEvent with eventInitDict having an utterance
Asserts run
Pass
assert_equals(object "[object SpeechSynthesisUtterance]", object "[object SpeechSynthesisUtterance]")
    at Test.<anonymous> ( /speech-api/SpeechSynthesisEvent-constructor.html:45:3)
Pass
assert_equals(0, 0)
    at Test.<anonymous> ( /speech-api/SpeechSynthesisEvent-constructor.html:46:3)
Pass
assert_equals(0, 0)
    at Test.<anonymous> ( /speech-api/SpeechSynthesisEvent-constructor.html:47:3)
Pass
assert_equals(0, 0)
    at Test.<anonymous> ( /speech-api/SpeechSynthesisEvent-constructor.html:48:3)
Pass
assert_equals("", "")
    at Test.<anonymous> ( /speech-api/SpeechSynthesisEvent-constructor.html:49:3)
PassSpeechSynthesisEvent with custom eventInitDict
Asserts run
Pass
assert_equals(false, false)
    at Test.<anonymous> ( /speech-api/SpeechSynthesisEvent-constructor.html:61:3)
Pass
assert_equals(false, false)
    at Test.<anonymous> ( /speech-api/SpeechSynthesisEvent-constructor.html:62:3)
Pass
assert_equals("type", "type")
    at Test.<anonymous> ( /speech-api/SpeechSynthesisEvent-constructor.html:63:3)
Pass
assert_equals(object "[object SpeechSynthesisUtterance]", object "[object SpeechSynthesisUtterance]")
    at Test.<anonymous> ( /speech-api/SpeechSynthesisEvent-constructor.html:64:3)
Pass
assert_equals(5, 5)
    at Test.<anonymous> ( /speech-api/SpeechSynthesisEvent-constructor.html:65:3)
Pass
assert_equals(3, 3)
    at Test.<anonymous> ( /speech-api/SpeechSynthesisEvent-constructor.html:66:3)
Pass
assert_equals(100, 100)
    at Test.<anonymous> ( /speech-api/SpeechSynthesisEvent-constructor.html:67:3)
Pass
assert_equals("foo", "foo")
    at Test.<anonymous> ( /speech-api/SpeechSynthesisEvent-constructor.html:68:3)