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

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

Issue 670863002: Rebase oscillator sine test result. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase and update TestExpectations 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
Index: LayoutTests/webaudio/oscillator-sine.html
diff --git a/LayoutTests/webaudio/oscillator-sine.html b/LayoutTests/webaudio/oscillator-sine.html
index 4d716ed469615f2ce59b7a7340674399dcc069d7..19da1e618ebed30a9faa7a16141b7eaf220ded73 100644
--- a/LayoutTests/webaudio/oscillator-sine.html
+++ b/LayoutTests/webaudio/oscillator-sine.html
@@ -21,7 +21,14 @@ function init() {
if (!window.testRunner)
return;
- generateExponentialOscillatorSweep("sine");
+ // Create offline audio context.
+ context = new OfflineAudioContext(1, sampleRate * lengthInSeconds, sampleRate);
+ generateExponentialOscillatorSweep(context, "sine");
+
+ context.oncomplete = finishAudioTest;
+ context.startRendering();
+
+ testRunner.waitUntilDone();
}
</script>

Powered by Google App Engine
This is Rietveld 408576698