OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <html> | |
3 <head> | |
4 <script src="../../resources/js-test.js"></script> | |
5 </head> | |
6 <body> | |
7 <script> | |
8 description("Verify that MediaStreamTracks aren't prematurely garbage collected. "); | |
9 | |
10 if (window.testRunner) | |
11 testRunner.dumpAsText(); | |
12 | |
13 var jsTestIsAsync = true; | |
14 | |
15 function finishUp() { | |
16 gc(); | |
17 finishJSTest(); | |
18 } | |
19 | |
20 navigator.webkitGetUserMedia({audio: true,video: true},function (stream) { | |
21 var vidTrack = stream.getVideoTracks()[0]; | |
22 vidTrack.onended = function () { }; | |
23 }, function () {} ); | |
24 setTimeout(finishUp); | |
25 </script> | |
26 </body> | |
27 </html> | |
OLD | NEW |