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

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

Powered by Google App Engine
This is Rietveld 408576698