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