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

Unified Diff: third_party/WebKit/LayoutTests/webaudio/Gain/gain.html

Issue 2728613003: Add support creating and saving a new reference file. (Closed)
Patch Set: Fix typo Created 3 years, 10 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/Gain/gain.html
diff --git a/third_party/WebKit/LayoutTests/webaudio/Gain/gain.html b/third_party/WebKit/LayoutTests/webaudio/Gain/gain.html
index b948c31ff543cc6af8cd4048fa7087c22cb5e8d0..b7bf8ccc97d00886b025f0dc2a2f1b31ca1192f1 100644
--- a/third_party/WebKit/LayoutTests/webaudio/Gain/gain.html
+++ b/third_party/WebKit/LayoutTests/webaudio/Gain/gain.html
@@ -107,6 +107,9 @@ audit.define({
});
let snr = 10 * Math.log10(computeSNR(actual, reference));
should(snr, 'SNR (in dB)').beGreaterThanOrEqualTo(89.088);
+ let filename = 'gain-actual.wav';
+ if (downloadAudioBuffer(buffer, filename))
+ should(true, 'Saved reference file').message(filename, "");
})
.then(() => task.done());
;

Powered by Google App Engine
This is Rietveld 408576698