Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(667)

Unified Diff: LayoutTests/fast/speechsynthesis/speech-synthesis-speak-invalid-argument-throws.html

Issue 99083002: WIP: Migrate generated bindings to new ExceptionState constructor. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase. Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/speechsynthesis/speech-synthesis-speak-invalid-argument-throws.html
diff --git a/LayoutTests/fast/speechsynthesis/speech-synthesis-speak-invalid-argument-throws.html b/LayoutTests/fast/speechsynthesis/speech-synthesis-speak-invalid-argument-throws.html
index 26411960a0672f309f4b627bfdd9d1718d8301ab..8ee0a797cdba925626fffeca73baf7bda25cee9c 100644
--- a/LayoutTests/fast/speechsynthesis/speech-synthesis-speak-invalid-argument-throws.html
+++ b/LayoutTests/fast/speechsynthesis/speech-synthesis-speak-invalid-argument-throws.html
@@ -15,11 +15,11 @@
description("This tests that passing an argument other than a SpeechSynthesisUtterance to speechSynthesis.speak throws a TypeError exception.");
shouldThrow("speechSynthesis.speak()", '"TypeError: Failed to execute \'speak\' on \'SpeechSynthesis\': 1 argument required, but only 0 present."');
- shouldThrow("speechSynthesis.speak(0)", '"TypeError: Invalid utterance argument"');
- shouldThrow("speechSynthesis.speak('')", '"TypeError: Invalid utterance argument"');
- shouldThrow("speechSynthesis.speak(document.body)", '"TypeError: Invalid utterance argument"');
- shouldThrow("speechSynthesis.speak({})", '"TypeError: Invalid utterance argument"');
- shouldThrow("speechSynthesis.speak((new SpeechSynthesisUtterance()).text = 'hello')", '"TypeError: Invalid utterance argument"');
+ shouldThrow("speechSynthesis.speak(0)", '"TypeError: Failed to execute \'speak\' on \'SpeechSynthesis\': Invalid utterance argument"');
+ shouldThrow("speechSynthesis.speak('')", '"TypeError: Failed to execute \'speak\' on \'SpeechSynthesis\': Invalid utterance argument"');
+ shouldThrow("speechSynthesis.speak(document.body)", '"TypeError: Failed to execute \'speak\' on \'SpeechSynthesis\': Invalid utterance argument"');
+ shouldThrow("speechSynthesis.speak({})", '"TypeError: Failed to execute \'speak\' on \'SpeechSynthesis\': Invalid utterance argument"');
+ shouldThrow("speechSynthesis.speak((new SpeechSynthesisUtterance()).text = 'hello')", '"TypeError: Failed to execute \'speak\' on \'SpeechSynthesis\': Invalid utterance argument"');
</script>

Powered by Google App Engine
This is Rietveld 408576698