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

Unified Diff: LayoutTests/webaudio/resources/oscillator-testing.js

Issue 670863002: Rebase oscillator sine test result. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month 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 | « LayoutTests/webaudio/oscillator-triangle.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/webaudio/resources/oscillator-testing.js
diff --git a/LayoutTests/webaudio/resources/oscillator-testing.js b/LayoutTests/webaudio/resources/oscillator-testing.js
index b27953d08862eca0a003051c4e5d8db20319e5e5..68e6b9fe14c809f9601f6ba9e7fdad25e8452de0 100644
--- a/LayoutTests/webaudio/resources/oscillator-testing.js
+++ b/LayoutTests/webaudio/resources/oscillator-testing.js
@@ -17,10 +17,7 @@ var lowFrequency = 10;
var highFrequency = nyquist + 2000; // go slightly higher than nyquist to make sure we generate silence there
var context = 0;
-function generateExponentialOscillatorSweep(oscillatorType) {
- // Create offline audio context.
- context = new OfflineAudioContext(1, sampleRate * lengthInSeconds, sampleRate);
-
+function generateExponentialOscillatorSweep(context, oscillatorType) {
var osc = context.createOscillator();
if (oscillatorType == "custom") {
// Create a simple waveform with three Fourier coefficients.
@@ -44,9 +41,4 @@ function generateExponentialOscillatorSweep(oscillatorType) {
var nyquist = 0.5 * sampleRate;
osc.frequency.setValueAtTime(10, 0);
osc.frequency.exponentialRampToValueAtTime(highFrequency, lengthInSeconds);
-
- context.oncomplete = finishAudioTest;
- context.startRendering();
-
- testRunner.waitUntilDone();
}
« no previous file with comments | « LayoutTests/webaudio/oscillator-triangle.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698