summaryrefslogtreecommitdiffstats
path: root/dom/media/webaudio/test/test_bug875221.html
blob: 5eb017d01164a429fb355e3398ed3276162ecd2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
<!DOCTYPE HTML>
<html>
<head>
  <title>Crashtest for bug 875221</title>
  <script src="/tests/SimpleTest/SimpleTest.js"></script>
  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<body>
<pre id="test">
<script class="testbody" type="text/javascript">

SimpleTest.waitForExplicitFinish();
SimpleTest.requestFlakyTimeout("This test is generated by a fuzzer, so we leave these setTimeouts untouched.");

try { o0 = document.createElement('audio'); } catch(e) {  }
try { (document.body || document.documentElement).appendChild(o0); } catch(e) {  }
try { o1 = new OfflineAudioContext(1, 10, (new AudioContext()).sampleRate); } catch(e) {  }
try { o1.startRendering(); } catch(e) {  }
try { o1.listener.dopplerFactor = 1; } catch(e) {  }
try { o2 = o1.createScriptProcessor(); } catch(e) {  }
try { o3 = o1.createChannelMerger(4); } catch(e) {  }
try { o1.listener.dopplerFactor = 3; } catch(e) {  }
try { o1.listener.setPosition(0, 134217728, 64) } catch(e) {  }
try { o1.listener.dopplerFactor = 15; } catch(e) {  }
try { o1.startRendering(); } catch(e) {  }
try { o4 = new OfflineAudioContext(1, 10, (new AudioContext()).sampleRate); } catch(e) {  }
try { o4.listener.speedOfSound = 2048; } catch(e) {  }
try { o4.listener.setPosition(32768, 1, 1) } catch(e) {  }
try { o5 = o1.createChannelSplitter(4); } catch(e) {  }
try { o4.listener.setVelocity(4, 1, 0) } catch(e) {  }
try { o4.startRendering(); } catch(e) {  }
try { o4.startRendering(); } catch(e) {  }
try { o4.listener.setPosition(64, 1, 0) } catch(e) {  }
try { o1.listener.setOrientation(4194304, 15, 8388608, 15, 1, 1) } catch(e) {  }
try { o1.listener.dopplerFactor = 256; } catch(e) {  }
try { o6 = o4.createDelay(16); } catch(e) {  }
try { o4.startRendering(); } catch(e) {  }
try { o4.listener.setOrientation(0, 1, 0, 0, 31, 1073741824) } catch(e) {  }
try { o4.listener.speedOfSound = 1; } catch(e) {  }
try { o1.listener.speedOfSound = 0; } catch(e) {  }
try { o1.startRendering(); } catch(e) {  }
try { o6.connect(o3, 1, 0) } catch(e) {  }
try { o1.listener.setPosition(4294967296, 32, 1) } catch(e) {  }
try { o1.listener.speedOfSound = 0; } catch(e) {  }
try { o1.listener.speedOfSound = 0; } catch(e) {  }
try { o1.listener.setVelocity(1, 256, 0) } catch(e) {  }
try { o4.startRendering(); } catch(e) {  }
try { o3.disconnect() } catch(e) {  }
setTimeout("try { o4.startRendering(); } catch(e) {  }",50)
try { o4.listener.setOrientation(0, 0, 2048, 128, 16384, 127) } catch(e) {  }
try { o4.listener.setVelocity(0, 4, 1) } catch(e) {  }
try { o7 = o4.createScriptProcessor(1024, 4, 1); } catch(e) {  }
try { o8 = o4.createDynamicsCompressor(); } catch(e) {  }
try { o1.startRendering(); } catch(e) {  }
try { o2.connect(o7); } catch(e) {  }
try { o7.connect(o4); } catch(e) {  }
try { o2.connect(o7); } catch(e) {  }
try { o7.connect(o4); } catch(e) {  }
SpecialPowers.forceCC();
SpecialPowers.forceGC();
try { o4.listener.setOrientation(8192, 1, 1, 512, 0, 15) } catch(e) {  }
setTimeout("try { o7.onaudioprocess = function() {}; } catch(e) {  }",50)
try { o1.startRendering(); } catch(e) {  }
try { o1.listener.speedOfSound = 1073741824; } catch(e) {  }
try { o2.connect(o7); } catch(e) {  }
try { o7.connect(o4); } catch(e) {  }
try { o9 = o4.createScriptProcessor(1024, 1, 4); } catch(e) {  }
try { o10 = o4.createAnalyser(); } catch(e) {  }
try { o4.listener.speedOfSound = 0; } catch(e) {  }
try { o2.connect(o7); } catch(e) {  }
try { o9.connect(o1); } catch(e) {  }
try { o4.listener.setVelocity(524288, 1, 65536) } catch(e) {  }
setTimeout("try { o2.connect(o9); } catch(e) {  } setTimeout(done, 0);",1000)
try { o7.connect(o4); } catch(e) {  }
try { o1.listener.setVelocity(1, 127, 31) } catch(e) {  }
try { o2.connect(o7); } catch(e) {  }
try { o7.connect(o1); } catch(e) {  }
setTimeout("try { o5.disconnect() } catch(e) {  }",100)
try { o2.connect(o9); } catch(e) {  }
try { o7.connect(o4); } catch(e) {  }
try { o4.startRendering(); } catch(e) {  }
setTimeout("try { o1.listener.dopplerFactor = 1; } catch(e) {  }",100)
try { o5.disconnect() } catch(e) {  }
try { o1.startRendering(); } catch(e) {  }
try { o1.startRendering(); } catch(e) {  }
try { o10.disconnect() } catch(e) {  }
try { o1.startRendering(); } catch(e) {  }
try { o11 = o1.createGain(); } catch(e) {  }
try { o2.connect(o7); } catch(e) {  }
try { o9.connect(o4); } catch(e) {  }
try { o4.listener.setOrientation(31, 0, 15, 0, 33554432, 1) } catch(e) {  }
try { o4.listener.dopplerFactor = 1; } catch(e) {  }
try { o2.connect(o7); } catch(e) {  }
try { o7.connect(o4); } catch(e) {  }
try { o2.connect(o7); } catch(e) {  }
setTimeout("try { o9.connect(o4); } catch(e) {  }",50)
try { o2.connect(o9); } catch(e) {  }
setTimeout("try { o9.connect(o1); } catch(e) {  }",200)
try { o2.connect(o7); } catch(e) {  }
try { o7.connect(o1); } catch(e) {  }
try { o12 = o4.createDynamicsCompressor(); } catch(e) {  }
try { o2.connect(o7); } catch(e) {  }
try { o9.connect(o1); } catch(e) {  }
try { o9.onaudioprocess = function() {}; } catch(e) {  }
try { o1.listener.speedOfSound = 262144; } catch(e) {  }
try { o2.connect(o7); } catch(e) {  }
try { o7.connect(o4); } catch(e) {  }
try { o2.connect(o9); } catch(e) {  }
setTimeout("try { o7.connect(o4); } catch(e) {  }",50)
try { o2.connect(o9); } catch(e) {  }
try { o7.connect(o4); } catch(e) {  }
try { o13 = o4.createGain(); } catch(e) {  }
try { o4.listener.dopplerFactor = 31; } catch(e) {  }
try { o11.gain.value = 268435456; } catch(e) {  }
try { o1.listener.setOrientation(63, 3, 1, 63, 1, 2147483648) } catch(e) {  }
try { o2.connect(o9); } catch(e) {  }
try { o7.connect(o4); } catch(e) {  }
try { o4.listener.setVelocity(1, 0, 1) } catch(e) {  }
try { o11.gain.value = 65536; } catch(e) {  }
try { o2.connect(o9); } catch(e) {  }
setTimeout("try { o7.connect(o4); } catch(e) {  }",200)
try { o14 = o4.createDynamicsCompressor(); } catch(e) {  }
setTimeout("try { o2.connect(o9); } catch(e) {  }",50)
try { o7.connect(o1); } catch(e) {  }
try { o15 = o1.createWaveShaper(); } catch(e) {  }
try { o2.connect(o7); } catch(e) {  }
try { o7.connect(o1); } catch(e) {  }
try { o16 = o1.createWaveShaper(); } catch(e) {  }
try { o11.gain.value = 1; } catch(e) {  }
try { o1.listener.speedOfSound = 16; } catch(e) {  }
try { o4.listener.setVelocity(0, 127, 15) } catch(e) {  }
try { o1.listener.setVelocity(0, 2048, 16777216) } catch(e) {  }
try { o13.gain.value = 0; } catch(e) {  }
try { o2.connect(o9); } catch(e) {  }
try { o7.connect(o4); } catch(e) {  }
try { o2.connect(o9); } catch(e) {  }
try { o9.connect(o1); } catch(e) {  }
try { o17 = document.createElement('audio'); } catch(e) {  }
try { (document.body || document.documentElement).appendChild(o0); } catch(e) {  }
try { o4.listener.setVelocity(3, 1, 256) } catch(e) {  }
try { o11.gain.cancelScheduledValues(1) } catch(e) {  }
try { o1.listener.dopplerFactor = 524288; } catch(e) {  }
try { o9.onaudioprocess = function() {}; } catch(e) {  }
setTimeout("try { o7.connect(o13, 0, 0) } catch(e) {  }",50)
try { o1.listener.speedOfSound = 0; } catch(e) {  }
try { o10.disconnect() } catch(e) {  }
try { o2.connect(o9); } catch(e) {  }
try { o9.connect(o4); } catch(e) {  }
try { o2.connect(o7); } catch(e) {  }
try { o9.connect(o4); } catch(e) {  }
try { o1.listener.speedOfSound = 1; } catch(e) {  }
try { o15.disconnect() } catch(e) {  }
try { o11.gain.exponentialRampToValueAtTime(0, 15) } catch(e) {  }
try { o15.curve = new Float32Array(15); } catch(e) {  }
try { o4.listener.setVelocity(1, 1, 1) } catch(e) {  }
try { o14.connect(o6, 0, 0) } catch(e) {  }
try { o2.connect(o9); } catch(e) {  }
try { o9.connect(o1); } catch(e) {  }
try { o2.connect(o9); } catch(e) {  }
try { o7.connect(o4); } catch(e) {  }
try { o2.connect(o7); } catch(e) {  }
setTimeout("try { o7.connect(o1); } catch(e) {  }",100)
try { o4.listener.setVelocity(1, 7, 1) } catch(e) {  }
try { o18 = document.createElement('audio'); } catch(e) {  }
try { (document.body || document.documentElement).appendChild(o18); } catch(e) {  }
try { o19 = o4.createGain(); } catch(e) {  }
try { o2.connect(o7); } catch(e) {  }
try { o7.connect(o1); } catch(e) {  }
try { o4.listener.dopplerFactor = 0; } catch(e) {  }
try { o1.listener.setPosition(256, 16, 1) } catch(e) {  }
setTimeout("try { o2.connect(o9); } catch(e) {  }",50)
try { o7.connect(o1); } catch(e) {  }
try { o4.listener.speedOfSound = 31; } catch(e) {  }
try { o2.connect(o7); } catch(e) {  }
setTimeout("try { o9.connect(o4); } catch(e) {  }",1000)
try { o11.gain.value = 127; } catch(e) {  }
try { o7.connect(o7, 0, 0) } catch(e) {  }
try { o4.listener.speedOfSound = 63; } catch(e) {  }
try { o11.gain.value = 33554432; } catch(e) {  }
try { o2.connect(o7); } catch(e) {  }
try { o9.connect(o4); } catch(e) {  }
try { o4.listener.speedOfSound = 16; } catch(e) {  }
try { o4.listener.setVelocity(1048576, 0, 127) } catch(e) {  }
try { o1.listener.dopplerFactor = 0; } catch(e) {  }
try { o6.connect(o2, 0, 1) } catch(e) {  }
try { o5.disconnect() } catch(e) {  }
try { o3.disconnect() } catch(e) {  }
try { o2.connect(o9); } catch(e) {  }
try { o7.connect(o1); } catch(e) {  }
try { o16.disconnect() } catch(e) {  }
try { o2.connect(o9); } catch(e) {  }
try { o7.connect(o1); } catch(e) {  }
try { o9.disconnect() } catch(e) {  }
try { o4.listener.speedOfSound = 1; } catch(e) {  }
try { o2.connect(o7); } catch(e) {  }
try { o7.connect(o4); } catch(e) {  }
try { o11.gain.setValueCurveAtTime(new Float32Array(3), 2048, 3) } catch(e) {  }
try { o13.gain.value = 8; } catch(e) {  }
try { o2.connect(o7); } catch(e) {  }
try { o9.connect(o4); } catch(e) {  }
try { o4.listener.setOrientation(1, 2048, 1, 1, 0, 31) } catch(e) {  }
try { o2.connect(o9); } catch(e) {  }
try { o7.connect(o1); } catch(e) {  }
try { o1.listener.speedOfSound = 256; } catch(e) {  }
try { o2.connect(o7); } catch(e) {  }
try { o9.connect(o4); } catch(e) {  }
try { o4.listener.setVelocity(1, 67108864, 128) } catch(e) {  }
setTimeout("try { o1.listener.setVelocity(0, 1, 1) } catch(e) {  }",100)
try { o2.connect(o9); } catch(e) {  }
try { o9.connect(o1); } catch(e) {  }
setTimeout("try { o20 = o1.createBiquadFilter(); } catch(e) {  }",200)
try { o13.gain.value = 4096; } catch(e) {  }
try { o1.listener.dopplerFactor = 0; } catch(e) {  }
try { o2.connect(o7); } catch(e) {  }
try { o9.connect(o1); } catch(e) {  }
try { o2.connect(o9); } catch(e) {  }
try { o7.connect(o4); } catch(e) {  }
setTimeout("try { o2.connect(o9); } catch(e) {  }",200)
try { o7.connect(o1); } catch(e) {  }
try { o3.connect(o15, 1, 1) } catch(e) {  }
try { o2.connect(o12, 0, 0) } catch(e) {  }
try { o19.gain.exponentialRampToValueAtTime(1, 0) } catch(e) {  }
try { o2.connect(o7); } catch(e) {  }
try { o7.connect(o4); } catch(e) {  }
try { o2.connect(o7); } catch(e) {  }
try { o9.connect(o1); } catch(e) {  }
try { o2.connect(o7); } catch(e) {  }
try { o7.connect(o4); } catch(e) {  }

function done() {
  ok(true, "We did not crash.");
  SimpleTest.finish();
}


</script>
</pre>
</body>
</html>