test_bug866737.html (764B)
1 <!DOCTYPE HTML> 2 <html> 3 <head> 4 <title>Test for bug 866737</title> 5 <script src="/tests/SimpleTest/SimpleTest.js"></script> 6 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" /> 7 </head> 8 <body> 9 <pre id="test"> 10 <script class="testbody" type="text/javascript"> 11 12 var context = new AudioContext(); 13 14 (function() { 15 var d = context.createDelay(); 16 var panner = context.createPanner(); 17 d.connect(panner); 18 var gain = context.createGain(); 19 panner.connect(gain); 20 gain.connect(context.destination); 21 gain.disconnect(0); 22 })(); 23 24 SpecialPowers.forceGC(); 25 SpecialPowers.forceCC(); 26 27 var gain = context.createGain(); 28 gain.connect(context.destination); 29 gain.disconnect(0); 30 31 ok(true, "No crashes should happen!"); 32 33 </script> 34 </pre> 35 </body> 36 </html>