1 <!DOCTYPE HTML PUBLIC
"-//IETF//DTD HTML//EN">
4 <script src=
"../../resources/js-test.js"></script>
7 <p id=
"description"></p>
8 <div id=
"console"></div>
10 description("Tests the JSEP PeerConnection related constructors.");
12 shouldBeTrue("typeof webkitRTCPeerConnection === 'function'");
13 shouldBeTrue("typeof RTCSessionDescription === 'function'");
14 shouldBeTrue("typeof RTCIceCandidate === 'function'");
16 shouldThrow("webkitRTCPeerConnection()");
17 shouldThrow("RTCSessionDescription()");
18 shouldThrow("RTCIceCandidate()");
20 shouldNotThrow("new webkitRTCPeerConnection({iceServers:[{url:'stun://foobar.com:12345'}]}, null);");
21 shouldNotThrow("new RTCSessionDescription({type:'offer',sdp:'foobar'});");
22 shouldNotThrow("new RTCIceCandidate({candidate:'foo'});");
24 window
.jsTestIsAsync
= false;