blob: 039b42402787a28d5b6609cf9466531408b0cb35 [file] [log] [blame]
FAIL SpeechSynthesisErrorEvent with no arguments throws TypeError assert_throws_js: function "() => {
new SpeechSynthesisErrorEvent();
}" threw object "ReferenceError: Can't find variable: SpeechSynthesisErrorEvent" ("ReferenceError") expected instance of function "function TypeError() {
[native code]
}" ("TypeError")
FAIL SpeechSynthesisErrorEvent with no eventInitDict throws TypeError assert_throws_js: function "() => {
new SpeechSynthesisErrorEvent("type");
}" threw object "ReferenceError: Can't find variable: SpeechSynthesisErrorEvent" ("ReferenceError") expected instance of function "function TypeError() {
[native code]
}" ("TypeError")
FAIL SpeechSynthesisErrorEvent with empty eventInitDict throws TypeError (requires
utterance and error) assert_throws_js: function "() => {
new SpeechSynthesisErrorEvent("type", {});
}" threw object "ReferenceError: Can't find variable: SpeechSynthesisErrorEvent" ("ReferenceError") expected instance of function "function TypeError() {
[native code]
}" ("TypeError")
FAIL SpeechSynthesisErrorEvent with eventInitDict without utterance throws
TypeError assert_throws_js: function "() => {
new SpeechSynthesisErrorEvent("type", {error:"not-allowed"});
}" threw object "ReferenceError: Can't find variable: SpeechSynthesisErrorEvent" ("ReferenceError") expected instance of function "function TypeError() {
[native code]
}" ("TypeError")
FAIL SpeechSynthesisErrorEvent with eventInitDict without error throws
TypeError assert_throws_js: function "() => {
new SpeechSynthesisErrorEvent("type", {utterance: new SpeechSynthesisUtterance()});
}" threw object "ReferenceError: Can't find variable: SpeechSynthesisErrorEvent" ("ReferenceError") expected instance of function "function TypeError() {
[native code]
}" ("TypeError")
FAIL SpeechSynthesisErrorEvent with eventInitDict having utterance and error Can't find variable: SpeechSynthesisErrorEvent
FAIL SpeechSynthesisErrorEvent with custom eventInitDict Can't find variable: SpeechSynthesisErrorEvent
FAIL SpeechSynthesisErrorEvent with wrong error enum assert_throws_js: function "() => {
new SpeechSynthesisErrorEvent("type", {
utterance: new SpeechSynthesisUtterance(),
error: error
});
}" threw object "ReferenceError: Can't find variable: SpeechSynthesisErrorEvent" ("ReferenceError") expected instance of function "function TypeError() {
[native code]
}" ("TypeError")