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

Side by Side Diff: LayoutTests/fast/speechsynthesis/speech-synthesis-boundary-events.html

Issue 38743004: Remove modules/speech dependencies from Internals. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: patch Created 7 years, 1 month 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
« no previous file with comments | « no previous file | LayoutTests/fast/speechsynthesis/speech-synthesis-cancel.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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="../js/resources/js-test-pre.js"></script> 4 <script src="../js/resources/js-test-pre.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 a speech job will generate the correct boundary events."); 12 description("This tests that a speech job will generate the correct boundary 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(); 18 window.internals.enableMockSpeechSynthesizer(document);
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.onboundary = function(event) { 27 u.onboundary = function(event) {
28 debug("Boundary event: " + event.name + ", Character index: " + event.cha rIndex); 28 debug("Boundary event: " + event.name + ", Character index: " + event.cha rIndex);
29 } 29 }
30 30
31 u.onend = function(event) { 31 u.onend = function(event) {
32 finishJSTest(); 32 finishJSTest();
33 } 33 }
34 34
35 // Queue the first job which will start speaking immediately. 35 // Queue the first job which will start speaking immediately.
36 speechSynthesis.speak(u); 36 speechSynthesis.speak(u);
37 37
38 </script> 38 </script>
39 39
40 <script src="../js/resources/js-test-post.js"></script> 40 <script src="../js/resources/js-test-post.js"></script>
41 </body> 41 </body>
42 </html> 42 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/speechsynthesis/speech-synthesis-cancel.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698