summaryrefslogtreecommitdiffstats
path: root/dom/media/test/crashtests/offline-buffer-source-ended-1.html
blob: 0631021126bccd4b98b2e965826ad26ddfb52a27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<!DOCTYPE html>
<html class="reftest-wait">
<script>
var context = new window.OfflineAudioContext(1, 12001, 12000);

var source = context.createBufferSource();
source.buffer = context.createBuffer(1, 12000, context.sampleRate);
source.onended = function(e) {
  document.documentElement.removeAttribute("class");
}
source.connect(context.destination);
source.start(0);

context.startRendering();
</script>