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

Unified Diff: third_party/WebKit/LayoutTests/webaudio/Analyser/realtimeanalyser-fft-scaling.html

Issue 2629543005: Test FFT scaling for all orders (Closed)
Patch Set: Wrap line better Created 3 years, 11 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/Analyser/realtimeanalyser-fft-scaling.html
diff --git a/third_party/WebKit/LayoutTests/webaudio/Analyser/realtimeanalyser-fft-scaling.html b/third_party/WebKit/LayoutTests/webaudio/Analyser/realtimeanalyser-fft-scaling.html
index 2ee683ca0763547d63226e3a85ff330be6bb9474..3573944adbade8a5dcdf2fb0a5e2c7012ba30c5c 100644
--- a/third_party/WebKit/LayoutTests/webaudio/Analyser/realtimeanalyser-fft-scaling.html
+++ b/third_party/WebKit/LayoutTests/webaudio/Analyser/realtimeanalyser-fft-scaling.html
@@ -14,9 +14,9 @@
<script>
let audit = Audit.createTaskRunner();
- // The number of analysers. We have analysers from size for each of the possible sizes of 32,
- // 64, 128, 256, 512, 1024 and 2048 for a total of 7.
- let numberOfAnalysers = 7;
+ // The number of analysers. We have analysers from size for each of the
+ // possible sizes of 2^5 to 2^15 for a total of 11.
+ let numberOfAnalysers = 11;
let sampleRate = 44100;
let nyquistFrequency = sampleRate / 2;
@@ -34,7 +34,9 @@
// determined experimentally.
//
// See https://code.google.com/p/chromium/issues/detail?id=341596.
- let peakThreshold = [-14.43, -13.56, -13.56, -13.56, -13.56, -13.56, -13.56];
+ let peakThreshold = [-14.43, -13.56, -13.56, -13.56, -13.56, -13.56,
+ -13.56, -13.56, -13.56, -13.56, -13.56
+ ];
function checkResult(order, analyser, should) {
return function () {
@@ -68,9 +70,10 @@
audit.define("FFT scaling tests", function (task, should) {
task.describe("Test Scaling of FFT in AnalyserNode");
let tests = [];
- for (let k = 5; k < 12; ++k)
+ for (let k = 5; k <= 15; ++k)
tests.push(runTest(k, should));
+ // The order in which the tests finish is not important.
Promise.all(tests)
.then(task.done.bind(task));
});
« 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