summaryrefslogtreecommitdiffstats
path: root/dom/media/test/crashtests/1708790.html
blob: ee97a31c813b4f404f4bb00e8ffed149fccb6db7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<html class="reftest-wait">
<head>
<script>
(async _ => {
  try {
    const audio = document.createElement('audio');
    audio.src = 'sound.ogg';
    const ac = new AudioContext();
    const src = ac.createMediaElementSource(audio);
    src.connect(ac.destination);
    await audio.play();
    audio.pause();
    audio.volume = 0.5;
    audio.playbackRate = 0.5;
    audio.preservesPitch = false;
  } finally {
    document.documentElement.removeAttribute("class")
  }
})()
</script>
</head>
</html>