| 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/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/audioparam-testing.js"></script> | 8 <script src="../resources/audioparam-testing.js"></script> |
| 9 <title>Test AudioParam.exponentialRampToValueAtTime</title> | 9 <title>Test AudioParam.exponentialRampToValueAtTime</title> |
| 10 </head> | 10 </head> |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 gainNode.gain.setValueAtTime(value, time); | 36 gainNode.gain.setValueAtTime(value, time); |
| 37 } | 37 } |
| 38 | 38 |
| 39 // Generate an exponential ramp ending at time |endTime| with an ending | 39 // Generate an exponential ramp ending at time |endTime| with an ending |
| 40 // value of |value|. | 40 // value of |value|. |
| 41 function generateRamp(value, startTime, endTime){ | 41 function generateRamp(value, startTime, endTime){ |
| 42 // |startTime| is ignored because the exponential ramp | 42 // |startTime| is ignored because the exponential ramp |
| 43 // uses the value from the setValueAtTime() call above. | 43 // uses the value from the setValueAtTime() call above. |
| 44 gainNode.gain.exponentialRampToValueAtTime(value, endTime)} | 44 gainNode.gain.exponentialRampToValueAtTime(value, endTime)} |
| 45 | 45 |
| 46 audit.define('test', function(task, should) { | 46 audit.define( |
| 47 task.describe( | 47 { |
| 48 'AudioParam exponentialRampToValueAtTime() functionality'); | 48 label: 'test', |
| 49 createAudioGraphAndTest( | 49 description: |
| 50 task, should, numberOfTests, initialValue, setValue, generateRamp, | 50 'AudioParam exponentialRampToValueAtTime() functionality' |
| 51 'exponentialRampToValueAtTime()', maxAllowedError, | 51 }, |
| 52 createExponentialRampArray); | 52 function(task, should) { |
| 53 }); | 53 createAudioGraphAndTest( |
| 54 task, should, numberOfTests, initialValue, setValue, |
| 55 generateRamp, 'exponentialRampToValueAtTime()', maxAllowedError, |
| 56 createExponentialRampArray); |
| 57 }); |
| 54 | 58 |
| 55 audit.run(); | 59 audit.run(); |
| 56 </script> | 60 </script> |
| 57 | 61 |
| 58 </body> | 62 </body> |
| 59 </html> | 63 </html> |
| OLD | NEW |