1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/content/media/webaudio/test/test_bug827541.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,22 @@ 1.4 +<!DOCTYPE HTML> 1.5 +<html> 1.6 +<head> 1.7 + <title>Tell the cycle collector about the audio contexts owned by nsGlobalWindow</title> 1.8 + <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> 1.9 + <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" /> 1.10 +</head> 1.11 +<body> 1.12 +<pre id="test"> 1.13 +<script class="testbody" type="text/javascript"> 1.14 + var iframe = document.createElementNS("http://www.w3.org/1999/xhtml", "iframe"); 1.15 + document.body.appendChild(iframe); 1.16 + var frameWin = iframe.contentWindow; 1.17 + new frameWin.AudioContext(); 1.18 + document.body.removeChild(iframe); 1.19 + new frameWin.AudioContext(); 1.20 + 1.21 + ok(true, "This test should not leak"); 1.22 +</script> 1.23 +</pre> 1.24 +</body> 1.25 +</html>