| 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 </head> | 9 </head> |
| 10 | 10 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 gainNode.gain.setValueAtTime(value, time); | 28 gainNode.gain.setValueAtTime(value, time); |
| 29 } | 29 } |
| 30 | 30 |
| 31 // For testing setValueAtTime(), we don't need to do anything for automation. | 31 // For testing setValueAtTime(), we don't need to do anything for automation. |
| 32 // because the value at the beginning of the interval is set by setValue and it | 32 // because the value at the beginning of the interval is set by setValue and it |
| 33 // remains constant for the duration, which is what we want. | 33 // remains constant for the duration, which is what we want. |
| 34 function automation(value, startTime, endTime) { | 34 function automation(value, startTime, endTime) { |
| 35 // Do nothing. | 35 // Do nothing. |
| 36 } | 36 } |
| 37 | 37 |
| 38 audit.define('test', function(task, should) { | 38 audit.define({ |
| 39 task.describe('AudioParam setValueAtTime() functionality.'); | 39 label: 'test', |
| 40 description: 'AudioParam setValueAtTime() functionality.' |
| 41 }, function(task, should) { |
| 40 createAudioGraphAndTest( | 42 createAudioGraphAndTest( |
| 41 task, should, numberOfTests, 1, setValue, automation, 'setValueAtTime()', | 43 task, should, numberOfTests, 1, setValue, automation, 'setValueAtTime()', |
| 42 maxAllowedError, createConstantArray); | 44 maxAllowedError, createConstantArray); |
| 43 }); | 45 }); |
| 44 | 46 |
| 45 audit.run(); | 47 audit.run(); |
| 46 </script> | 48 </script> |
| 47 | 49 |
| 48 </body> | 50 </body> |
| 49 </html> | 51 </html> |
| OLD | NEW |