blob: a84df49a1667e3848da95122e26dad8740b11ae7 [file] [log] [blame]
<!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();
description("This tests that there isn't a crash if the utterance object is garbage-collected before speaking finishes.");
window.jsTestIsAsync = true;
speechSynthesis.speak(new SpeechSynthesisUtterance("test"));
gc();
window.setInterval(function() {
if (!speechSynthesis.speaking)
finishJSTest();
}, 10);
</script>
<script src="../../resources/js-test-post.js"></script>
</body>
</html>