| 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);
|
| });
|
|
|
|
|