blob: c1f3558ea8d6b1d028f3c41bbe463070972b5f06 [file] [log] [blame]
<!doctype html>
<html>
<head>
<title>Test GC of Stopped OscillatorNode </title>
<script src="../../resources/gc.js"></script>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script src="../resources/audit-util.js"></script>
<script src="../resources/audit.js"></script>
<script src="stopped-source-test.js"></script>
</head>
<body>
<script>
let audit = Audit.createTaskRunner();
const nodesToTest = 100;
audit.define('Test GC of Stopped Oscillators', (task, should) => {
let context = new AudioContext();
testStoppedSourceGC(task, should, {
context: context,
nodeName: 'OscillatorNode',
constructorMethod: () => { return new OscillatorNode(context); },
numberOfNodes: 100
});
});
audit.run();
</script>
</body>
</html>