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

Unified Diff: third_party/WebKit/LayoutTests/webaudio/Oscillator/osc-negative-freq.html

Issue 2756113003: Revert of Reduce runtime of osc-negative-freq test (Closed)
Patch Set: Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/webaudio/Oscillator/osc-negative-freq.html
diff --git a/third_party/WebKit/LayoutTests/webaudio/Oscillator/osc-negative-freq.html b/third_party/WebKit/LayoutTests/webaudio/Oscillator/osc-negative-freq.html
index 6ea9ae395b8c1159a648eed9b239212e622c81d9..32be9c3e5c37a767b9ac42afc2d7a43a54a00e50 100644
--- a/third_party/WebKit/LayoutTests/webaudio/Oscillator/osc-negative-freq.html
+++ b/third_party/WebKit/LayoutTests/webaudio/Oscillator/osc-negative-freq.html
@@ -10,14 +10,9 @@
<body>
<script>
- // Some arbitrary sample rate for the offline context. But it MUST be
- // at least twice the oscillator frequency that we're using for the
- // test. (Currently 440 Hz.)
- var sampleRate = 16000;
-
- // A fairly arbitrary duration that should have at least 1-2 sample
- // periods of the oscillator (at a nominal 440 Hz).
- var renderDuration = 0.1;
+ // Some arbitrary sample rate for the offline context.
+ var sampleRate = 48000;
+ var renderDuration = 1;
var renderFrames = renderDuration * sampleRate;
var audit = Audit.createTaskRunner();
@@ -26,7 +21,7 @@
runTest({
message: "Sum of positive and negative frequency sine oscillators",
type: "sine",
- threshold: 3.5763e-7
+ threshold: 4.7684e-7
}).then(done);
});
@@ -34,7 +29,7 @@
runTest({
message: "Sum of positive and negative frequency square oscillators",
type: "square",
- threshold: 1.4753e-6
+ threshold: 4.4108e-6
}).then(done);
});
@@ -42,7 +37,7 @@
runTest({
message: "Sum of positive and negative frequency sawtooth oscillators",
type: "sawtooth",
- threshold: 1.4753e-6
+ threshold: 4.3735e-6
}).then(done);
});
@@ -50,7 +45,7 @@
runTest({
message: "Sum of positive and negative frequency triangle oscillators",
type: "triangle",
- threshold: 2.9803e-7
+ threshold: 3.5763e-7
}).then(done);
});
@@ -65,7 +60,7 @@
startFrequency: 440,
endFrequency: sampleRate / 4
},
- threshold: 1.2070e-6
+ threshold: 4.1202e-6
}).then(done);
});
@@ -143,7 +138,7 @@
actual, {
precision: 6
})
- .beCloseToArray(expected, 3.5763e-7);
+ .beCloseToArray(expected, 4.7684e-7);
}).then(done);
});
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698