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 <script src="../../resources/js-test.js"></script> | 4 <script src="../../resources/js-test.js"></script> |
5 </head> | 5 </head> |
6 <body> | 6 <body> |
7 <p id="description"></p> | 7 <p id="description"></p> |
8 <div id="console"></div> | 8 <div id="console"></div> |
9 <script> | 9 <script> |
10 description("Tests the JSEP PeerConnection related constructors."); | 10 description("Tests the JSEP PeerConnection related constructors."); |
11 | 11 |
12 shouldBeTrue("typeof webkitRTCPeerConnection === 'function'"); | 12 shouldBeTrue("typeof RTCPeerConnection === 'function'"); |
13 shouldBeTrue("typeof RTCSessionDescription === 'function'"); | 13 shouldBeTrue("typeof RTCSessionDescription === 'function'"); |
14 shouldBeTrue("typeof RTCIceCandidate === 'function'"); | 14 shouldBeTrue("typeof RTCIceCandidate === 'function'"); |
15 | 15 |
16 shouldThrow("webkitRTCPeerConnection()"); | 16 shouldThrow("RTCPeerConnection()"); |
17 shouldThrow("RTCSessionDescription()"); | 17 shouldThrow("RTCSessionDescription()"); |
18 shouldThrow("RTCIceCandidate()"); | 18 shouldThrow("RTCIceCandidate()"); |
19 | 19 |
20 shouldNotThrow("new webkitRTCPeerConnection({iceServers:[{url:'stun://foobar.com
:12345'}]}, null);"); | 20 shouldNotThrow("new RTCPeerConnection({iceServers:[{url:'stun://foobar.com:12345
'}]}, null);"); |
21 shouldNotThrow("new RTCSessionDescription({type:'offer',sdp:'foobar'});"); | 21 shouldNotThrow("new RTCSessionDescription({type:'offer',sdp:'foobar'});"); |
22 shouldNotThrow("new RTCIceCandidate({candidate:'foo'});"); | 22 shouldNotThrow("new RTCIceCandidate({candidate:'foo'});"); |
23 | 23 |
24 window.jsTestIsAsync = false; | 24 window.jsTestIsAsync = false; |
25 </script> | 25 </script> |
26 </body> | 26 </body> |
27 </html> | 27 </html> |
OLD | NEW |