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