content/media/webaudio/test/test_bug875221.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/content/media/webaudio/test/test_bug875221.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,238 @@
     1.4 +<!DOCTYPE HTML>
     1.5 +<html>
     1.6 +<head>
     1.7 +  <title>Crashtest for bug 875221</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 +SimpleTest.waitForExplicitFinish();
    1.16 +
    1.17 +try { o0 = document.createElement('audio'); } catch(e) {  }
    1.18 +try { (document.body || document.documentElement).appendChild(o0); } catch(e) {  }
    1.19 +try { o1 = new OfflineAudioContext(1, 10, (new AudioContext()).sampleRate); } catch(e) {  }
    1.20 +try { o1.startRendering(); } catch(e) {  }
    1.21 +try { o1.listener.dopplerFactor = 1; } catch(e) {  }
    1.22 +try { o2 = o1.createScriptProcessor(); } catch(e) {  }
    1.23 +try { o3 = o1.createChannelMerger(4); } catch(e) {  }
    1.24 +try { o1.listener.dopplerFactor = 3; } catch(e) {  }
    1.25 +try { o1.listener.setPosition(0, 134217728, 64) } catch(e) {  }
    1.26 +try { o1.listener.dopplerFactor = 15; } catch(e) {  }
    1.27 +try { o1.startRendering(); } catch(e) {  }
    1.28 +try { o4 = new OfflineAudioContext(1, 10, (new AudioContext()).sampleRate); } catch(e) {  }
    1.29 +try { o4.listener.speedOfSound = 2048; } catch(e) {  }
    1.30 +try { o4.listener.setPosition(32768, 1, 1) } catch(e) {  }
    1.31 +try { o5 = o1.createChannelSplitter(4); } catch(e) {  }
    1.32 +try { o4.listener.setVelocity(4, 1, 0) } catch(e) {  }
    1.33 +try { o4.startRendering(); } catch(e) {  }
    1.34 +try { o4.startRendering(); } catch(e) {  }
    1.35 +try { o4.listener.setPosition(64, 1, 0) } catch(e) {  }
    1.36 +try { o1.listener.setOrientation(4194304, 15, 8388608, 15, 1, 1) } catch(e) {  }
    1.37 +try { o1.listener.dopplerFactor = 256; } catch(e) {  }
    1.38 +try { o6 = o4.createDelay(16); } catch(e) {  }
    1.39 +try { o4.startRendering(); } catch(e) {  }
    1.40 +try { o4.listener.setOrientation(0, 1, 0, 0, 31, 1073741824) } catch(e) {  }
    1.41 +try { o4.listener.speedOfSound = 1; } catch(e) {  }
    1.42 +try { o1.listener.speedOfSound = 0; } catch(e) {  }
    1.43 +try { o1.startRendering(); } catch(e) {  }
    1.44 +try { o6.connect(o3, 1, 0) } catch(e) {  }
    1.45 +try { o1.listener.setPosition(4294967296, 32, 1) } catch(e) {  }
    1.46 +try { o1.listener.speedOfSound = 0; } catch(e) {  }
    1.47 +try { o1.listener.speedOfSound = 0; } catch(e) {  }
    1.48 +try { o1.listener.setVelocity(1, 256, 0) } catch(e) {  }
    1.49 +try { o4.startRendering(); } catch(e) {  }
    1.50 +try { o3.disconnect() } catch(e) {  }
    1.51 +setTimeout("try { o4.startRendering(); } catch(e) {  }",50)
    1.52 +try { o4.listener.setOrientation(0, 0, 2048, 128, 16384, 127) } catch(e) {  }
    1.53 +try { o4.listener.setVelocity(0, 4, 1) } catch(e) {  }
    1.54 +try { o7 = o4.createScriptProcessor(1024, 4, 1); } catch(e) {  }
    1.55 +try { o8 = o4.createDynamicsCompressor(); } catch(e) {  }
    1.56 +try { o1.startRendering(); } catch(e) {  }
    1.57 +try { o2.connect(o7); } catch(e) {  }
    1.58 +try { o7.connect(o4); } catch(e) {  }
    1.59 +try { o2.connect(o7); } catch(e) {  }
    1.60 +try { o7.connect(o4); } catch(e) {  }
    1.61 +SpecialPowers.forceCC();
    1.62 +SpecialPowers.forceGC();
    1.63 +try { o4.listener.setOrientation(8192, 1, 1, 512, 0, 15) } catch(e) {  }
    1.64 +setTimeout("try { o7.onaudioprocess = function() {}; } catch(e) {  }",50)
    1.65 +try { o1.startRendering(); } catch(e) {  }
    1.66 +try { o1.listener.speedOfSound = 1073741824; } catch(e) {  }
    1.67 +try { o2.connect(o7); } catch(e) {  }
    1.68 +try { o7.connect(o4); } catch(e) {  }
    1.69 +try { o9 = o4.createScriptProcessor(1024, 1, 4); } catch(e) {  }
    1.70 +try { o10 = o4.createAnalyser(); } catch(e) {  }
    1.71 +try { o4.listener.speedOfSound = 0; } catch(e) {  }
    1.72 +try { o2.connect(o7); } catch(e) {  }
    1.73 +try { o9.connect(o1); } catch(e) {  }
    1.74 +try { o4.listener.setVelocity(524288, 1, 65536) } catch(e) {  }
    1.75 +setTimeout("try { o2.connect(o9); } catch(e) {  } setTimeout(done, 0);",1000)
    1.76 +try { o7.connect(o4); } catch(e) {  }
    1.77 +try { o1.listener.setVelocity(1, 127, 31) } catch(e) {  }
    1.78 +try { o2.connect(o7); } catch(e) {  }
    1.79 +try { o7.connect(o1); } catch(e) {  }
    1.80 +setTimeout("try { o5.disconnect() } catch(e) {  }",100)
    1.81 +try { o2.connect(o9); } catch(e) {  }
    1.82 +try { o7.connect(o4); } catch(e) {  }
    1.83 +try { o4.startRendering(); } catch(e) {  }
    1.84 +setTimeout("try { o1.listener.dopplerFactor = 1; } catch(e) {  }",100)
    1.85 +try { o5.disconnect() } catch(e) {  }
    1.86 +try { o1.startRendering(); } catch(e) {  }
    1.87 +try { o1.startRendering(); } catch(e) {  }
    1.88 +try { o10.disconnect() } catch(e) {  }
    1.89 +try { o1.startRendering(); } catch(e) {  }
    1.90 +try { o11 = o1.createGain(); } catch(e) {  }
    1.91 +try { o2.connect(o7); } catch(e) {  }
    1.92 +try { o9.connect(o4); } catch(e) {  }
    1.93 +try { o4.listener.setOrientation(31, 0, 15, 0, 33554432, 1) } catch(e) {  }
    1.94 +try { o4.listener.dopplerFactor = 1; } catch(e) {  }
    1.95 +try { o2.connect(o7); } catch(e) {  }
    1.96 +try { o7.connect(o4); } catch(e) {  }
    1.97 +try { o2.connect(o7); } catch(e) {  }
    1.98 +setTimeout("try { o9.connect(o4); } catch(e) {  }",50)
    1.99 +try { o2.connect(o9); } catch(e) {  }
   1.100 +setTimeout("try { o9.connect(o1); } catch(e) {  }",200)
   1.101 +try { o2.connect(o7); } catch(e) {  }
   1.102 +try { o7.connect(o1); } catch(e) {  }
   1.103 +try { o12 = o4.createDynamicsCompressor(); } catch(e) {  }
   1.104 +try { o2.connect(o7); } catch(e) {  }
   1.105 +try { o9.connect(o1); } catch(e) {  }
   1.106 +try { o9.onaudioprocess = function() {}; } catch(e) {  }
   1.107 +try { o1.listener.speedOfSound = 262144; } catch(e) {  }
   1.108 +try { o2.connect(o7); } catch(e) {  }
   1.109 +try { o7.connect(o4); } catch(e) {  }
   1.110 +try { o2.connect(o9); } catch(e) {  }
   1.111 +setTimeout("try { o7.connect(o4); } catch(e) {  }",50)
   1.112 +try { o2.connect(o9); } catch(e) {  }
   1.113 +try { o7.connect(o4); } catch(e) {  }
   1.114 +try { o13 = o4.createGain(); } catch(e) {  }
   1.115 +try { o4.listener.dopplerFactor = 31; } catch(e) {  }
   1.116 +try { o11.gain.value = 268435456; } catch(e) {  }
   1.117 +try { o1.listener.setOrientation(63, 3, 1, 63, 1, 2147483648) } catch(e) {  }
   1.118 +try { o2.connect(o9); } catch(e) {  }
   1.119 +try { o7.connect(o4); } catch(e) {  }
   1.120 +try { o4.listener.setVelocity(1, 0, 1) } catch(e) {  }
   1.121 +try { o11.gain.value = 65536; } catch(e) {  }
   1.122 +try { o2.connect(o9); } catch(e) {  }
   1.123 +setTimeout("try { o7.connect(o4); } catch(e) {  }",200)
   1.124 +try { o14 = o4.createDynamicsCompressor(); } catch(e) {  }
   1.125 +setTimeout("try { o2.connect(o9); } catch(e) {  }",50)
   1.126 +try { o7.connect(o1); } catch(e) {  }
   1.127 +try { o15 = o1.createWaveShaper(); } catch(e) {  }
   1.128 +try { o2.connect(o7); } catch(e) {  }
   1.129 +try { o7.connect(o1); } catch(e) {  }
   1.130 +try { o16 = o1.createWaveShaper(); } catch(e) {  }
   1.131 +try { o11.gain.value = 1; } catch(e) {  }
   1.132 +try { o1.listener.speedOfSound = 16; } catch(e) {  }
   1.133 +try { o4.listener.setVelocity(0, 127, 15) } catch(e) {  }
   1.134 +try { o1.listener.setVelocity(0, 2048, 16777216) } catch(e) {  }
   1.135 +try { o13.gain.value = 0; } catch(e) {  }
   1.136 +try { o2.connect(o9); } catch(e) {  }
   1.137 +try { o7.connect(o4); } catch(e) {  }
   1.138 +try { o2.connect(o9); } catch(e) {  }
   1.139 +try { o9.connect(o1); } catch(e) {  }
   1.140 +try { o17 = document.createElement('audio'); } catch(e) {  }
   1.141 +try { (document.body || document.documentElement).appendChild(o0); } catch(e) {  }
   1.142 +try { o4.listener.setVelocity(3, 1, 256) } catch(e) {  }
   1.143 +try { o11.gain.cancelScheduledValues(1) } catch(e) {  }
   1.144 +try { o1.listener.dopplerFactor = 524288; } catch(e) {  }
   1.145 +try { o9.onaudioprocess = function() {}; } catch(e) {  }
   1.146 +setTimeout("try { o7.connect(o13, 0, 0) } catch(e) {  }",50)
   1.147 +try { o1.listener.speedOfSound = 0; } catch(e) {  }
   1.148 +try { o10.disconnect() } catch(e) {  }
   1.149 +try { o2.connect(o9); } catch(e) {  }
   1.150 +try { o9.connect(o4); } catch(e) {  }
   1.151 +try { o2.connect(o7); } catch(e) {  }
   1.152 +try { o9.connect(o4); } catch(e) {  }
   1.153 +try { o1.listener.speedOfSound = 1; } catch(e) {  }
   1.154 +try { o15.disconnect() } catch(e) {  }
   1.155 +try { o11.gain.exponentialRampToValueAtTime(0, 15) } catch(e) {  }
   1.156 +try { o15.curve = new Float32Array(15); } catch(e) {  }
   1.157 +try { o4.listener.setVelocity(1, 1, 1) } catch(e) {  }
   1.158 +try { o14.connect(o6, 0, 0) } catch(e) {  }
   1.159 +try { o2.connect(o9); } catch(e) {  }
   1.160 +try { o9.connect(o1); } catch(e) {  }
   1.161 +try { o2.connect(o9); } catch(e) {  }
   1.162 +try { o7.connect(o4); } catch(e) {  }
   1.163 +try { o2.connect(o7); } catch(e) {  }
   1.164 +setTimeout("try { o7.connect(o1); } catch(e) {  }",100)
   1.165 +try { o4.listener.setVelocity(1, 7, 1) } catch(e) {  }
   1.166 +try { o18 = document.createElement('audio'); } catch(e) {  }
   1.167 +try { (document.body || document.documentElement).appendChild(o18); } catch(e) {  }
   1.168 +try { o19 = o4.createGain(); } catch(e) {  }
   1.169 +try { o2.connect(o7); } catch(e) {  }
   1.170 +try { o7.connect(o1); } catch(e) {  }
   1.171 +try { o4.listener.dopplerFactor = 0; } catch(e) {  }
   1.172 +try { o1.listener.setPosition(256, 16, 1) } catch(e) {  }
   1.173 +setTimeout("try { o2.connect(o9); } catch(e) {  }",50)
   1.174 +try { o7.connect(o1); } catch(e) {  }
   1.175 +try { o4.listener.speedOfSound = 31; } catch(e) {  }
   1.176 +try { o2.connect(o7); } catch(e) {  }
   1.177 +setTimeout("try { o9.connect(o4); } catch(e) {  }",1000)
   1.178 +try { o11.gain.value = 127; } catch(e) {  }
   1.179 +try { o7.connect(o7, 0, 0) } catch(e) {  }
   1.180 +try { o4.listener.speedOfSound = 63; } catch(e) {  }
   1.181 +try { o11.gain.value = 33554432; } catch(e) {  }
   1.182 +try { o2.connect(o7); } catch(e) {  }
   1.183 +try { o9.connect(o4); } catch(e) {  }
   1.184 +try { o4.listener.speedOfSound = 16; } catch(e) {  }
   1.185 +try { o4.listener.setVelocity(1048576, 0, 127) } catch(e) {  }
   1.186 +try { o1.listener.dopplerFactor = 0; } catch(e) {  }
   1.187 +try { o6.connect(o2, 0, 1) } catch(e) {  }
   1.188 +try { o5.disconnect() } catch(e) {  }
   1.189 +try { o3.disconnect() } catch(e) {  }
   1.190 +try { o2.connect(o9); } catch(e) {  }
   1.191 +try { o7.connect(o1); } catch(e) {  }
   1.192 +try { o16.disconnect() } catch(e) {  }
   1.193 +try { o2.connect(o9); } catch(e) {  }
   1.194 +try { o7.connect(o1); } catch(e) {  }
   1.195 +try { o9.disconnect() } catch(e) {  }
   1.196 +try { o4.listener.speedOfSound = 1; } catch(e) {  }
   1.197 +try { o2.connect(o7); } catch(e) {  }
   1.198 +try { o7.connect(o4); } catch(e) {  }
   1.199 +try { o11.gain.setValueCurveAtTime(new Float32Array(3), 2048, 3) } catch(e) {  }
   1.200 +try { o13.gain.value = 8; } catch(e) {  }
   1.201 +try { o2.connect(o7); } catch(e) {  }
   1.202 +try { o9.connect(o4); } catch(e) {  }
   1.203 +try { o4.listener.setOrientation(1, 2048, 1, 1, 0, 31) } catch(e) {  }
   1.204 +try { o2.connect(o9); } catch(e) {  }
   1.205 +try { o7.connect(o1); } catch(e) {  }
   1.206 +try { o1.listener.speedOfSound = 256; } catch(e) {  }
   1.207 +try { o2.connect(o7); } catch(e) {  }
   1.208 +try { o9.connect(o4); } catch(e) {  }
   1.209 +try { o4.listener.setVelocity(1, 67108864, 128) } catch(e) {  }
   1.210 +setTimeout("try { o1.listener.setVelocity(0, 1, 1) } catch(e) {  }",100)
   1.211 +try { o2.connect(o9); } catch(e) {  }
   1.212 +try { o9.connect(o1); } catch(e) {  }
   1.213 +setTimeout("try { o20 = o1.createBiquadFilter(); } catch(e) {  }",200)
   1.214 +try { o13.gain.value = 4096; } catch(e) {  }
   1.215 +try { o1.listener.dopplerFactor = 0; } catch(e) {  }
   1.216 +try { o2.connect(o7); } catch(e) {  }
   1.217 +try { o9.connect(o1); } catch(e) {  }
   1.218 +try { o2.connect(o9); } catch(e) {  }
   1.219 +try { o7.connect(o4); } catch(e) {  }
   1.220 +setTimeout("try { o2.connect(o9); } catch(e) {  }",200)
   1.221 +try { o7.connect(o1); } catch(e) {  }
   1.222 +try { o3.connect(o15, 1, 1) } catch(e) {  }
   1.223 +try { o2.connect(o12, 0, 0) } catch(e) {  }
   1.224 +try { o19.gain.exponentialRampToValueAtTime(1, 0) } catch(e) {  }
   1.225 +try { o2.connect(o7); } catch(e) {  }
   1.226 +try { o7.connect(o4); } catch(e) {  }
   1.227 +try { o2.connect(o7); } catch(e) {  }
   1.228 +try { o9.connect(o1); } catch(e) {  }
   1.229 +try { o2.connect(o7); } catch(e) {  }
   1.230 +try { o7.connect(o4); } catch(e) {  }
   1.231 +
   1.232 +function done() {
   1.233 +  ok(true, "We did not crash.");
   1.234 +  SimpleTest.finish();
   1.235 +}
   1.236 +
   1.237 +
   1.238 +</script>
   1.239 +</pre>
   1.240 +</body>
   1.241 +</html>

mercurial