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"); |
(...skipping 27 matching lines...) Expand all Loading... |
38 | 38 |
39 shouldNotThrow("new RTCPeerConnection({iceServers:[], bundlePolicy:'balanced'});
"); | 39 shouldNotThrow("new RTCPeerConnection({iceServers:[], bundlePolicy:'balanced'});
"); |
40 shouldNotThrow("new RTCPeerConnection({iceServers:[], bundlePolicy:'max-bundle'}
);"); | 40 shouldNotThrow("new RTCPeerConnection({iceServers:[], bundlePolicy:'max-bundle'}
);"); |
41 shouldNotThrow("new RTCPeerConnection({iceServers:[], bundlePolicy:'max-compat'}
);"); | 41 shouldNotThrow("new RTCPeerConnection({iceServers:[], bundlePolicy:'max-compat'}
);"); |
42 shouldThrow("new RTCPeerConnection({iceServers:[], bundlePolicy:'foo'});"); | 42 shouldThrow("new RTCPeerConnection({iceServers:[], bundlePolicy:'foo'});"); |
43 | 43 |
44 shouldNotThrow("new RTCPeerConnection({iceServers:[], rtcpMuxPolicy:'negotiate'}
);"); | 44 shouldNotThrow("new RTCPeerConnection({iceServers:[], rtcpMuxPolicy:'negotiate'}
);"); |
45 shouldNotThrow("new RTCPeerConnection({iceServers:[], rtcpMuxPolicy:'require'});
"); | 45 shouldNotThrow("new RTCPeerConnection({iceServers:[], rtcpMuxPolicy:'require'});
"); |
46 shouldThrow("new RTCPeerConnection({iceServers:[], rtcpMuxPolicy:'foo'});"); | 46 shouldThrow("new RTCPeerConnection({iceServers:[], rtcpMuxPolicy:'foo'});"); |
47 | 47 |
| 48 shouldNotThrow("new RTCPeerConnection({iceCandidatePoolSize:0});"); |
| 49 shouldNotThrow("new RTCPeerConnection({iceCandidatePoolSize:1});"); |
| 50 shouldNotThrow("new RTCPeerConnection({iceCandidatePoolSize:255});"); |
| 51 shouldThrow("new RTCPeerConnection({iceCandidatePoolSize:-1});"); |
| 52 shouldThrow("new RTCPeerConnection({iceCandidatePoolSize:99999999});"); |
| 53 shouldThrow("new RTCPeerConnection({iceCandidatePoolSize:256});"); |
| 54 shouldThrow("new RTCPeerConnection({iceCandidatePoolSize:'foo'});"); |
| 55 |
48 // Deprecated. | 56 // Deprecated. |
49 shouldNotThrow("new RTCPeerConnection(null, {mandatory:{valid_and_supported_1:1}
});"); | 57 shouldNotThrow("new RTCPeerConnection(null, {mandatory:{valid_and_supported_1:1}
});"); |
50 shouldNotThrow("new RTCPeerConnection(null, {mandatory:{valid_and_supported_1:1,
valid_and_supported_2:1}});"); | 58 shouldNotThrow("new RTCPeerConnection(null, {mandatory:{valid_and_supported_1:1,
valid_and_supported_2:1}});"); |
51 shouldNotThrow("new RTCPeerConnection(null, {optional:[{valid_and_supported_1:0}
]});"); | 59 shouldNotThrow("new RTCPeerConnection(null, {optional:[{valid_and_supported_1:0}
]});"); |
52 shouldNotThrow("new RTCPeerConnection(null, {optional:[{valid_and_supported_1:0}
,{valid_and_supported_2:0}]});"); | 60 shouldNotThrow("new RTCPeerConnection(null, {optional:[{valid_and_supported_1:0}
,{valid_and_supported_2:0}]});"); |
53 shouldNotThrow("new RTCPeerConnection(null, {optional:[{valid_but_unsupported_1:
0},{valid_but_unsupported_2:0}]});"); | 61 shouldNotThrow("new RTCPeerConnection(null, {optional:[{valid_but_unsupported_1:
0},{valid_but_unsupported_2:0}]});"); |
54 shouldThrow("new RTCPeerConnection(null, {mandatory:{valid_and_supported_1:66}})
;"); | 62 shouldThrow("new RTCPeerConnection(null, {mandatory:{valid_and_supported_1:66}})
;"); |
55 shouldThrow("new RTCPeerConnection(null, {mandatory:{invalid:1}});"); | 63 shouldThrow("new RTCPeerConnection(null, {mandatory:{invalid:1}});"); |
56 shouldThrow("new RTCPeerConnection(null, {mandatory:{valid_but_unsupported_1:1}}
);"); | 64 shouldThrow("new RTCPeerConnection(null, {mandatory:{valid_but_unsupported_1:1}}
);"); |
57 shouldThrow("new RTCPeerConnection(null, {mandatory:{valid_but_unsupported_1:1,
valid_and_supported_1:1}});"); | 65 shouldThrow("new RTCPeerConnection(null, {mandatory:{valid_but_unsupported_1:1,
valid_and_supported_1:1}});"); |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 } | 124 } |
117 // Sequentially test construction with RSA and ECDSA certificates. | 125 // Sequentially test construction with RSA and ECDSA certificates. |
118 // testCertificates3Expired's callback methods mark the end of the async tests. | 126 // testCertificates3Expired's callback methods mark the end of the async tests. |
119 testCertificates1RSA(); | 127 testCertificates1RSA(); |
120 | 128 |
121 window.jsTestIsAsync = true; | 129 window.jsTestIsAsync = true; |
122 window.successfullyParsed = true; | 130 window.successfullyParsed = true; |
123 </script> | 131 </script> |
124 </body> | 132 </body> |
125 </html> | 133 </html> |
OLD | NEW |