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

Side by Side Diff: third_party/WebKit/LayoutTests/webaudio/osc-negative-freq.html

Issue 2076423003: Adjust WebAudio test thresholds for OSX 10.11 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/webaudio/osc-negative-freq-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <title>Test OscillatorNode with Negative Frequency</title> 7 <title>Test OscillatorNode with Negative Frequency</title>
8 </head> 8 </head>
9 9
10 <body> 10 <body>
11 <script> 11 <script>
12 description("Test OscillatorNode with Negative Frequency."); 12 description("Test OscillatorNode with Negative Frequency.");
13 window.jsTestIsAsync = true; 13 window.jsTestIsAsync = true;
14 14
15 // Some arbitrary sample rate for the offline context. 15 // Some arbitrary sample rate for the offline context.
16 var sampleRate = 48000; 16 var sampleRate = 48000;
17 var renderDuration = 1; 17 var renderDuration = 1;
18 var renderFrames = renderDuration * sampleRate; 18 var renderFrames = renderDuration * sampleRate;
19 19
20 var audit = Audit.createTaskRunner(); 20 var audit = Audit.createTaskRunner();
21 21
22 audit.defineTask("sine", function (done) { 22 audit.defineTask("sine", function (done) {
23 runTest({ 23 runTest({
24 message: "Sum of positive and negative frequency sine oscillators", 24 message: "Sum of positive and negative frequency sine oscillators",
25 type: "sine", 25 type: "sine",
26 threshold: 4.1724e-7 26 threshold: 4.7684e-7
27 }).then(done); 27 }).then(done);
28 }); 28 });
29 29
30 audit.defineTask("square", function (done) { 30 audit.defineTask("square", function (done) {
31 runTest({ 31 runTest({
32 message: "Sum of positive and negative frequency square oscillators", 32 message: "Sum of positive and negative frequency square oscillators",
33 type: "square", 33 type: "square",
34 threshold: 4.3959e-6 34 threshold: 4.4108e-6
35 }).then(done); 35 }).then(done);
36 }); 36 });
37 37
38 audit.defineTask("sawtooth", function (done) { 38 audit.defineTask("sawtooth", function (done) {
39 runTest({ 39 runTest({
40 message: "Sum of positive and negative frequency sawtooth oscillators" , 40 message: "Sum of positive and negative frequency sawtooth oscillators" ,
41 type: "sawtooth", 41 type: "sawtooth",
42 threshold: 4.3735e-6 42 threshold: 4.3735e-6
43 }).then(done); 43 }).then(done);
44 }); 44 });
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 var result = buffer.getChannelData(0); 189 var result = buffer.getChannelData(0);
190 190
191 var zero = new Float32Array(result.length); 191 var zero = new Float32Array(result.length);
192 zero.fill(0); 192 zero.fill(0);
193 Should(options.message, result).beCloseToArray(zero, options.threshold || 0); 193 Should(options.message, result).beCloseToArray(zero, options.threshold || 0);
194 }); 194 });
195 } 195 }
196 </script> 196 </script>
197 </body> 197 </body>
198 </html> 198 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/webaudio/osc-negative-freq-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698