| OLD | NEW |
| 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> |
| OLD | NEW |