| 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);"); |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 shouldNotThrow("new webkitRTCPeerConnection({iceServers:[], iceTransports:'none'
}, null);"); | 32 shouldNotThrow("new webkitRTCPeerConnection({iceServers:[], iceTransports:'none'
}, null);"); |
| 33 shouldNotThrow("new webkitRTCPeerConnection({iceServers:[], iceTransports:'relay
'}, null);"); | 33 shouldNotThrow("new webkitRTCPeerConnection({iceServers:[], iceTransports:'relay
'}, null);"); |
| 34 shouldNotThrow("new webkitRTCPeerConnection({iceServers:[], iceTransports:'all'}
, null);"); | 34 shouldNotThrow("new webkitRTCPeerConnection({iceServers:[], iceTransports:'all'}
, null);"); |
| 35 shouldThrow("new webkitRTCPeerConnection({iceServers:[], iceTransports:'foo'}, n
ull);"); | 35 shouldThrow("new webkitRTCPeerConnection({iceServers:[], iceTransports:'foo'}, n
ull);"); |
| 36 | 36 |
| 37 shouldNotThrow("new webkitRTCPeerConnection({iceServers:[], bundlePolicy:'balanc
ed'}, null);"); | 37 shouldNotThrow("new webkitRTCPeerConnection({iceServers:[], bundlePolicy:'balanc
ed'}, null);"); |
| 38 shouldNotThrow("new webkitRTCPeerConnection({iceServers:[], bundlePolicy:'max-bu
ndle'}, null);"); | 38 shouldNotThrow("new webkitRTCPeerConnection({iceServers:[], bundlePolicy:'max-bu
ndle'}, null);"); |
| 39 shouldNotThrow("new webkitRTCPeerConnection({iceServers:[], bundlePolicy:'max-co
mpat'}, null);"); | 39 shouldNotThrow("new webkitRTCPeerConnection({iceServers:[], bundlePolicy:'max-co
mpat'}, null);"); |
| 40 shouldThrow("new webkitRTCPeerConnection({iceServers:[], bundlePolicy:'foo'}, nu
ll);"); | 40 shouldThrow("new webkitRTCPeerConnection({iceServers:[], bundlePolicy:'foo'}, nu
ll);"); |
| 41 | 41 |
| 42 shouldNotThrow("new webkitRTCPeerConnection({iceServers:[], rtcpMuxPolicy:'negot
iate'}, null);"); |
| 43 shouldNotThrow("new webkitRTCPeerConnection({iceServers:[], rtcpMuxPolicy:'requi
re'}, null);"); |
| 44 shouldThrow("new webkitRTCPeerConnection({iceServers:[], rtcpMuxPolicy:'foo'}, n
ull);"); |
| 45 |
| 42 shouldNotThrow("new webkitRTCPeerConnection(null, {mandatory:{valid_and_supporte
d_1:1}});"); | 46 shouldNotThrow("new webkitRTCPeerConnection(null, {mandatory:{valid_and_supporte
d_1:1}});"); |
| 43 shouldNotThrow("new webkitRTCPeerConnection(null, {mandatory:{valid_and_supporte
d_1:1, valid_and_supported_2:1}});"); | 47 shouldNotThrow("new webkitRTCPeerConnection(null, {mandatory:{valid_and_supporte
d_1:1, valid_and_supported_2:1}});"); |
| 44 shouldNotThrow("new webkitRTCPeerConnection(null, {optional:[{valid_and_supporte
d_1:0}]});"); | 48 shouldNotThrow("new webkitRTCPeerConnection(null, {optional:[{valid_and_supporte
d_1:0}]});"); |
| 45 shouldNotThrow("new webkitRTCPeerConnection(null, {optional:[{valid_and_supporte
d_1:0},{valid_and_supported_2:0}]});"); | 49 shouldNotThrow("new webkitRTCPeerConnection(null, {optional:[{valid_and_supporte
d_1:0},{valid_and_supported_2:0}]});"); |
| 46 shouldNotThrow("new webkitRTCPeerConnection(null, {optional:[{valid_but_unsuppor
ted_1:0},{valid_but_unsupported_2:0}]});"); | 50 shouldNotThrow("new webkitRTCPeerConnection(null, {optional:[{valid_but_unsuppor
ted_1:0},{valid_but_unsupported_2:0}]});"); |
| 47 shouldThrow("new webkitRTCPeerConnection(null, {mandatory:{valid_and_supported_1
:66}});"); | 51 shouldThrow("new webkitRTCPeerConnection(null, {mandatory:{valid_and_supported_1
:66}});"); |
| 48 shouldThrow("new webkitRTCPeerConnection(null, {mandatory:{invalid:1}});"); | 52 shouldThrow("new webkitRTCPeerConnection(null, {mandatory:{invalid:1}});"); |
| 49 shouldThrow("new webkitRTCPeerConnection(null, {mandatory:{valid_but_unsupported
_1:1}});"); | 53 shouldThrow("new webkitRTCPeerConnection(null, {mandatory:{valid_but_unsupported
_1:1}});"); |
| 50 shouldThrow("new webkitRTCPeerConnection(null, {mandatory:{valid_but_unsupported
_1:1, valid_and_supported_1:1}});"); | 54 shouldThrow("new webkitRTCPeerConnection(null, {mandatory:{valid_but_unsupported
_1:1, valid_and_supported_1:1}});"); |
| 51 shouldThrow("new webkitRTCPeerConnection(null, {optional:{valid_and_supported_1:
0}});"); | 55 shouldThrow("new webkitRTCPeerConnection(null, {optional:{valid_and_supported_1:
0}});"); |
| 52 shouldThrow("new webkitRTCPeerConnection(null, {optional:[{valid_and_supported_1
:0,valid_and_supported_2:0}]});"); | 56 shouldThrow("new webkitRTCPeerConnection(null, {optional:[{valid_and_supported_1
:0,valid_and_supported_2:0}]});"); |
| 53 shouldThrow("new webkitRTCPeerConnection(null, {optional:[{invalid:0}]});"); | 57 shouldThrow("new webkitRTCPeerConnection(null, {optional:[{invalid:0}]});"); |
| 54 shouldThrow("new webkitRTCPeerConnection(null, {valid_and_supported_1:1});"); | 58 shouldThrow("new webkitRTCPeerConnection(null, {valid_and_supported_1:1});"); |
| 55 shouldThrow("new webkitRTCPeerConnection(null, {valid_but_unsupported_1:1});"); | 59 shouldThrow("new webkitRTCPeerConnection(null, {valid_but_unsupported_1:1});"); |
| 56 shouldThrow("new webkitRTCPeerConnection(null, {valid_and_supported_2:1, mandato
ry:{valid_and_supported_1:1}});"); | 60 shouldThrow("new webkitRTCPeerConnection(null, {valid_and_supported_2:1, mandato
ry:{valid_and_supported_1:1}});"); |
| 57 </script> | 61 </script> |
| 58 </body> | 62 </body> |
| 59 </html> | 63 </html> |
| OLD | NEW |