| 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 <script> | 7 <script> |
| 8 description("Tests the RTCPeerConnection constructor."); | 8 description("Tests the RTCPeerConnection constructor."); |
| 9 | 9 |
| 10 shouldBe("webkitRTCPeerConnection", "RTCPeerConnection"); | 10 shouldBe("webkitRTCPeerConnection", "RTCPeerConnection"); |
| 11 | 11 |
| 12 shouldNotThrow("new RTCPeerConnection(null);"); | 12 shouldNotThrow("new RTCPeerConnection(null);"); |
| 13 shouldNotThrow("new RTCPeerConnection(undefined);"); | 13 shouldNotThrow("new RTCPeerConnection(undefined);"); |
| 14 shouldNotThrow("new RTCPeerConnection({});"); | 14 shouldNotThrow("new RTCPeerConnection({});"); |
| 15 shouldNotThrow("new RTCPeerConnection();"); | 15 shouldNotThrow("new RTCPeerConnection();"); |
| 16 shouldThrow("new RTCPeerConnection('');"); | 16 shouldThrow("new RTCPeerConnection('');"); |
| 17 | 17 |
| 18 shouldNotThrow("new RTCPeerConnection({iceServers:[]});"); | 18 shouldNotThrow("new RTCPeerConnection({iceServers:[]});"); |
| 19 shouldNotThrow("new RTCPeerConnection({iceServers:[{url:'stun:foo.com'}]});"); | 19 shouldNotThrow("new RTCPeerConnection({iceServers:[{url:'stun:foo.com'}]});"); |
| 20 shouldNotThrow("new RTCPeerConnection({iceServers:[{url:'turn:foo.com', credenti
al:'x'}]});"); | 20 shouldNotThrow("new RTCPeerConnection({iceServers:[{url:'turn:foo.com', username
:'x', credential:'x'}]});"); |
| 21 shouldNotThrow("new RTCPeerConnection({iceServers:[{url:'turn:foo.com', credenti
al:'x'},{url:'stun:bar.com'}]});"); | 21 shouldNotThrow("new RTCPeerConnection({iceServers:[{url:'turn:foo.com', username
:'x', credential:'x'},{url:'stun:bar.com'}]});"); |
| 22 shouldNotThrow("new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});"); | 22 shouldNotThrow("new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});"); |
| 23 shouldNotThrow("new RTCPeerConnection({iceServers:[{urls:['stun:foo.com', 'turn:
foo.com']}]});"); | 23 shouldNotThrow("new RTCPeerConnection({iceServers:[{urls:['stun:foo.com', 'turn:
foo.com'], username:'x', credential:'x'}]});"); |
| 24 shouldThrow("new RTCPeerConnection({iceServers:[{urls:['stun:foo.com', 'turn:foo
.com']}]});"); |
| 24 | 25 |
| 25 shouldNotThrow("new RTCPeerConnection({fooServers:[]});"); | 26 shouldNotThrow("new RTCPeerConnection({fooServers:[]});"); |
| 26 shouldThrow("new RTCPeerConnection({iceServers:true});"); | 27 shouldThrow("new RTCPeerConnection({iceServers:true});"); |
| 27 shouldThrow("new RTCPeerConnection({iceServers:[1, 2, 3]});"); | 28 shouldThrow("new RTCPeerConnection({iceServers:[1, 2, 3]});"); |
| 28 shouldThrow("new RTCPeerConnection({iceServers:[{}]});"); | 29 shouldThrow("new RTCPeerConnection({iceServers:[{}]});"); |
| 29 shouldThrow("new RTCPeerConnection({iceServers:[{url:'foo'}]});"); | 30 shouldThrow("new RTCPeerConnection({iceServers:[{url:'foo'}]});"); |
| 30 shouldThrow("new RTCPeerConnection({iceServers:[{urls:'unsupported:scheme'}]});"
); | 31 shouldThrow("new RTCPeerConnection({iceServers:[{urls:'unsupported:scheme'}]});"
); |
| 31 shouldThrow("new RTCPeerConnection({iceServers:[{urls:[1, 'turn:foo.com']}]});")
; | 32 shouldThrow("new RTCPeerConnection({iceServers:[{urls:[1, 'turn:foo.com']}]});")
; |
| 32 | 33 |
| 33 shouldNotThrow("new RTCPeerConnection({iceServers:[], iceTransports:'none'});"); | 34 shouldNotThrow("new RTCPeerConnection({iceServers:[], iceTransports:'none'});"); |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 } | 116 } |
| 116 // Sequentially test construction with RSA and ECDSA certificates. | 117 // Sequentially test construction with RSA and ECDSA certificates. |
| 117 // testCertificates3Expired's callback methods mark the end of the async tests. | 118 // testCertificates3Expired's callback methods mark the end of the async tests. |
| 118 testCertificates1RSA(); | 119 testCertificates1RSA(); |
| 119 | 120 |
| 120 window.jsTestIsAsync = true; | 121 window.jsTestIsAsync = true; |
| 121 window.successfullyParsed = true; | 122 window.successfullyParsed = true; |
| 122 </script> | 123 </script> |
| 123 </body> | 124 </body> |
| 124 </html> | 125 </html> |
| OLD | NEW |