test_bug1248229.html (837B)
1 <!DOCTYPE HTML> 2 <html> 3 <head> 4 <title>Test garbage collection of captured stream (bug 1248229)</title> 5 <script src="/tests/SimpleTest/SimpleTest.js"></script> 6 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" /> 7 <script type="text/javascript" src="manifest.js"></script> 8 </head> 9 <body onload="doTest()"> 10 <video id="v" src="vp9.webm"></video> 11 <pre id="test"> 12 <script class="testbody" type="text/javascript"> 13 SimpleTest.waitForExplicitFinish(); 14 15 function doTest() { 16 /* global v */ 17 window.oak = v.mozCaptureStreamUntilEnded(); 18 v.mozCaptureStreamUntilEnded(); 19 v.play(); 20 21 v.onended = function() { 22 info("Got ended."); 23 v.onended = null; 24 SpecialPowers.exactGC(function() { 25 info("GC completed."); 26 v.play(); 27 SimpleTest.finish(); 28 }); 29 } 30 } 31 32 </script> 33 </pre> 34 </body> 35 </html>