gecko-dev/dom/media/webaudio/test/test_bug866737.html

37 строки
787 B
HTML

<!DOCTYPE HTML>
<html>
<head>
<title>Test for bug 866737</title>
<script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<body>
<pre id="test">
<script class="testbody" type="text/javascript">
var context = new AudioContext();
(function() {
var d = context.createDelay();
var panner = context.createPanner();
d.connect(panner);
var gain = context.createGain();
panner.connect(gain);
gain.connect(context.destination);
gain.disconnect(0);
})();
SpecialPowers.forceGC();
SpecialPowers.forceCC();
var gain = context.createGain();
gain.connect(context.destination);
gain.disconnect(0);
ok(true, "No crashes should happen!");
</script>
</pre>
</body>
</html>