summaryrefslogtreecommitdiffstats
path: root/dom/media/test/crashtests/oscillator-ended-1.html
blob: 831111261c16879a29129604309abf2e4c1b8974 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<!DOCTYPE html>
<html class="reftest-wait">
<script>
function createContext() {
  var context = new window.AudioContext();
  var source = context.createOscillator();
  source.onended = function(e) {
    document.documentElement.removeAttribute("class");
  };
  source.connect(context.destination);
  source.start(0.49);
  source.stop(0.5);
}
createContext();
</script>