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