Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / speechsynthesis / speech-synthesis-cancel-twice.html
blobec23fc63334ce3eb0307a88f0ce61699d58a0e72
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../../resources/js-test.js"></script>
5 </head>
6 <body id="body">
8 <div id="console"></div>
10 <script>
12 description("This tests that cancelling an utterance a second time after garbage collection doesn't crash under ASAN.");
14 if (window.internals)
15 window.internals.enableMockSpeechSynthesizer(document);
17 speechSynthesis.speak(new SpeechSynthesisUtterance("Hello"));
18 speechSynthesis.cancel();
19 window.gc();
20 speechSynthesis.cancel();
22 </script>
24 </body>
25 </html>