| 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="../../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 an utterance a second time after gar
bage collection doesn't crash under ASAN."); | 12 description("This tests that cancelling an utterance a second time after gar
bage collection doesn't crash under ASAN."); |
| 13 | 13 |
| 14 if (window.internals) | 14 if (window.internals) |
| 15 window.internals.enableMockSpeechSynthesizer(document); | 15 window.internals.enableMockSpeechSynthesizer(window); |
| 16 | 16 |
| 17 speechSynthesis.speak(new SpeechSynthesisUtterance("Hello")); | 17 speechSynthesis.speak(new SpeechSynthesisUtterance("Hello")); |
| 18 speechSynthesis.cancel(); | 18 speechSynthesis.cancel(); |
| 19 window.gc(); | 19 window.gc(); |
| 20 speechSynthesis.cancel(); | 20 speechSynthesis.cancel(); |
| 21 | 21 |
| 22 </script> | 22 </script> |
| 23 | 23 |
| 24 </body> | 24 </body> |
| 25 </html> | 25 </html> |
| OLD | NEW |