Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / speechsynthesis / speech-synthesis-cancel-twice.html
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">
7
8 <div id="console"></div>
9
10 <script>
11
12     description("This tests that cancelling an utterance a second time after garbage collection doesn't crash under ASAN.");
13
14     if (window.internals)
15         window.internals.enableMockSpeechSynthesizer(document);
16
17     speechSynthesis.speak(new SpeechSynthesisUtterance("Hello"));
18     speechSynthesis.cancel();
19     window.gc();
20     speechSynthesis.cancel();
21
22 </script>
23
24 </body>
25 </html>