| 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 shouldNotThrow("new webkitRTCPeerConnection(null);"); | 10 shouldNotThrow("new webkitRTCPeerConnection(null);"); |
| 11 shouldNotThrow("new webkitRTCPeerConnection(null, null);"); | 11 shouldNotThrow("new webkitRTCPeerConnection(null, null);"); |
| 12 shouldNotThrow("new webkitRTCPeerConnection(undefined);"); | 12 shouldNotThrow("new webkitRTCPeerConnection(undefined);"); |
| 13 shouldNotThrow("new webkitRTCPeerConnection(undefined, undefined);"); | 13 shouldNotThrow("new webkitRTCPeerConnection(undefined, undefined);"); |
| 14 shouldThrow("new webkitRTCPeerConnection();"); | 14 shouldThrow("new webkitRTCPeerConnection();"); |
| 15 shouldThrow("new webkitRTCPeerConnection('');"); | 15 shouldThrow("new webkitRTCPeerConnection('');"); |
| 16 shouldThrow("new webkitRTCPeerConnection(null, '');"); | 16 shouldThrow("new webkitRTCPeerConnection(null, '');"); |
| 17 | 17 |
| 18 shouldNotThrow("new webkitRTCPeerConnection({iceServers:[]}, null);"); | 18 shouldNotThrow("new webkitRTCPeerConnection({iceServers:[]}, null);"); |
| 19 shouldNotThrow("new webkitRTCPeerConnection({iceServers:[{url:'stun:foo.com'}]},
null);"); | 19 shouldNotThrow("new webkitRTCPeerConnection({iceServers:[{url:'stun:foo.com'}]},
null);"); |
| 20 shouldNotThrow("new webkitRTCPeerConnection({iceServers:[{url:'turn:foo.com', cr
edential:'x'}]}, null);"); | 20 shouldNotThrow("new webkitRTCPeerConnection({iceServers:[{url:'turn:foo.com', cr
edential:'x'}]}, null);"); |
| 21 shouldNotThrow("new webkitRTCPeerConnection({iceServers:[{url:'turn:foo.com', cr
edential:'x'},{url:'stun:bar.com'}]}, null);"); | 21 shouldNotThrow("new webkitRTCPeerConnection({iceServers:[{url:'turn:foo.com', cr
edential:'x'},{url:'stun:bar.com'}]}, null);"); |
| 22 shouldNotThrow("new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]}
, null);"); | 22 shouldNotThrow("new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]}
, null);"); |
| 23 shouldNotThrow("new webkitRTCPeerConnection({iceServers:[{urls:['stun:foo.com',
'turn:foo.com']}]}, null);"); | 23 shouldNotThrow("new webkitRTCPeerConnection({iceServers:[{urls:['stun:foo.com',
'turn:foo.com']}]}, null);"); |
| 24 shouldNotThrow("new webkitRTCPeerConnection({iceServers:undefined}, null);"); |
| 25 shouldNotThrow("new webkitRTCPeerConnection({}, null);"); |
| 26 shouldThrow("new webkitRTCPeerConnection({iceServers:null}, null);"); |
| 24 | 27 |
| 25 shouldThrow("new webkitRTCPeerConnection({fooServers:[]}, null);"); | |
| 26 shouldThrow("new webkitRTCPeerConnection({iceServers:true}, null);"); | 28 shouldThrow("new webkitRTCPeerConnection({iceServers:true}, null);"); |
| 27 shouldThrow("new webkitRTCPeerConnection({iceServers:[1, 2, 3]}, null);"); | 29 shouldThrow("new webkitRTCPeerConnection({iceServers:[1, 2, 3]}, null);"); |
| 28 shouldThrow("new webkitRTCPeerConnection({iceServers:[{}]}, null);"); | 30 shouldThrow("new webkitRTCPeerConnection({iceServers:[{}]}, null);"); |
| 29 shouldThrow("new webkitRTCPeerConnection({iceServers:[{url:'foo'}]}, null);"); | 31 shouldThrow("new webkitRTCPeerConnection({iceServers:[{url:'foo'}]}, null);"); |
| 30 shouldThrow("new webkitRTCPeerConnection({iceServers:[{urls:[1, 'turn:foo.com']}
]}, null);"); | 32 shouldThrow("new webkitRTCPeerConnection({iceServers:[{urls:[1, 'turn:foo.com']}
]}, null);"); |
| 31 | 33 |
| 32 shouldNotThrow("new webkitRTCPeerConnection({iceServers:[], iceTransports:'none'
}, null);"); | 34 shouldNotThrow("new webkitRTCPeerConnection({iceServers:[], iceTransports:'none'
}, null);"); |
| 33 shouldNotThrow("new webkitRTCPeerConnection({iceServers:[], iceTransports:'relay
'}, null);"); | 35 shouldNotThrow("new webkitRTCPeerConnection({iceServers:[], iceTransports:'relay
'}, null);"); |
| 34 shouldNotThrow("new webkitRTCPeerConnection({iceServers:[], iceTransports:'all'}
, null);"); | 36 shouldNotThrow("new webkitRTCPeerConnection({iceServers:[], iceTransports:'all'}
, null);"); |
| 35 shouldThrow("new webkitRTCPeerConnection({iceServers:[], iceTransports:'foo'}, n
ull);"); | 37 shouldThrow("new webkitRTCPeerConnection({iceServers:[], iceTransports:'foo'}, n
ull);"); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 54 shouldThrow("new webkitRTCPeerConnection(null, {mandatory:{valid_but_unsupported
_1:1, valid_and_supported_1:1}});"); | 56 shouldThrow("new webkitRTCPeerConnection(null, {mandatory:{valid_but_unsupported
_1:1, valid_and_supported_1:1}});"); |
| 55 shouldThrow("new webkitRTCPeerConnection(null, {optional:{valid_and_supported_1:
0}});"); | 57 shouldThrow("new webkitRTCPeerConnection(null, {optional:{valid_and_supported_1:
0}});"); |
| 56 shouldThrow("new webkitRTCPeerConnection(null, {optional:[{valid_and_supported_1
:0,valid_and_supported_2:0}]});"); | 58 shouldThrow("new webkitRTCPeerConnection(null, {optional:[{valid_and_supported_1
:0,valid_and_supported_2:0}]});"); |
| 57 shouldThrow("new webkitRTCPeerConnection(null, {optional:[{invalid:0}]});"); | 59 shouldThrow("new webkitRTCPeerConnection(null, {optional:[{invalid:0}]});"); |
| 58 shouldThrow("new webkitRTCPeerConnection(null, {valid_and_supported_1:1});"); | 60 shouldThrow("new webkitRTCPeerConnection(null, {valid_and_supported_1:1});"); |
| 59 shouldThrow("new webkitRTCPeerConnection(null, {valid_but_unsupported_1:1});"); | 61 shouldThrow("new webkitRTCPeerConnection(null, {valid_but_unsupported_1:1});"); |
| 60 shouldThrow("new webkitRTCPeerConnection(null, {valid_and_supported_2:1, mandato
ry:{valid_and_supported_1:1}});"); | 62 shouldThrow("new webkitRTCPeerConnection(null, {valid_and_supported_2:1, mandato
ry:{valid_and_supported_1:1}});"); |
| 61 </script> | 63 </script> |
| 62 </body> | 64 </body> |
| 63 </html> | 65 </html> |
| OLD | NEW |