1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
4 <link rel="stylesheet" href="../js/resources/js-test-style.css">
5 <script src="../js/resources/js-test-pre.js"></script>
8 <p id="description"></p>
9 <div id="console"></div>
11 description("Tests the JSEP PeerConnection related constructors.");
13 shouldBeTrue("typeof webkitPeerConnection00 === 'function'");
14 shouldBeTrue("typeof SessionDescription === 'function'");
15 shouldBeTrue("typeof IceCandidate === 'function'");
17 shouldNotThrow("new webkitPeerConnection00('STUN foobar.com:12345', function(){});");
18 shouldThrow("new webkitPeerConnection00('STUN foobar.com:12345');");
19 shouldThrow("new webkitPeerConnection00('STUN foobar.com:12345', null);");
20 shouldThrow("new webkitPeerConnection00('STUN foobar.com:12345', undefined);");
21 shouldThrow("new webkitPeerConnection00('STUN foobar.com:12345', 'STUN');");
23 shouldNotThrow("new SessionDescription('');");
24 shouldNotThrow("new IceCandidate('', '');");
26 window.jsTestIsAsync = false;
28 <script src="../js/resources/js-test-post.js"></script>