| OLD | NEW |
| 1 <!doctype html> | 1 <!doctype html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../resources/testharness.js"></script> | 4 <script src="../resources/testharness.js"></script> |
| 5 <script src="../resources/testharnessreport.js"></script> | 5 <script src="../resources/testharnessreport.js"></script> |
| 6 <script src="resources/audit-util.js"></script> | 6 <script src="resources/audit-util.js"></script> |
| 7 <script src="resources/audit.js"></script> | 7 <script src="resources/audit.js"></script> |
| 8 <script src="resources/biquad-testing.js"></script> | 8 <script src="resources/biquad-testing.js"></script> |
| 9 </head> | 9 </head> |
| 10 | 10 |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 new Float32Array(10000), new Float32Array(10000)), | 190 new Float32Array(10000), new Float32Array(10000)), |
| 191 'context.createPeriodicWave(new Float32Array(10000), new Float32Array(1000
0))') | 191 'context.createPeriodicWave(new Float32Array(10000), new Float32Array(1000
0))') |
| 192 .notThrow(); | 192 .notThrow(); |
| 193 // Real and imaginary arrays must have the same size: IndexSizeError | 193 // Real and imaginary arrays must have the same size: IndexSizeError |
| 194 should( | 194 should( |
| 195 () => | 195 () => |
| 196 context.createPeriodicWave(new Float32Array(10), new Float32Array(7)), | 196 context.createPeriodicWave(new Float32Array(10), new Float32Array(7)), |
| 197 'context.createPeriodicWave(new Float32Array(10), new Float32Array(7))') | 197 'context.createPeriodicWave(new Float32Array(10), new Float32Array(7))') |
| 198 .throw('IndexSizeError'); | 198 .throw('IndexSizeError'); |
| 199 | 199 |
| 200 if (window.SharedArrayBuffer) { | |
| 201 let shared_view = new Float32Array(new SharedArrayBuffer(4100 * 4)); | |
| 202 let nonshared_view = new Float32Array(4100); | |
| 203 should( | |
| 204 () => context.createPeriodicWave(shared_view, nonshared_view), | |
| 205 'context.createPeriodicWave(shared_view, nonshared_view)') | |
| 206 .throw('TypeError'); | |
| 207 | |
| 208 should( | |
| 209 () => context.createPeriodicWave(nonshared_view, shared_view), | |
| 210 'context.createPeriodicWave(nonshared_view, shared_view)') | |
| 211 .throw('TypeError'); | |
| 212 } | |
| 213 | |
| 214 task.done(); | 200 task.done(); |
| 215 }); | 201 }); |
| 216 | 202 |
| 217 audit.define('createAnalyser', (task, should) => { | 203 audit.define('createAnalyser', (task, should) => { |
| 218 // Analysers | 204 // Analysers |
| 219 node = context.createAnalyser(); | 205 node = context.createAnalyser(); |
| 220 // Invalid fftSize: IndexSizeError | 206 // Invalid fftSize: IndexSizeError |
| 221 shouldThrowAndBeUnchanged(should, node, 'fftSize', '42'); | 207 shouldThrowAndBeUnchanged(should, node, 'fftSize', '42'); |
| 222 shouldThrowAndBeUnchanged(should, node, 'fftSize', '16'); | 208 shouldThrowAndBeUnchanged(should, node, 'fftSize', '16'); |
| 223 should(() => node.fftSize = 32768, 'AnalyserNode.fftSize = 32768').notThrow(); | 209 should(() => node.fftSize = 32768, 'AnalyserNode.fftSize = 32768').notThrow(); |
| (...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 759 should(source.noteOn, 'source.noteOn').beEqualTo(undefined); | 745 should(source.noteOn, 'source.noteOn').beEqualTo(undefined); |
| 760 should(source.noteOff, 'source.noteOff').beEqualTo(undefined); | 746 should(source.noteOff, 'source.noteOff').beEqualTo(undefined); |
| 761 | 747 |
| 762 task.done(); | 748 task.done(); |
| 763 }); | 749 }); |
| 764 | 750 |
| 765 audit.run(); | 751 audit.run(); |
| 766 </script> | 752 </script> |
| 767 </body> | 753 </body> |
| 768 </html> | 754 </html> |
| OLD | NEW |