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

Side by Side Diff: LayoutTests/fast/speechsynthesis/speech-synthesis-voices-changed.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, 2 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="../js/resources/js-test-pre.js"></script> 4 <script src="../js/resources/js-test-pre.js"></script>
5 </head> 5 </head>
6 <body> 6 <body>
7 7
8 <div id="console"></div> 8 <div id="console"></div>
9 9
10 <script> 10 <script>
11 speechSynthesis.onvoiceschanged = function() { 11 speechSynthesis.onvoiceschanged = function() {
12 debug('Got onvoiceschanged event.'); 12 debug('Got onvoiceschanged event.');
13 } 13 }
14 14
15 var list = speechSynthesis.getVoices(); 15 var list = speechSynthesis.getVoices();
16 debug('Initially, there are ' + list.length + ' voices.'); 16 debug('Initially, there are ' + list.length + ' voices.');
17 17
18 if (window.internals) 18 if (window.internals)
19 window.internals.enableMockSpeechSynthesizer(); 19 window.internals.enableMockSpeechSynthesizer(document);
20 20
21 list = speechSynthesis.getVoices(); 21 list = speechSynthesis.getVoices();
22 debug('Now there are ' + list.length + ' voices.'); 22 debug('Now there are ' + list.length + ' voices.');
23 23
24 </script> 24 </script>
25 25
26 <script src="../js/resources/js-test-post.js"></script> 26 <script src="../js/resources/js-test-post.js"></script>
27 </body> 27 </body>
28 </html> 28 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/speechsynthesis/speech-synthesis-voices.html ('k') | Source/core/testing/Internals.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698