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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/speechsynthesis/speech-synthesis-speak-multiple.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> 1 <!DOCTYPE HTML>
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> 6 <body>
7 <script> 7 <script>
8 description("This tests that multiple speak utterances are handled in sequen ce."); 8 description("This tests that multiple speak utterances are handled in sequen ce.");
9 9
10 if (window.internals) 10 if (window.internals)
11 window.internals.enableMockSpeechSynthesizer(document); 11 window.internals.enableMockSpeechSynthesizer(window);
12 12
13 if (window.testRunner) 13 if (window.testRunner)
14 testRunner.waitUntilDone(); 14 testRunner.waitUntilDone();
15 15
16 window.jsTestIsAsync = true; 16 window.jsTestIsAsync = true;
17 17
18 var count = 3; 18 var count = 3;
19 var i = 0; 19 var i = 0;
20 20
21 // Start a very short speaking job that will finish quickly. 21 // Start a very short speaking job that will finish quickly.
(...skipping 18 matching lines...) Expand all
40 var finishingUtterance = new SpeechSynthesisUtterance(" "); 40 var finishingUtterance = new SpeechSynthesisUtterance(" ");
41 finishingUtterance.onend = finishJSTest; 41 finishingUtterance.onend = finishJSTest;
42 42
43 shouldBeFalse("speechSynthesis.speaking"); 43 shouldBeFalse("speechSynthesis.speaking");
44 // Issue more utterances than where we break off. 44 // Issue more utterances than where we break off.
45 for (var j = 0; j < count + 2; ++j) 45 for (var j = 0; j < count + 2; ++j)
46 speechSynthesis.speak(u); 46 speechSynthesis.speak(u);
47 </script> 47 </script>
48 </body> 48 </body>
49 </html> 49 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698