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="../js/resources/js-test-pre.js"></script> | 4 <script src="../js/resources/js-test-pre.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:[{uri:'stun:foo.com'}]},
null);"); | 19 shouldNotThrow("new webkitRTCPeerConnection({iceServers:[{url:'stun:foo.com'}]},
null);"); |
20 shouldNotThrow("new webkitRTCPeerConnection({iceServers:[{uri:'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:[{uri:'turn:foo.com', cr
edential:'x'},{uri:'stun:bar.com'}]}, null);"); | 21 shouldNotThrow("new webkitRTCPeerConnection({iceServers:[{url:'turn:foo.com', cr
edential:'x'},{url:'stun:bar.com'}]}, null);"); |
22 shouldThrow("new webkitRTCPeerConnection({fooServers:[]}, null);"); | 22 shouldThrow("new webkitRTCPeerConnection({fooServers:[]}, null);"); |
23 shouldThrow("new webkitRTCPeerConnection({iceServers:true}, null);"); | 23 shouldThrow("new webkitRTCPeerConnection({iceServers:true}, null);"); |
24 shouldThrow("new webkitRTCPeerConnection({iceServers:[1, 2, 3]}, null);"); | 24 shouldThrow("new webkitRTCPeerConnection({iceServers:[1, 2, 3]}, null);"); |
25 shouldThrow("new webkitRTCPeerConnection({iceServers:[{}]}, null);"); | 25 shouldThrow("new webkitRTCPeerConnection({iceServers:[{}]}, null);"); |
26 shouldThrow("new webkitRTCPeerConnection({iceServers:[{url:'foo'}]}, null);"); | 26 shouldThrow("new webkitRTCPeerConnection({iceServers:[{url:'foo'}]}, null);"); |
27 | 27 |
28 shouldNotThrow("new webkitRTCPeerConnection(null, {mandatory:{valid_and_supporte
d_1:1}});"); | 28 shouldNotThrow("new webkitRTCPeerConnection(null, {mandatory:{valid_and_supporte
d_1:1}});"); |
29 shouldNotThrow("new webkitRTCPeerConnection(null, {mandatory:{valid_and_supporte
d_1:1, valid_and_supported_2:1}});"); | 29 shouldNotThrow("new webkitRTCPeerConnection(null, {mandatory:{valid_and_supporte
d_1:1, valid_and_supported_2:1}});"); |
30 shouldNotThrow("new webkitRTCPeerConnection(null, {optional:[{valid_and_supporte
d_1:0}]});"); | 30 shouldNotThrow("new webkitRTCPeerConnection(null, {optional:[{valid_and_supporte
d_1:0}]});"); |
31 shouldNotThrow("new webkitRTCPeerConnection(null, {optional:[{valid_and_supporte
d_1:0},{valid_and_supported_2:0}]});"); | 31 shouldNotThrow("new webkitRTCPeerConnection(null, {optional:[{valid_and_supporte
d_1:0},{valid_and_supported_2:0}]});"); |
32 shouldNotThrow("new webkitRTCPeerConnection(null, {optional:[{valid_but_unsuppor
ted_1:0},{valid_but_unsupported_2:0}]});"); | 32 shouldNotThrow("new webkitRTCPeerConnection(null, {optional:[{valid_but_unsuppor
ted_1:0},{valid_but_unsupported_2:0}]});"); |
33 shouldThrow("new webkitRTCPeerConnection(null, {mandatory:{valid_and_supported_1
:66}});"); | 33 shouldThrow("new webkitRTCPeerConnection(null, {mandatory:{valid_and_supported_1
:66}});"); |
34 shouldThrow("new webkitRTCPeerConnection(null, {mandatory:{invalid:1}});"); | 34 shouldThrow("new webkitRTCPeerConnection(null, {mandatory:{invalid:1}});"); |
35 shouldThrow("new webkitRTCPeerConnection(null, {mandatory:{valid_but_unsupported
_1:1}});"); | 35 shouldThrow("new webkitRTCPeerConnection(null, {mandatory:{valid_but_unsupported
_1:1}});"); |
36 shouldThrow("new webkitRTCPeerConnection(null, {mandatory:{valid_but_unsupported
_1:1, valid_and_supported_1:1}});"); | 36 shouldThrow("new webkitRTCPeerConnection(null, {mandatory:{valid_but_unsupported
_1:1, valid_and_supported_1:1}});"); |
37 shouldThrow("new webkitRTCPeerConnection(null, {optional:{valid_and_supported_1:
0}});"); | 37 shouldThrow("new webkitRTCPeerConnection(null, {optional:{valid_and_supported_1:
0}});"); |
38 shouldThrow("new webkitRTCPeerConnection(null, {optional:[{valid_and_supported_1
:0,valid_and_supported_2:0}]});"); | 38 shouldThrow("new webkitRTCPeerConnection(null, {optional:[{valid_and_supported_1
:0,valid_and_supported_2:0}]});"); |
39 shouldThrow("new webkitRTCPeerConnection(null, {optional:[{invalid:0}]});"); | 39 shouldThrow("new webkitRTCPeerConnection(null, {optional:[{invalid:0}]});"); |
40 </script> | 40 </script> |
41 <script src="../js/resources/js-test-post.js"></script> | 41 <script src="../js/resources/js-test-post.js"></script> |
42 </body> | 42 </body> |
43 </html> | 43 </html> |
OLD | NEW |