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 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 .notThrow(); | 316 .notThrow(); |
317 should(node.channelInterpretation, 'node.channelInterpretation') | 317 should(node.channelInterpretation, 'node.channelInterpretation') |
318 .beEqualTo(currentInterpretation); | 318 .beEqualTo(currentInterpretation); |
319 // Destination node channel count: should throw IndexSizeError on invalid | 319 // Destination node channel count: should throw IndexSizeError on invalid |
320 // channel count. shouldNotThrow() method cannot be used because the error | 320 // channel count. shouldNotThrow() method cannot be used because the error |
321 // message includes the number of channels, which can change depending on | 321 // message includes the number of channels, which can change depending on |
322 // the actual attached hardware. | 322 // the actual attached hardware. |
323 should( | 323 should( |
324 () => context.destination.channelCount = 99, | 324 () => context.destination.channelCount = 99, |
325 'context.destination.channelCount = 99') | 325 'context.destination.channelCount = 99') |
326 .throw('IndexSizeError'); | 326 .throw('IndexSizeError', { omitErrorMessage: true }); |
327 | 327 |
328 task.done(); | 328 task.done(); |
329 }); | 329 }); |
330 | 330 |
331 audit.define('audioparam', (task, should) => { | 331 audit.define('audioparam', (task, should) => { |
332 // AudioParams | 332 // AudioParams |
333 param = context.createGain().gain; | 333 param = context.createGain().gain; |
334 should( | 334 should( |
335 () => param.setValueCurveAtTime(null, 0, 0), | 335 () => param.setValueCurveAtTime(null, 0, 0), |
336 'param.setValueCurveAtTime(null, 0, 0)') | 336 'param.setValueCurveAtTime(null, 0, 0)') |
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
701 should(source.noteOn, 'source.noteOn').beEqualTo(undefined); | 701 should(source.noteOn, 'source.noteOn').beEqualTo(undefined); |
702 should(source.noteOff, 'source.noteOff').beEqualTo(undefined); | 702 should(source.noteOff, 'source.noteOff').beEqualTo(undefined); |
703 | 703 |
704 task.done(); | 704 task.done(); |
705 }); | 705 }); |
706 | 706 |
707 audit.run(); | 707 audit.run(); |
708 </script> | 708 </script> |
709 </body> | 709 </body> |
710 </html> | 710 </html> |
OLD | NEW |