blob: 3d8dd266240d5bc3abe7085a433e12a749a55fc8 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src=video-test.js></script>
<script src=../resources/gc.js></script>
</head>
<body>
<div>Creating and immediately destroying an Audio element should not crash.</div>
<script>
runWithKeyDown(() => {
document.body.innerHTML = '<audio></audio>';
document.body.childNodes[0].play().catch(error => {});
document.body.innerHTML = '';
gc();
setTimeout(endTest, 100);
});
</script>
</div>
</body>
</html>