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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/speechsynthesis/speech-synthesis-speak-invalid-argument-throws.html

Issue 1481163002: Drop [LegacyInterfaceTypeChecking] for SpeechSynthesis.prototype.speak (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update tests Created 5 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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../resources/js-test.js"></script> 4 <script src="../../resources/js-test.js"></script>
5 </head> 5 </head>
6 <body id="body"> 6 <body id="body">
7 7
8 <div id="console"></div> 8 <div id="console"></div>
9 9
10 <script> 10 <script>
11 11
12 if (window.internals) 12 if (window.internals)
13 window.internals.enableMockSpeechSynthesizer(document); 13 window.internals.enableMockSpeechSynthesizer(document);
14 14
15 description("This tests that passing an argument other than a SpeechSynthesi sUtterance to speechSynthesis.speak throws a TypeError exception."); 15 description("This tests that passing an argument other than a SpeechSynthesi sUtterance to speechSynthesis.speak throws a TypeError exception.");
16 16
17 shouldThrow("speechSynthesis.speak()", '"TypeError: Failed to execute \'spea k\' on \'SpeechSynthesis\': 1 argument required, but only 0 present."'); 17 shouldThrow("speechSynthesis.speak()");
18 shouldThrow("speechSynthesis.speak(0)", '"TypeError: Failed to execute \'spe ak\' on \'SpeechSynthesis\': Invalid utterance argument"'); 18 shouldThrow("speechSynthesis.speak(0)");
19 shouldThrow("speechSynthesis.speak('')", '"TypeError: Failed to execute \'sp eak\' on \'SpeechSynthesis\': Invalid utterance argument"'); 19 shouldThrow("speechSynthesis.speak('')");
20 shouldThrow("speechSynthesis.speak(document.body)", '"TypeError: Failed to e xecute \'speak\' on \'SpeechSynthesis\': Invalid utterance argument"'); 20 shouldThrow("speechSynthesis.speak(document.body)");
21 shouldThrow("speechSynthesis.speak({})", '"TypeError: Failed to execute \'sp eak\' on \'SpeechSynthesis\': Invalid utterance argument"'); 21 shouldThrow("speechSynthesis.speak({})");
22 shouldThrow("speechSynthesis.speak((new SpeechSynthesisUtterance()).text = ' hello')", '"TypeError: Failed to execute \'speak\' on \'SpeechSynthesis\': Inval id utterance argument"'); 22 shouldThrow("speechSynthesis.speak((new SpeechSynthesisUtterance()).text = ' hello')");
23 23
24 </script> 24 </script>
25 25
26 </body> 26 </body>
27 </html> 27 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/speechsynthesis/speech-synthesis-speak-invalid-argument-throws-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698