1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/content/media/webaudio/test/test_bug866737.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,36 @@ 1.4 +<!DOCTYPE HTML> 1.5 +<html> 1.6 +<head> 1.7 + <title>Test for bug 866737</title> 1.8 + <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> 1.9 + <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" /> 1.10 +</head> 1.11 +<body> 1.12 +<pre id="test"> 1.13 +<script class="testbody" type="text/javascript"> 1.14 + 1.15 +var context = new AudioContext(); 1.16 + 1.17 +(function() { 1.18 + var d = context.createDelay(); 1.19 + var panner = context.createPanner(); 1.20 + d.connect(panner); 1.21 + var gain = context.createGain(); 1.22 + panner.connect(gain); 1.23 + gain.connect(context.destination); 1.24 + gain.disconnect(0); 1.25 +})(); 1.26 + 1.27 +SpecialPowers.forceGC(); 1.28 +SpecialPowers.forceCC(); 1.29 + 1.30 +var gain = context.createGain(); 1.31 +gain.connect(context.destination); 1.32 +gain.disconnect(0); 1.33 + 1.34 +ok(true, "No crashes should happen!"); 1.35 + 1.36 +</script> 1.37 +</pre> 1.38 +</body> 1.39 +</html>