Fri, 16 Jan 2015 04:50:19 +0100
Replace accessor implementation with direct member state manipulation, by
request https://trac.torproject.org/projects/tor/ticket/9701#comment:32
michael@0 | 1 | <!DOCTYPE HTML> |
michael@0 | 2 | <html> |
michael@0 | 3 | <head> |
michael@0 | 4 | <title>Crashtest for bug 875221</title> |
michael@0 | 5 | <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> |
michael@0 | 6 | <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" /> |
michael@0 | 7 | </head> |
michael@0 | 8 | <body> |
michael@0 | 9 | <pre id="test"> |
michael@0 | 10 | <script class="testbody" type="text/javascript"> |
michael@0 | 11 | |
michael@0 | 12 | SimpleTest.waitForExplicitFinish(); |
michael@0 | 13 | |
michael@0 | 14 | try { o0 = document.createElement('audio'); } catch(e) { } |
michael@0 | 15 | try { (document.body || document.documentElement).appendChild(o0); } catch(e) { } |
michael@0 | 16 | try { o1 = new OfflineAudioContext(1, 10, (new AudioContext()).sampleRate); } catch(e) { } |
michael@0 | 17 | try { o1.startRendering(); } catch(e) { } |
michael@0 | 18 | try { o1.listener.dopplerFactor = 1; } catch(e) { } |
michael@0 | 19 | try { o2 = o1.createScriptProcessor(); } catch(e) { } |
michael@0 | 20 | try { o3 = o1.createChannelMerger(4); } catch(e) { } |
michael@0 | 21 | try { o1.listener.dopplerFactor = 3; } catch(e) { } |
michael@0 | 22 | try { o1.listener.setPosition(0, 134217728, 64) } catch(e) { } |
michael@0 | 23 | try { o1.listener.dopplerFactor = 15; } catch(e) { } |
michael@0 | 24 | try { o1.startRendering(); } catch(e) { } |
michael@0 | 25 | try { o4 = new OfflineAudioContext(1, 10, (new AudioContext()).sampleRate); } catch(e) { } |
michael@0 | 26 | try { o4.listener.speedOfSound = 2048; } catch(e) { } |
michael@0 | 27 | try { o4.listener.setPosition(32768, 1, 1) } catch(e) { } |
michael@0 | 28 | try { o5 = o1.createChannelSplitter(4); } catch(e) { } |
michael@0 | 29 | try { o4.listener.setVelocity(4, 1, 0) } catch(e) { } |
michael@0 | 30 | try { o4.startRendering(); } catch(e) { } |
michael@0 | 31 | try { o4.startRendering(); } catch(e) { } |
michael@0 | 32 | try { o4.listener.setPosition(64, 1, 0) } catch(e) { } |
michael@0 | 33 | try { o1.listener.setOrientation(4194304, 15, 8388608, 15, 1, 1) } catch(e) { } |
michael@0 | 34 | try { o1.listener.dopplerFactor = 256; } catch(e) { } |
michael@0 | 35 | try { o6 = o4.createDelay(16); } catch(e) { } |
michael@0 | 36 | try { o4.startRendering(); } catch(e) { } |
michael@0 | 37 | try { o4.listener.setOrientation(0, 1, 0, 0, 31, 1073741824) } catch(e) { } |
michael@0 | 38 | try { o4.listener.speedOfSound = 1; } catch(e) { } |
michael@0 | 39 | try { o1.listener.speedOfSound = 0; } catch(e) { } |
michael@0 | 40 | try { o1.startRendering(); } catch(e) { } |
michael@0 | 41 | try { o6.connect(o3, 1, 0) } catch(e) { } |
michael@0 | 42 | try { o1.listener.setPosition(4294967296, 32, 1) } catch(e) { } |
michael@0 | 43 | try { o1.listener.speedOfSound = 0; } catch(e) { } |
michael@0 | 44 | try { o1.listener.speedOfSound = 0; } catch(e) { } |
michael@0 | 45 | try { o1.listener.setVelocity(1, 256, 0) } catch(e) { } |
michael@0 | 46 | try { o4.startRendering(); } catch(e) { } |
michael@0 | 47 | try { o3.disconnect() } catch(e) { } |
michael@0 | 48 | setTimeout("try { o4.startRendering(); } catch(e) { }",50) |
michael@0 | 49 | try { o4.listener.setOrientation(0, 0, 2048, 128, 16384, 127) } catch(e) { } |
michael@0 | 50 | try { o4.listener.setVelocity(0, 4, 1) } catch(e) { } |
michael@0 | 51 | try { o7 = o4.createScriptProcessor(1024, 4, 1); } catch(e) { } |
michael@0 | 52 | try { o8 = o4.createDynamicsCompressor(); } catch(e) { } |
michael@0 | 53 | try { o1.startRendering(); } catch(e) { } |
michael@0 | 54 | try { o2.connect(o7); } catch(e) { } |
michael@0 | 55 | try { o7.connect(o4); } catch(e) { } |
michael@0 | 56 | try { o2.connect(o7); } catch(e) { } |
michael@0 | 57 | try { o7.connect(o4); } catch(e) { } |
michael@0 | 58 | SpecialPowers.forceCC(); |
michael@0 | 59 | SpecialPowers.forceGC(); |
michael@0 | 60 | try { o4.listener.setOrientation(8192, 1, 1, 512, 0, 15) } catch(e) { } |
michael@0 | 61 | setTimeout("try { o7.onaudioprocess = function() {}; } catch(e) { }",50) |
michael@0 | 62 | try { o1.startRendering(); } catch(e) { } |
michael@0 | 63 | try { o1.listener.speedOfSound = 1073741824; } catch(e) { } |
michael@0 | 64 | try { o2.connect(o7); } catch(e) { } |
michael@0 | 65 | try { o7.connect(o4); } catch(e) { } |
michael@0 | 66 | try { o9 = o4.createScriptProcessor(1024, 1, 4); } catch(e) { } |
michael@0 | 67 | try { o10 = o4.createAnalyser(); } catch(e) { } |
michael@0 | 68 | try { o4.listener.speedOfSound = 0; } catch(e) { } |
michael@0 | 69 | try { o2.connect(o7); } catch(e) { } |
michael@0 | 70 | try { o9.connect(o1); } catch(e) { } |
michael@0 | 71 | try { o4.listener.setVelocity(524288, 1, 65536) } catch(e) { } |
michael@0 | 72 | setTimeout("try { o2.connect(o9); } catch(e) { } setTimeout(done, 0);",1000) |
michael@0 | 73 | try { o7.connect(o4); } catch(e) { } |
michael@0 | 74 | try { o1.listener.setVelocity(1, 127, 31) } catch(e) { } |
michael@0 | 75 | try { o2.connect(o7); } catch(e) { } |
michael@0 | 76 | try { o7.connect(o1); } catch(e) { } |
michael@0 | 77 | setTimeout("try { o5.disconnect() } catch(e) { }",100) |
michael@0 | 78 | try { o2.connect(o9); } catch(e) { } |
michael@0 | 79 | try { o7.connect(o4); } catch(e) { } |
michael@0 | 80 | try { o4.startRendering(); } catch(e) { } |
michael@0 | 81 | setTimeout("try { o1.listener.dopplerFactor = 1; } catch(e) { }",100) |
michael@0 | 82 | try { o5.disconnect() } catch(e) { } |
michael@0 | 83 | try { o1.startRendering(); } catch(e) { } |
michael@0 | 84 | try { o1.startRendering(); } catch(e) { } |
michael@0 | 85 | try { o10.disconnect() } catch(e) { } |
michael@0 | 86 | try { o1.startRendering(); } catch(e) { } |
michael@0 | 87 | try { o11 = o1.createGain(); } catch(e) { } |
michael@0 | 88 | try { o2.connect(o7); } catch(e) { } |
michael@0 | 89 | try { o9.connect(o4); } catch(e) { } |
michael@0 | 90 | try { o4.listener.setOrientation(31, 0, 15, 0, 33554432, 1) } catch(e) { } |
michael@0 | 91 | try { o4.listener.dopplerFactor = 1; } catch(e) { } |
michael@0 | 92 | try { o2.connect(o7); } catch(e) { } |
michael@0 | 93 | try { o7.connect(o4); } catch(e) { } |
michael@0 | 94 | try { o2.connect(o7); } catch(e) { } |
michael@0 | 95 | setTimeout("try { o9.connect(o4); } catch(e) { }",50) |
michael@0 | 96 | try { o2.connect(o9); } catch(e) { } |
michael@0 | 97 | setTimeout("try { o9.connect(o1); } catch(e) { }",200) |
michael@0 | 98 | try { o2.connect(o7); } catch(e) { } |
michael@0 | 99 | try { o7.connect(o1); } catch(e) { } |
michael@0 | 100 | try { o12 = o4.createDynamicsCompressor(); } catch(e) { } |
michael@0 | 101 | try { o2.connect(o7); } catch(e) { } |
michael@0 | 102 | try { o9.connect(o1); } catch(e) { } |
michael@0 | 103 | try { o9.onaudioprocess = function() {}; } catch(e) { } |
michael@0 | 104 | try { o1.listener.speedOfSound = 262144; } catch(e) { } |
michael@0 | 105 | try { o2.connect(o7); } catch(e) { } |
michael@0 | 106 | try { o7.connect(o4); } catch(e) { } |
michael@0 | 107 | try { o2.connect(o9); } catch(e) { } |
michael@0 | 108 | setTimeout("try { o7.connect(o4); } catch(e) { }",50) |
michael@0 | 109 | try { o2.connect(o9); } catch(e) { } |
michael@0 | 110 | try { o7.connect(o4); } catch(e) { } |
michael@0 | 111 | try { o13 = o4.createGain(); } catch(e) { } |
michael@0 | 112 | try { o4.listener.dopplerFactor = 31; } catch(e) { } |
michael@0 | 113 | try { o11.gain.value = 268435456; } catch(e) { } |
michael@0 | 114 | try { o1.listener.setOrientation(63, 3, 1, 63, 1, 2147483648) } catch(e) { } |
michael@0 | 115 | try { o2.connect(o9); } catch(e) { } |
michael@0 | 116 | try { o7.connect(o4); } catch(e) { } |
michael@0 | 117 | try { o4.listener.setVelocity(1, 0, 1) } catch(e) { } |
michael@0 | 118 | try { o11.gain.value = 65536; } catch(e) { } |
michael@0 | 119 | try { o2.connect(o9); } catch(e) { } |
michael@0 | 120 | setTimeout("try { o7.connect(o4); } catch(e) { }",200) |
michael@0 | 121 | try { o14 = o4.createDynamicsCompressor(); } catch(e) { } |
michael@0 | 122 | setTimeout("try { o2.connect(o9); } catch(e) { }",50) |
michael@0 | 123 | try { o7.connect(o1); } catch(e) { } |
michael@0 | 124 | try { o15 = o1.createWaveShaper(); } catch(e) { } |
michael@0 | 125 | try { o2.connect(o7); } catch(e) { } |
michael@0 | 126 | try { o7.connect(o1); } catch(e) { } |
michael@0 | 127 | try { o16 = o1.createWaveShaper(); } catch(e) { } |
michael@0 | 128 | try { o11.gain.value = 1; } catch(e) { } |
michael@0 | 129 | try { o1.listener.speedOfSound = 16; } catch(e) { } |
michael@0 | 130 | try { o4.listener.setVelocity(0, 127, 15) } catch(e) { } |
michael@0 | 131 | try { o1.listener.setVelocity(0, 2048, 16777216) } catch(e) { } |
michael@0 | 132 | try { o13.gain.value = 0; } catch(e) { } |
michael@0 | 133 | try { o2.connect(o9); } catch(e) { } |
michael@0 | 134 | try { o7.connect(o4); } catch(e) { } |
michael@0 | 135 | try { o2.connect(o9); } catch(e) { } |
michael@0 | 136 | try { o9.connect(o1); } catch(e) { } |
michael@0 | 137 | try { o17 = document.createElement('audio'); } catch(e) { } |
michael@0 | 138 | try { (document.body || document.documentElement).appendChild(o0); } catch(e) { } |
michael@0 | 139 | try { o4.listener.setVelocity(3, 1, 256) } catch(e) { } |
michael@0 | 140 | try { o11.gain.cancelScheduledValues(1) } catch(e) { } |
michael@0 | 141 | try { o1.listener.dopplerFactor = 524288; } catch(e) { } |
michael@0 | 142 | try { o9.onaudioprocess = function() {}; } catch(e) { } |
michael@0 | 143 | setTimeout("try { o7.connect(o13, 0, 0) } catch(e) { }",50) |
michael@0 | 144 | try { o1.listener.speedOfSound = 0; } catch(e) { } |
michael@0 | 145 | try { o10.disconnect() } catch(e) { } |
michael@0 | 146 | try { o2.connect(o9); } catch(e) { } |
michael@0 | 147 | try { o9.connect(o4); } catch(e) { } |
michael@0 | 148 | try { o2.connect(o7); } catch(e) { } |
michael@0 | 149 | try { o9.connect(o4); } catch(e) { } |
michael@0 | 150 | try { o1.listener.speedOfSound = 1; } catch(e) { } |
michael@0 | 151 | try { o15.disconnect() } catch(e) { } |
michael@0 | 152 | try { o11.gain.exponentialRampToValueAtTime(0, 15) } catch(e) { } |
michael@0 | 153 | try { o15.curve = new Float32Array(15); } catch(e) { } |
michael@0 | 154 | try { o4.listener.setVelocity(1, 1, 1) } catch(e) { } |
michael@0 | 155 | try { o14.connect(o6, 0, 0) } catch(e) { } |
michael@0 | 156 | try { o2.connect(o9); } catch(e) { } |
michael@0 | 157 | try { o9.connect(o1); } catch(e) { } |
michael@0 | 158 | try { o2.connect(o9); } catch(e) { } |
michael@0 | 159 | try { o7.connect(o4); } catch(e) { } |
michael@0 | 160 | try { o2.connect(o7); } catch(e) { } |
michael@0 | 161 | setTimeout("try { o7.connect(o1); } catch(e) { }",100) |
michael@0 | 162 | try { o4.listener.setVelocity(1, 7, 1) } catch(e) { } |
michael@0 | 163 | try { o18 = document.createElement('audio'); } catch(e) { } |
michael@0 | 164 | try { (document.body || document.documentElement).appendChild(o18); } catch(e) { } |
michael@0 | 165 | try { o19 = o4.createGain(); } catch(e) { } |
michael@0 | 166 | try { o2.connect(o7); } catch(e) { } |
michael@0 | 167 | try { o7.connect(o1); } catch(e) { } |
michael@0 | 168 | try { o4.listener.dopplerFactor = 0; } catch(e) { } |
michael@0 | 169 | try { o1.listener.setPosition(256, 16, 1) } catch(e) { } |
michael@0 | 170 | setTimeout("try { o2.connect(o9); } catch(e) { }",50) |
michael@0 | 171 | try { o7.connect(o1); } catch(e) { } |
michael@0 | 172 | try { o4.listener.speedOfSound = 31; } catch(e) { } |
michael@0 | 173 | try { o2.connect(o7); } catch(e) { } |
michael@0 | 174 | setTimeout("try { o9.connect(o4); } catch(e) { }",1000) |
michael@0 | 175 | try { o11.gain.value = 127; } catch(e) { } |
michael@0 | 176 | try { o7.connect(o7, 0, 0) } catch(e) { } |
michael@0 | 177 | try { o4.listener.speedOfSound = 63; } catch(e) { } |
michael@0 | 178 | try { o11.gain.value = 33554432; } catch(e) { } |
michael@0 | 179 | try { o2.connect(o7); } catch(e) { } |
michael@0 | 180 | try { o9.connect(o4); } catch(e) { } |
michael@0 | 181 | try { o4.listener.speedOfSound = 16; } catch(e) { } |
michael@0 | 182 | try { o4.listener.setVelocity(1048576, 0, 127) } catch(e) { } |
michael@0 | 183 | try { o1.listener.dopplerFactor = 0; } catch(e) { } |
michael@0 | 184 | try { o6.connect(o2, 0, 1) } catch(e) { } |
michael@0 | 185 | try { o5.disconnect() } catch(e) { } |
michael@0 | 186 | try { o3.disconnect() } catch(e) { } |
michael@0 | 187 | try { o2.connect(o9); } catch(e) { } |
michael@0 | 188 | try { o7.connect(o1); } catch(e) { } |
michael@0 | 189 | try { o16.disconnect() } catch(e) { } |
michael@0 | 190 | try { o2.connect(o9); } catch(e) { } |
michael@0 | 191 | try { o7.connect(o1); } catch(e) { } |
michael@0 | 192 | try { o9.disconnect() } catch(e) { } |
michael@0 | 193 | try { o4.listener.speedOfSound = 1; } catch(e) { } |
michael@0 | 194 | try { o2.connect(o7); } catch(e) { } |
michael@0 | 195 | try { o7.connect(o4); } catch(e) { } |
michael@0 | 196 | try { o11.gain.setValueCurveAtTime(new Float32Array(3), 2048, 3) } catch(e) { } |
michael@0 | 197 | try { o13.gain.value = 8; } catch(e) { } |
michael@0 | 198 | try { o2.connect(o7); } catch(e) { } |
michael@0 | 199 | try { o9.connect(o4); } catch(e) { } |
michael@0 | 200 | try { o4.listener.setOrientation(1, 2048, 1, 1, 0, 31) } catch(e) { } |
michael@0 | 201 | try { o2.connect(o9); } catch(e) { } |
michael@0 | 202 | try { o7.connect(o1); } catch(e) { } |
michael@0 | 203 | try { o1.listener.speedOfSound = 256; } catch(e) { } |
michael@0 | 204 | try { o2.connect(o7); } catch(e) { } |
michael@0 | 205 | try { o9.connect(o4); } catch(e) { } |
michael@0 | 206 | try { o4.listener.setVelocity(1, 67108864, 128) } catch(e) { } |
michael@0 | 207 | setTimeout("try { o1.listener.setVelocity(0, 1, 1) } catch(e) { }",100) |
michael@0 | 208 | try { o2.connect(o9); } catch(e) { } |
michael@0 | 209 | try { o9.connect(o1); } catch(e) { } |
michael@0 | 210 | setTimeout("try { o20 = o1.createBiquadFilter(); } catch(e) { }",200) |
michael@0 | 211 | try { o13.gain.value = 4096; } catch(e) { } |
michael@0 | 212 | try { o1.listener.dopplerFactor = 0; } catch(e) { } |
michael@0 | 213 | try { o2.connect(o7); } catch(e) { } |
michael@0 | 214 | try { o9.connect(o1); } catch(e) { } |
michael@0 | 215 | try { o2.connect(o9); } catch(e) { } |
michael@0 | 216 | try { o7.connect(o4); } catch(e) { } |
michael@0 | 217 | setTimeout("try { o2.connect(o9); } catch(e) { }",200) |
michael@0 | 218 | try { o7.connect(o1); } catch(e) { } |
michael@0 | 219 | try { o3.connect(o15, 1, 1) } catch(e) { } |
michael@0 | 220 | try { o2.connect(o12, 0, 0) } catch(e) { } |
michael@0 | 221 | try { o19.gain.exponentialRampToValueAtTime(1, 0) } catch(e) { } |
michael@0 | 222 | try { o2.connect(o7); } catch(e) { } |
michael@0 | 223 | try { o7.connect(o4); } catch(e) { } |
michael@0 | 224 | try { o2.connect(o7); } catch(e) { } |
michael@0 | 225 | try { o9.connect(o1); } catch(e) { } |
michael@0 | 226 | try { o2.connect(o7); } catch(e) { } |
michael@0 | 227 | try { o7.connect(o4); } catch(e) { } |
michael@0 | 228 | |
michael@0 | 229 | function done() { |
michael@0 | 230 | ok(true, "We did not crash."); |
michael@0 | 231 | SimpleTest.finish(); |
michael@0 | 232 | } |
michael@0 | 233 | |
michael@0 | 234 | |
michael@0 | 235 | </script> |
michael@0 | 236 | </pre> |
michael@0 | 237 | </body> |
michael@0 | 238 | </html> |