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

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

Issue 2200413005: Update WebAudio layout tests for Android (arm32) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Minor cleanups. Created 4 years, 4 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/js-test.js"></script>
5 <script src="resources/compatibility.js"></script> 5 <script src="resources/compatibility.js"></script>
6 <script src="resources/audio-testing.js"></script> 6 <script src="resources/audio-testing.js"></script>
7 <script src="resources/audioparam-testing.js"></script> 7 <script src="resources/audioparam-testing.js"></script>
8 <title>SetTarget Followed by Linear or Exponential Ramp Is Continuous</title > 8 <title>SetTarget Followed by Linear or Exponential Ramp Is Continuous</title >
9 </head> 9 </head>
10 10
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 audit.defineTask("delayed linear ramp", function (done) { 45 audit.defineTask("delayed linear ramp", function (done) {
46 // Schedule a linear ramp to start after the SetTargetAtTime has already started rendering. 46 // Schedule a linear ramp to start after the SetTargetAtTime has already started rendering.
47 // This is the main test to verify that the linear ramp is continuous wi th the 47 // This is the main test to verify that the linear ramp is continuous wi th the
48 // SetTargetAtTime curve. 48 // SetTargetAtTime curve.
49 runTest("Delayed linear ramp", { 49 runTest("Delayed linear ramp", {
50 automationFunction: function (audioparam, endValue, endTime) { 50 automationFunction: function (audioparam, endValue, endTime) {
51 audioparam.linearRampToValueAtTime(endValue, endTime); 51 audioparam.linearRampToValueAtTime(endValue, endTime);
52 }, 52 },
53 referenceFunction: linearResult, 53 referenceFunction: linearResult,
54 automationTime: 4 * renderQuantum / sampleRate, 54 automationTime: 4 * renderQuantum / sampleRate,
55 thresholdSetTarget: 2.19417e-7, 55 thresholdSetTarget: 3.43632e-7,
56 thresholdRamp: 1.07972e-6 56 thresholdRamp: 1.07972e-6
57 }).then(done); 57 }).then(done);
58 }); 58 });
59 59
60 audit.defineTask("expo ramp replace", function (done) { 60 audit.defineTask("expo ramp replace", function (done) {
61 // Like "linear ramp replace", but with an exponential ramp instead. 61 // Like "linear ramp replace", but with an exponential ramp instead.
62 runTest("Exponential ramp", { 62 runTest("Exponential ramp", {
63 automationFunction: function (audioparam, endValue, endTime) { 63 automationFunction: function (audioparam, endValue, endTime) {
64 audioparam.exponentialRampToValueAtTime(endValue, endTime); 64 audioparam.exponentialRampToValueAtTime(endValue, endTime);
65 }, 65 },
66 referenceFunction: exponentialResult, 66 referenceFunction: exponentialResult,
67 automationTime: renderQuantum / sampleRate, 67 automationTime: renderQuantum / sampleRate,
68 thresholdSetTarget: 0, 68 thresholdSetTarget: 0,
69 thresholdRamp: 1.13249e-5 69 thresholdRamp: 1.14441e-5
70 }).then(done); 70 }).then(done);
71 }); 71 });
72 72
73 audit.defineTask("delayed expo ramp", function (done) { 73 audit.defineTask("delayed expo ramp", function (done) {
74 // Like "delayed linear ramp", but with an exponential ramp instead. 74 // Like "delayed linear ramp", but with an exponential ramp instead.
75 runTest("Delayed exponential ramp", { 75 runTest("Delayed exponential ramp", {
76 automationFunction: function (audioparam, endValue, endTime) { 76 automationFunction: function (audioparam, endValue, endTime) {
77 audioparam.exponentialRampToValueAtTime(endValue, endTime); 77 audioparam.exponentialRampToValueAtTime(endValue, endTime);
78 }, 78 },
79 referenceFunction: exponentialResult, 79 referenceFunction: exponentialResult,
80 automationTime: 4 * renderQuantum / sampleRate, 80 automationTime: 4 * renderQuantum / sampleRate,
81 thresholdSetTarget: 2.19417e-7, 81 thresholdSetTarget: 3.43632e-7,
82 thresholdRamp: 4.17233e-6 82 thresholdRamp: 4.29154e-6
83 }).then(done); 83 }).then(done);
84 }); 84 });
85 85
86 audit.defineTask("finish", function (done) { 86 audit.defineTask("finish", function (done) {
87 finishJSTest(); 87 finishJSTest();
88 done(); 88 done();
89 }); 89 });
90 90
91 audit.runTasks(); 91 audit.runTasks();
92 92
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 225
226 if (success) 226 if (success)
227 testPassed(prefix + " preceded by SetTarget is continuous.\n"); 227 testPassed(prefix + " preceded by SetTarget is continuous.\n");
228 else 228 else
229 testFailed(prefix + " preceded by SetTarget was not continuous.\n"); 229 testFailed(prefix + " preceded by SetTarget was not continuous.\n");
230 }); 230 });
231 } 231 }
232 </script> 232 </script>
233 </body> 233 </body>
234 </html> 234 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698