<!DOCTYPE html>
<html>
<head>
<title>
audiosummingjunction-crash.html
</title>
<script src="../../resources/gc.js"></script>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script src="../resources/audit.js"></script>
</head>
<body>
<script id="layout-test-code">
let audit = Audit.createTaskRunner();
audit.define(
{
label: 'test',
description:
'Test connection from ChannelMerger to ' +
'MediaStreamAudioDestination'
},
async (task, should) => {
let context = new AudioContext();
let node = context.createChannelMerger(4);
node.connect(context.createMediaStreamDestination(), 0);
await asyncGC();
// Test passes if we get here because we didn't crash
should(true, 'Test survived GC')
.message('correctly', 'incorrectly');
context.close();
task.done();
});
audit.run();
</script>
</body>
</html>