OLD | NEW |
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> | 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="resources/compatibility.js"></script> | 4 <script src="resources/compatibility.js"></script> |
5 <script src="resources/audio-testing.js"></script> | 5 <script src="resources/audio-testing.js"></script> |
6 <script src="../resources/js-test.js"></script> | 6 <script src="../resources/js-test.js"></script> |
7 <script src="resources/biquad-testing.js"></script> | 7 <script src="resources/biquad-testing.js"></script> |
8 </head> | 8 </head> |
9 | 9 |
10 <body> | 10 <body> |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 testPassed("Invalid oversample value did not change node.oversample"); | 153 testPassed("Invalid oversample value did not change node.oversample"); |
154 else | 154 else |
155 testFailed("node.oversample incorrectly changed to invalid value " + node.
oversample); | 155 testFailed("node.oversample incorrectly changed to invalid value " + node.
oversample); |
156 shouldThrow("node.curve = new Float32Array(1)"); | 156 shouldThrow("node.curve = new Float32Array(1)"); |
157 shouldNotThrow("node.curve = new Float32Array(2)"); | 157 shouldNotThrow("node.curve = new Float32Array(2)"); |
158 | 158 |
159 // Start/stop for AudioBufferSourceNodes | 159 // Start/stop for AudioBufferSourceNodes |
160 buffer = context.createBuffer(1,1, context.sampleRate); | 160 buffer = context.createBuffer(1,1, context.sampleRate); |
161 shouldNotThrow("source = context.createBufferSource()"); | 161 shouldNotThrow("source = context.createBufferSource()"); |
162 shouldNotThrow("source.buffer = buffer"); | 162 shouldNotThrow("source.buffer = buffer"); |
| 163 shouldThrow("source.buffer = buffer"); |
163 shouldThrow("source.start(-1)"); | 164 shouldThrow("source.start(-1)"); |
164 shouldThrow("source.start(Infinity)"); | 165 shouldThrow("source.start(Infinity)"); |
165 shouldThrow("source.start(-Infinity)"); | 166 shouldThrow("source.start(-Infinity)"); |
166 shouldThrow("source.start(NaN)"); | 167 shouldThrow("source.start(NaN)"); |
167 shouldThrow("source.start(1, Infinity)"); | 168 shouldThrow("source.start(1, Infinity)"); |
168 shouldThrow("source.start(1, -Infinity)"); | 169 shouldThrow("source.start(1, -Infinity)"); |
169 shouldThrow("source.start(1, NaN)"); | 170 shouldThrow("source.start(1, NaN)"); |
170 shouldThrow("source.start(1, -1)"); | 171 shouldThrow("source.start(1, -1)"); |
171 shouldThrow("source.start(1, 1, Infinity)"); | 172 shouldThrow("source.start(1, 1, Infinity)"); |
172 shouldThrow("source.start(1, 1, -Infinity)"); | 173 shouldThrow("source.start(1, 1, -Infinity)"); |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 shouldBeUndefined("source.noteOn"); | 268 shouldBeUndefined("source.noteOn"); |
268 shouldBeUndefined("source.noteOff"); | 269 shouldBeUndefined("source.noteOff"); |
269 } | 270 } |
270 | 271 |
271 runTest(); | 272 runTest(); |
272 successfullyParsed = true; | 273 successfullyParsed = true; |
273 | 274 |
274 </script> | 275 </script> |
275 </body> | 276 </body> |
276 </html> | 277 </html> |
OLD | NEW |