| Index: third_party/WebKit/LayoutTests/fast/mediastream/MediaStreamTrack-gc-no-crash.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/mediastream/MediaStreamTrack-gc-no-crash.html b/third_party/WebKit/LayoutTests/fast/mediastream/MediaStreamTrack-gc-no-crash.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..cac71576ee663f1a369859fcd75cb67ff7689490
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/fast/mediastream/MediaStreamTrack-gc-no-crash.html
|
| @@ -0,0 +1,27 @@
|
| +<!DOCTYPE html>
|
| +<html>
|
| +<head>
|
| +<script src="../../resources/js-test.js"></script>
|
| +</head>
|
| +<body>
|
| +<script>
|
| +description("Verify that MediaStreamTracks aren't prematurely garbage collected.");
|
| +
|
| +if (window.testRunner)
|
| + testRunner.dumpAsText();
|
| +
|
| +var jsTestIsAsync = true;
|
| +
|
| +function finishUp() {
|
| + gc();
|
| + finishJSTest();
|
| +}
|
| +
|
| +navigator.webkitGetUserMedia({audio: true,video: true},function (stream) {
|
| + var vidTrack = stream.getVideoTracks()[0];
|
| + vidTrack.onended = function () { };
|
| + }, function () {} );
|
| +setTimeout(finishUp);
|
| +</script>
|
| +</body>
|
| +</html>
|
|
|