Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(27)

Side by Side Diff: third_party/WebKit/LayoutTests/fast/mediastream/MediaStreamTrack-gc-no-crash.html

Issue 1671033002: Do not let go of MediaStreamTracks too early. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698