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

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

Issue 2895963003: Apply layout-test-tidy to LayoutTests/webaudio (Closed)
Patch Set: Created 3 years, 7 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>
2 <html> 2 <html>
3 <head> 3 <head>
4 <title>
5 Test AudioParam.exponentialRampToValueAtTime
6 </title>
4 <script src="../../resources/testharness.js"></script> 7 <script src="../../resources/testharness.js"></script>
5 <script src="../../resources/testharnessreport.js"></script> 8 <script src="../../resources/testharnessreport.js"></script>
6 <script src="../resources/audit-util.js"></script> 9 <script src="../resources/audit-util.js"></script>
7 <script src="../resources/audit.js"></script> 10 <script src="../resources/audit.js"></script>
8 <script src="../resources/audioparam-testing.js"></script> 11 <script src="../resources/audioparam-testing.js"></script>
9 <title>Test AudioParam.exponentialRampToValueAtTime</title>
10 </head> 12 </head>
11
12 <body> 13 <body>
13 <script> 14 <script id="layout-test-code">
14 let audit = Audit.createTaskRunner(); 15 let audit = Audit.createTaskRunner();
15 16
16 // Play a long DC signal out through an AudioGainNode, and call 17 // Play a long DC signal out through an AudioGainNode, and call
17 // setValueAtTime() and exponentialRampToValueAtTime() at regular 18 // setValueAtTime() and exponentialRampToValueAtTime() at regular
18 // intervals to set the starting and ending values for an exponential 19 // intervals to set the starting and ending values for an exponential
19 // ramp. Each time interval has a ramp with a different starting and 20 // ramp. Each time interval has a ramp with a different starting and
20 // ending value so that there is a discontinuity at each time interval 21 // ending value so that there is a discontinuity at each time interval
21 // boundary. The discontinuity is for testing timing. Also, we alternate 22 // boundary. The discontinuity is for testing timing. Also, we alternate
22 // between an increasing and decreasing ramp for each interval. 23 // between an increasing and decreasing ramp for each interval.
23 24
(...skipping 27 matching lines...) Expand all
51 }, 52 },
52 function(task, should) { 53 function(task, should) {
53 createAudioGraphAndTest( 54 createAudioGraphAndTest(
54 task, should, numberOfTests, initialValue, setValue, 55 task, should, numberOfTests, initialValue, setValue,
55 generateRamp, 'exponentialRampToValueAtTime()', maxAllowedError, 56 generateRamp, 'exponentialRampToValueAtTime()', maxAllowedError,
56 createExponentialRampArray); 57 createExponentialRampArray);
57 }); 58 });
58 59
59 audit.run(); 60 audit.run();
60 </script> 61 </script>
61
62 </body> 62 </body>
63 </html> 63 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698