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

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

Issue 2658703002: Convert AudioParam Audit tests to testharness (Closed)
Patch Set: Rebase test 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> 1 <!doctype html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../resources/js-test.js"></script> 4 <script src="../../resources/testharness.js"></script>
5 <script src="../../resources/testharnessreport.js"></script>
5 <script src="../resources/audit-util.js"></script> 6 <script src="../resources/audit-util.js"></script>
6 <script src="../resources/audio-testing.js"></script> 7 <script src="../resources/audio-testing.js"></script>
7 <script src="../resources/audioparam-testing.js"></script> 8 <script src="../resources/audioparam-testing.js"></script>
8 <title>Test Sampling for SetTargetAtTime</title> 9 <title>Test Sampling for SetTargetAtTime</title>
9 </head> 10 </head>
10 11
11 <body> 12 <body>
12 <script> 13 <script>
13 description("Test Sampling of SetTargetAtTime");
14 14
15 window.jsTestIsAsync = true;
16 // Some slow sample rate, but otherwise arbitrary. 15 // Some slow sample rate, but otherwise arbitrary.
17 var sampleRate = 12800; 16 var sampleRate = 12800;
18 17
19 // Time constant for setTargetValue. Make it short, but is otherwise arbit rary. 18 // Time constant for setTargetValue. Make it short, but is otherwise arbit rary.
20 var timeConstant = 10 / sampleRate; 19 var timeConstant = 10 / sampleRate;
21 20
22 // Defaut initial gain for test. Arbitrary, but we want it large so the c hanges look large, 21 // Defaut initial gain for test. Arbitrary, but we want it large so the c hanges look large,
23 // even if the relative change isn't. 22 // even if the relative change isn't.
24 var initialGain = 10000; 23 var initialGain = 10000;
25 24
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 audit.defineTask("setter;0.1", function (done) { 83 audit.defineTask("setter;0.1", function (done) {
85 doTest("Initialize by setter", 0.1, 3.6029e-8, initializeGainBySetter).t hen(done); 84 doTest("Initialize by setter", 0.1, 3.6029e-8, initializeGainBySetter).t hen(done);
86 }); 85 });
87 86
88 audit.defineTask("setter;0.0", function (done) { 87 audit.defineTask("setter;0.0", function (done) {
89 doTest("Initialize by setter", 0, 0, initializeGainBySetter).then(done); 88 doTest("Initialize by setter", 0, 0, initializeGainBySetter).then(done);
90 }); 89 });
91 90
92 91
93 audit.defineTask("finish", function (done) { 92 audit.defineTask("finish", function (done) {
94 finishJSTest();
95 done(); 93 done();
96 }); 94 });
97 95
98 audit.runTasks(); 96 audit.runTasks();
99 successfullyParsed = true; 97 successfullyParsed = true;
100 </script> 98 </script>
101 </body> 99 </body>
102 </html> 100 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698