mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-08 04:27:37 +00:00
37 lines
787 B
HTML
37 lines
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>
|