OLD | NEW |
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <link rel="stylesheet" href="../js/resources/js-test-style.css"> | 4 <link rel="stylesheet" href="../js/resources/js-test-style.css"> |
5 <script src="../js/resources/js-test-pre.js"></script> | 5 <script src="../js/resources/js-test-pre.js"></script> |
6 </head> | 6 </head> |
7 <body> | 7 <body> |
8 <p id="description"></p> | 8 <p id="description"></p> |
9 <div id="console"></div> | 9 <div id="console"></div> |
10 <script> | 10 <script> |
11 description("Tests the JSEP PeerConnection related constructors."); | 11 description("Tests the JSEP PeerConnection related constructors."); |
12 | 12 |
13 shouldBeTrue("typeof webkitRTCPeerConnection === 'function'"); | 13 shouldBeTrue("typeof webkitRTCPeerConnection === 'function'"); |
14 shouldBeTrue("typeof RTCSessionDescription === 'function'"); | 14 shouldBeTrue("typeof RTCSessionDescription === 'function'"); |
15 shouldBeTrue("typeof RTCIceCandidate === 'function'"); | 15 shouldBeTrue("typeof RTCIceCandidate === 'function'"); |
16 | 16 |
17 shouldThrow("webkitRTCPeerConnection()"); | 17 shouldThrow("webkitRTCPeerConnection()"); |
18 shouldThrow("RTCSessionDescription()"); | 18 shouldThrow("RTCSessionDescription()"); |
19 shouldThrow("RTCIceCandidate()"); | 19 shouldThrow("RTCIceCandidate()"); |
20 | 20 |
21 shouldNotThrow("new webkitRTCPeerConnection({iceServers:[{url:'stun://foobar.com
:12345'}]}, null);"); | 21 shouldNotThrow("new webkitRTCPeerConnection({iceServers:[{url:'stun://foobar.com
:12345'}]}, null);"); |
22 shouldNotThrow("new RTCSessionDescription({type:'offer',sdp:'foobar'});"); | 22 shouldNotThrow("new RTCSessionDescription({type:'offer',sdp:'foobar'});"); |
23 shouldNotThrow("new RTCIceCandidate({candidate:'foo'});"); | 23 shouldNotThrow("new RTCIceCandidate({candidate:'foo'});"); |
24 | 24 |
25 window.jsTestIsAsync = false; | 25 window.jsTestIsAsync = false; |
26 </script> | 26 </script> |
27 <script src="../js/resources/js-test-post.js"></script> | |
28 </body> | 27 </body> |
29 </html> | 28 </html> |
OLD | NEW |