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

Unified Diff: LayoutTests/webaudio/oscillator-square.html

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-sine-expected.wav ('k') | LayoutTests/webaudio/oscillator-triangle.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/webaudio/oscillator-square.html
diff --git a/LayoutTests/webaudio/oscillator-square.html b/LayoutTests/webaudio/oscillator-square.html
index 52b74afa69a2ebfd0a0931b23eb3afeb35491b80..bbbd4f014a4d69a2d93a8de6ea40e11792b001e0 100644
--- a/LayoutTests/webaudio/oscillator-square.html
+++ b/LayoutTests/webaudio/oscillator-square.html
@@ -21,7 +21,14 @@ function init() {
if (!window.testRunner)
return;
- generateExponentialOscillatorSweep("square");
+ // Create offline audio context.
+ context = new OfflineAudioContext(1, sampleRate * lengthInSeconds, sampleRate);
+ generateExponentialOscillatorSweep(context, "square");
+
+ context.oncomplete = finishAudioTest;
+ context.startRendering();
+
+ testRunner.waitUntilDone();
}
</script>
« no previous file with comments | « LayoutTests/webaudio/oscillator-sine-expected.wav ('k') | LayoutTests/webaudio/oscillator-triangle.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698