| <!DOCTYPE html> |
| <html> |
| <head> |
| </head> |
| <body> |
| <script src="../../resources/js-test-pre.js"></script> |
| <script> |
| self.jsTestIsAsync = true; |
| |
| if (window.internals) |
| internals.useMockRTCPeerConnectionFactory("LibWebRTCReleasingWhileCreatingOffer"); |
| |
| (function() { |
| var pc = new RTCPeerConnection(); |
| pc.addIceCandidate({ candidate : "2013266431 1 udp 2013266432 192.168.0.100 38838 typ host generation 0", sdpMid: "0", sdpMLineIndex: 0 }); |
| pc.createOffer(); |
| 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> |