summaryrefslogtreecommitdiffstats
path: root/dom/media/test/crashtests/910171-1.html
blob: 9f3ec831be10b9968dfbebe7d523498ae288014f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<!DOCTYPE html>
<html class="reftest-wait">
<script>
var context = new window.OfflineAudioContext(1, 4096, 48000);
context.oncomplete = function(e) {
    document.documentElement.removeAttribute("class");
};
var delay = context.createDelay();
delay.connect(context.destination);
delay.delayTime.value = 1.0;
var buffer = context.createBuffer(1, 2048, context.sampleRate);
var source = context.createBufferSource();
source.buffer = buffer;
source.connect(delay);
source.start();
context.startRendering();
</script>