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

Unified Diff: third_party/WebKit/LayoutTests/webaudio/iirfilter.html

Issue 1885723003: Implement Biquad lowpass and highpass filters according to spec (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 7 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
Index: third_party/WebKit/LayoutTests/webaudio/iirfilter.html
diff --git a/third_party/WebKit/LayoutTests/webaudio/iirfilter.html b/third_party/WebKit/LayoutTests/webaudio/iirfilter.html
index f1e9a8b4a68bfe12a3960b5b7adda7f1d28089ef..5f1e42cb396d60036249c63a2d12f3ca2c925292 100644
--- a/third_party/WebKit/LayoutTests/webaudio/iirfilter.html
+++ b/third_party/WebKit/LayoutTests/webaudio/iirfilter.html
@@ -238,13 +238,13 @@
// Thresholds here are experimentally determined.
var biquadTestConfigs = [{
filterType: "lowpass",
- snrThreshold: 91.222,
+ snrThreshold: 91.221,
errorThreshold: {
- relativeThreshold: 4.15e-5
+ relativeThreshold: 4.9834e-5
}
}, {
filterType: "highpass",
- snrThreshold: 107.246,
+ snrThreshold: 105.4590,
errorThreshold: {
absoluteThreshold: 2.9e-6,
relativeThreshold: 3e-5
@@ -552,13 +552,13 @@
})
.beCloseToArray(expected, {
// Thresholds experimentally determined.
- absoluteThreshold: 8.4e-8,
- relativeThreshold: 5e-7,
+ absoluteThreshold: 1.59e-7,
+ relativeThreshold: 2.11e-5,
});
var snr = 10*Math.log10(computeSNR(actual, expected));
Should("SNR of 4-th order IIRFilter (biquad ref)", snr)
- .beGreaterThanOrEqualTo(110.684);
+ .beGreaterThanOrEqualTo(108.947);
}).then(done);
});

Powered by Google App Engine
This is Rietveld 408576698