summaryrefslogtreecommitdiffstats
path: root/dom/media/webaudio/test/test_nodeCreationDocumentGone.html
blob: 07a4f7a97d644b0ac15a692318906836d645c01d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<!DOCTYPE HTML>
<html>
<head>
  <title>Test whether we can create an AudioContext interface</title>
  <script src="/tests/SimpleTest/SimpleTest.js"></script>
  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<body>
<pre id="test">
<script class="testbody" type="text/javascript">

SimpleTest.requestCompleteLog();
SimpleTest.waitForExplicitFinish();

var a = window.open("file_nodeCreationDocumentGone.html");
a.onbeforeunload = function() {
  setTimeout(function(){
    try {
      a.context.createScriptProcessor(512, 1, 1);
    } catch(e) {
      ok (true,"got exception");
    }
    setTimeout(function() {
      ok (true,"no crash");
      SimpleTest.finish();
    }, 0);
  }, 0);
}


</script>
</pre>
</body>
</html>