summaryrefslogtreecommitdiffstats
path: root/dom/media/test/crashtests/empty-buffer-source.html
blob: 2ce48a9ec1554b72e17a7ed2faac2ac8eddd2d51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<!DOCTYPE html>
<html class="reftest-wait">
<head>
  <title>Bug 1636540: AudioBufferSourceNode with empty buffer</title>
  <script>
const offline = new OfflineAudioContext({length: 128, sampleRate: 16384});
const buffer = new AudioBuffer({length: 1, sampleRate: 21725});
const node = new AudioBufferSourceNode(offline, {buffer: buffer});
node.start(5/offline.sampleRate);
offline.startRendering().then(
  () => document.documentElement.removeAttribute("class"));
  </script>
</head>
</html>