blob: 534bad8ef0de6620a8170ad1fc75091a70275ab1 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<link rel="stylesheet" href="../js/resources/js-test-style.css">
<script src="../js/resources/js-test-pre.js"></script>
</head>
<body>
<p id="description"></p>
<div id="console"></div>
<script>
description("Tests the JSEP PeerConnection related constructors.");
shouldBeTrue("typeof webkitRTCPeerConnection === 'function'");
shouldBeTrue("typeof RTCSessionDescription === 'function'");
shouldBeTrue("typeof RTCIceCandidate === 'function'");
shouldThrow("webkitRTCPeerConnection()");
shouldThrow("RTCSessionDescription()");
shouldThrow("RTCIceCandidate()");
shouldNotThrow("new webkitRTCPeerConnection({iceServers:[{url:'stun://foobar.com:12345'}]}, null);");
shouldNotThrow("new RTCSessionDescription({type:'offer',sdp:'foobar'});");
shouldNotThrow("new RTCIceCandidate({candidate:'foo'});");
window.jsTestIsAsync = false;
</script>
<script src="../js/resources/js-test-post.js"></script>
</body>
</html>