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.setTargetAtTime</title> | 9 <title>Test AudioParam.setTargetAtTime</title> |
10 </head> | 10 </head> |
(...skipping 22 matching lines...) Expand all Loading... |
33 function setValue(value, time) { | 33 function setValue(value, time) { |
34 gainNode.gain.setValueAtTime(value, time); | 34 gainNode.gain.setValueAtTime(value, time); |
35 } | 35 } |
36 | 36 |
37 // Generate an exponential approach starting at |startTime| with a target value | 37 // Generate an exponential approach starting at |startTime| with a target value |
38 // of |value|. | 38 // of |value|. |
39 function automation(value, startTime, endTime){ | 39 function automation(value, startTime, endTime){ |
40 // endTime is not used for setTargetAtTime. | 40 // endTime is not used for setTargetAtTime. |
41 gainNode.gain.setTargetAtTime(value, startTime, timeConstant)} | 41 gainNode.gain.setTargetAtTime(value, startTime, timeConstant)} |
42 | 42 |
43 audit.define('test', function(task, should) { | 43 audit.define({ |
44 task.describe('AudioParam setTargetAtTime() functionality.'); | 44 label: 'test', |
| 45 description: 'AudioParam setTargetAtTime() functionality.' |
| 46 }, function(task, should) { |
45 createAudioGraphAndTest( | 47 createAudioGraphAndTest( |
46 task, should, numberOfTests, initialValue, setValue, automation, | 48 task, should, numberOfTests, initialValue, setValue, automation, |
47 'setTargetAtTime()', maxAllowedError, createExponentialApproachArray); | 49 'setTargetAtTime()', maxAllowedError, createExponentialApproachArray); |
48 }); | 50 }); |
49 | 51 |
50 audit.run(); | 52 audit.run(); |
51 </script> | 53 </script> |
52 | 54 |
53 </body> | 55 </body> |
54 </html> | 56 </html> |
OLD | NEW |