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

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

Issue 2708953003: Move task.describe descriptions to audit.define (Closed)
Patch Set: Address review comments. Created 3 years, 10 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.linearRampToValueAtTime</title> 9 <title>Test AudioParam.linearRampToValueAtTime</title>
10 </head> 10 </head>
(...skipping 20 matching lines...) Expand all
31 gainNode.gain.setValueAtTime(value, time); 31 gainNode.gain.setValueAtTime(value, time);
32 } 32 }
33 33
34 // Generate a linear ramp ending at time |endTime| with an ending value of 34 // Generate a linear ramp ending at time |endTime| with an ending value of
35 // |value|. 35 // |value|.
36 function generateRamp(value, startTime, endTime){ 36 function generateRamp(value, startTime, endTime){
37 // |startTime| is ignored because the linear ramp uses the value from the 37 // |startTime| is ignored because the linear ramp uses the value from the
38 // setValueAtTime() call above. 38 // setValueAtTime() call above.
39 gainNode.gain.linearRampToValueAtTime(value, endTime)} 39 gainNode.gain.linearRampToValueAtTime(value, endTime)}
40 40
41 audit.define('test', function(task, should) { 41 audit.define({
42 task.describe('AudioParam linearRampToValueAtTime() functionality'); 42 label: 'test',
43 description: 'AudioParam linearRampToValueAtTime() functionality'
44 }, function(task, should) {
43 createAudioGraphAndTest( 45 createAudioGraphAndTest(
44 task, should, numberOfTests, 1, setValue, generateRamp, 46 task, should, numberOfTests, 1, setValue, generateRamp,
45 'linearRampToValueAtTime()', maxAllowedError, createLinearRampArray); 47 'linearRampToValueAtTime()', maxAllowedError, createLinearRampArray);
46 }); 48 });
47 49
48 audit.run(); 50 audit.run();
49 </script> 51 </script>
50 52
51 </body> 53 </body>
52 </html> 54 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698