Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(47)

Side by Side Diff: third_party/WebKit/LayoutTests/webaudio/AudioParam/audioparam-exponentialRampToValueAtTime.html

Issue 2727663003: Move task.describe to audit.define arg (Closed)
Patch Set: Fix up expected results Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698