blob: e8db6b76e8d41123020e4fe61004eb4e7f272fcd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
<!DOCTYPE HTML>
<html>
<head>
<title>Test for bug 866737</title>
<script 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>
|