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

Unified Diff: third_party/WebKit/LayoutTests/webaudio/AudioBufferSource/audiobuffersource-playbackrate-modulation.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/AudioBufferSource/audiobuffersource-playbackrate-modulation.html
diff --git a/third_party/WebKit/LayoutTests/webaudio/AudioBufferSource/audiobuffersource-playbackrate-modulation.html b/third_party/WebKit/LayoutTests/webaudio/AudioBufferSource/audiobuffersource-playbackrate-modulation.html
index 89d3e3c9b1babe5a381e4a9bc6be4b215b35218a..446bd4364f1f4413de33d782a7c7fa53e2265da2 100644
--- a/third_party/WebKit/LayoutTests/webaudio/AudioBufferSource/audiobuffersource-playbackrate-modulation.html
+++ b/third_party/WebKit/LayoutTests/webaudio/AudioBufferSource/audiobuffersource-playbackrate-modulation.html
@@ -56,48 +56,13 @@
bitDepth: 16
});
+ var filename = 'audiobuffersource-playbackrate-modulation-actual.wav';
+ if (downloadAudioBuffer(renderedBuffer, filename))
+ Should("Saved reference file", true).summarize(filename, "");
}).then(done);
});
- // Task: Create a new reference audio file. See .runTasks() below to run
- // this task.
- audit.defineTask('generate-reference', function (done) {
- if (!window.testRunner) {
- done();
- return;
- }
-
- // With this setting, the playback rate will be changing continuously and
- // repeatedly within the range of [0, 200] around 100Hz, based on the
- // input from the oscillator.
- createSawtoothWithModulation(context, 'playbackRate', 100, 100);
-
- // |finishAudioTest| will automatically create a reference audio file from
- // the OAC rendering if the reference file does not exist.
- context.oncomplete = finishAudioTest;
- context.startRendering();
- testRunner.waitUntilDone();
-
- done();
- });
-
- audit.defineTask('finish', function (done) {
- done();
- });
-
- window.onload = function () {
- audit.runTasks(
- 'load-reference',
- 'generate-verify',
- 'finish'
- );
- };
-
- // Use this task to generate a new reference audio file. Make sure to
- // comment out .runTasks() above before use this.
- // audit.runTasks('generate-reference');
-
- successfullyParsed = true;
+ audit.runTasks();
</script>
</body>

Powered by Google App Engine
This is Rietveld 408576698