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

Side by Side Diff: third_party/WebKit/LayoutTests/webaudio/AudioParam/audioparam-setValueAtTime.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 </head> 9 </head>
10 10
(...skipping 17 matching lines...) Expand all
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698