| 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 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 348 }); | 348 }); |
| 349 | 349 |
| 350 audit.define('audioparam', (task, should) => { | 350 audit.define('audioparam', (task, should) => { |
| 351 // AudioParams | 351 // AudioParams |
| 352 param = context.createGain().gain; | 352 param = context.createGain().gain; |
| 353 should( | 353 should( |
| 354 () => param.setValueCurveAtTime(null, 0, 0), | 354 () => param.setValueCurveAtTime(null, 0, 0), |
| 355 'param.setValueCurveAtTime(null, 0, 0)') | 355 'param.setValueCurveAtTime(null, 0, 0)') |
| 356 .throw(); | 356 .throw(); |
| 357 | 357 |
| 358 if (window.SharedArrayBuffer) { | |
| 359 should( | |
| 360 () => param.setValueCurveAtTime(new Float32Array(new SharedArrayBuffer(1
6)), 0, 0), | |
| 361 'param.setValueCurveAtTime(SharedArrayBuffer view, 0, 0)') | |
| 362 .throw(); | |
| 363 } | |
| 364 | |
| 365 // exponentialRampToValue should throw only for "zero" target values. | 358 // exponentialRampToValue should throw only for "zero" target values. |
| 366 should( | 359 should( |
| 367 () => node.gain.exponentialRampToValueAtTime(-1, 0.1), | 360 () => node.gain.exponentialRampToValueAtTime(-1, 0.1), |
| 368 'node.gain.exponentialRampToValueAtTime(-1, 0.1)') | 361 'node.gain.exponentialRampToValueAtTime(-1, 0.1)') |
| 369 .notThrow(); | 362 .notThrow(); |
| 370 should( | 363 should( |
| 371 () => node.gain.exponentialRampToValueAtTime(0, 0.1), | 364 () => node.gain.exponentialRampToValueAtTime(0, 0.1), |
| 372 'node.gain.exponentialRampToValueAtTime(0, 0.1)') | 365 'node.gain.exponentialRampToValueAtTime(0, 0.1)') |
| 373 .throw(); | 366 .throw(); |
| 374 // 1e-100 is 0 when converted to a single precision float. | 367 // 1e-100 is 0 when converted to a single precision float. |
| (...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 745 should(source.noteOn, 'source.noteOn').beEqualTo(undefined); | 738 should(source.noteOn, 'source.noteOn').beEqualTo(undefined); |
| 746 should(source.noteOff, 'source.noteOff').beEqualTo(undefined); | 739 should(source.noteOff, 'source.noteOff').beEqualTo(undefined); |
| 747 | 740 |
| 748 task.done(); | 741 task.done(); |
| 749 }); | 742 }); |
| 750 | 743 |
| 751 audit.run(); | 744 audit.run(); |
| 752 </script> | 745 </script> |
| 753 </body> | 746 </body> |
| 754 </html> | 747 </html> |
| OLD | NEW |