summaryrefslogtreecommitdiffstats
path: root/dom/media/test/crashtests/oscillator-ended-2.html
blob: ee9b8cf300844d228e0b9537a08fccbaca000ad0 (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(60);
  source.stop(0.5);
}
createContext();
</script>