blob: a94449ef60fcebeea2812e9c34a78e9189febb26 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<script src="../../resources/js-test-pre.js"></script>
<script>
self.jsTestIsAsync = true;
if (window.internals)
internals.useMockRTCPeerConnectionFactory("LibWebRTCReleasingWhileGettingStats");
(function() {
var pc = new RTCPeerConnection();
pc.getStats();
pc.close();
})();
if (window.GCController)
GCController.collect();
setTimeout(finishJSTest, 100);
</script>
<div style="font-family: WebFont;">This test makes sure that RTCPeerConnection will free itself correctly even if released from the network thread.</div>
<script src="../../resources/js-test-post.js"></script>
</body>
</html>