blob: 3f120da4004254fbd5e63d40c39d3717354aec6b [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<script src="../../resources/js-test-pre.js"></script>
<script>
self.jsTestIsAsync = true;
if (window.testRunner)
testRunner.setWebRTCUnifiedPlanEnabled(false);
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>