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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/speechsynthesis/speech-synthesis-cancel.html

Issue 2618613006: Remove ContextClient from DOMWindowSpeechSynthesis (Closed)
Patch Set: temp Created 3 years, 11 months 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 description("This tests that cancelling a speech job fires the right events. "); 12 description("This tests that cancelling a speech job fires the right events. ");
13 13
14 if (window.testRunner) 14 if (window.testRunner)
15 testRunner.waitUntilDone(); 15 testRunner.waitUntilDone();
16 16
17 if (window.internals) 17 if (window.internals)
18 window.internals.enableMockSpeechSynthesizer(document); 18 window.internals.enableMockSpeechSynthesizer(window);
19 19
20 window.jsTestIsAsync = true; 20 window.jsTestIsAsync = true;
21 21
22 var u = new SpeechSynthesisUtterance("this is a test"); 22 var u = new SpeechSynthesisUtterance("this is a test");
23 u.onstart = function(event) { 23 u.onstart = function(event) {
24 debug("Speech started"); 24 debug("Speech started");
25 } 25 }
26 26
27 u.onerror = function(event) { 27 u.onerror = function(event) {
28 debug("Speech error received because we cancelled and speech should no lo nger be pending."); 28 debug("Speech error received because we cancelled and speech should no lo nger be pending.");
(...skipping 15 matching lines...) Expand all
44 // While we have two jobs, speech synthesis should report that it's pending. 44 // While we have two jobs, speech synthesis should report that it's pending.
45 shouldBeTrue("speechSynthesis.pending"); 45 shouldBeTrue("speechSynthesis.pending");
46 46
47 // Cancel speaking. 47 // Cancel speaking.
48 setTimeout("speechSynthesis.cancel()", 1); 48 setTimeout("speechSynthesis.cancel()", 1);
49 49
50 </script> 50 </script>
51 51
52 </body> 52 </body>
53 </html> 53 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698