|
1 <!DOCTYPE HTML> |
|
2 <html> |
|
3 <head> |
|
4 <title>Tell the cycle collector about the audio contexts owned by nsGlobalWindow</title> |
|
5 <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> |
|
6 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" /> |
|
7 </head> |
|
8 <body> |
|
9 <pre id="test"> |
|
10 <script class="testbody" type="text/javascript"> |
|
11 var iframe = document.createElementNS("http://www.w3.org/1999/xhtml", "iframe"); |
|
12 document.body.appendChild(iframe); |
|
13 var frameWin = iframe.contentWindow; |
|
14 new frameWin.AudioContext(); |
|
15 document.body.removeChild(iframe); |
|
16 new frameWin.AudioContext(); |
|
17 |
|
18 ok(true, "This test should not leak"); |
|
19 </script> |
|
20 </pre> |
|
21 </body> |
|
22 </html> |