| Index: LayoutTests/fast/speechsynthesis/speech-synthesis-gc-utterance-crash.html
|
| diff --git a/LayoutTests/fast/speechsynthesis/speech-synthesis-gc-utterance-crash.html b/LayoutTests/fast/speechsynthesis/speech-synthesis-gc-utterance-crash.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..17127222fb3fde6cfe154a802a3a6f40aa35769b
|
| --- /dev/null
|
| +++ b/LayoutTests/fast/speechsynthesis/speech-synthesis-gc-utterance-crash.html
|
| @@ -0,0 +1,33 @@
|
| +<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
|
| +<html>
|
| +<head>
|
| +<script src="../../resources/js-test.js"></script>
|
| +</head>
|
| +<body id="body">
|
| +
|
| +<div id="console"></div>
|
| +
|
| +<script>
|
| +
|
| + if (window.internals)
|
| + window.internals.enableMockSpeechSynthesizer(document);
|
| +
|
| + description("This tests that there isn't a crash if the utterance object is garbage-collected before speaking finishes.");
|
| +
|
| + if (window.testRunner)
|
| + testRunner.waitUntilDone();
|
| +
|
| + window.jsTestIsAsync = true;
|
| +
|
| + speechSynthesis.speak(new SpeechSynthesisUtterance(" "));
|
| + gc();
|
| +
|
| + window.setInterval(function() {
|
| + if (!speechSynthesis.speaking)
|
| + finishJSTest();
|
| + }, 10);
|
| +
|
| +</script>
|
| +
|
| +</body>
|
| +</html>
|
|
|