| 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>
|
|
|