summaryrefslogtreecommitdiffstats
path: root/dom/media/test/crashtests/buffer-source-duration-1.html
blob: df8d7a37d54e2ada94d579298e0ff4b8160573f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<!DOCTYPE html>
<html class="reftest-wait">
<script>
const rate = 44100;
var context = new window.OfflineAudioContext(1, 512, rate);
var buffer = context.createBuffer(1, 128, rate);
var source = context.createBufferSource();
source.buffer = buffer;
source.start(0, 0, 86400);
context.startRendering().
  then(function() {
    document.documentElement.removeAttribute("class");
  });
</script>