Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(590)

Side by Side Diff: third_party/WebKit/LayoutTests/fast/peerconnection/RTCPeerConnection.html

Issue 2446163002: Make RTConfiguration certificates non-nullable (Closed)
Patch Set: rebase Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/peerconnection/RTCPeerConnection-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 shouldThrow("new webkitRTCPeerConnection(null, {mandatory:{valid_but_unsupported _1:1, valid_and_supported_1:1}});"); 53 shouldThrow("new webkitRTCPeerConnection(null, {mandatory:{valid_but_unsupported _1:1, valid_and_supported_1:1}});");
54 shouldThrow("new webkitRTCPeerConnection(null, {optional:{valid_and_supported_1: 0}});"); 54 shouldThrow("new webkitRTCPeerConnection(null, {optional:{valid_and_supported_1: 0}});");
55 shouldThrow("new webkitRTCPeerConnection(null, {optional:[{valid_and_supported_1 :0,valid_and_supported_2:0}]});"); 55 shouldThrow("new webkitRTCPeerConnection(null, {optional:[{valid_and_supported_1 :0,valid_and_supported_2:0}]});");
56 // Optional constraints are ignored even if they are invalid. 56 // Optional constraints are ignored even if they are invalid.
57 shouldNotThrow("new webkitRTCPeerConnection(null, {optional:[{invalid:0}]});"); 57 shouldNotThrow("new webkitRTCPeerConnection(null, {optional:[{invalid:0}]});");
58 shouldThrow("new webkitRTCPeerConnection(null, {valid_and_supported_1:1});"); 58 shouldThrow("new webkitRTCPeerConnection(null, {valid_and_supported_1:1});");
59 shouldThrow("new webkitRTCPeerConnection(null, {valid_but_unsupported_1:1});"); 59 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}});"); 60 shouldThrow("new webkitRTCPeerConnection(null, {valid_and_supported_2:1, mandato ry:{valid_and_supported_1:1}});");
61 61
62 // Construct with certificates. 62 // Construct with certificates.
63 shouldNotThrow("new webkitRTCPeerConnection({iceServers:[], certificates:null}); "); 63 shouldThrow("new webkitRTCPeerConnection({iceServers:[], certificates:null});");
64 shouldNotThrow("new webkitRTCPeerConnection({iceServers:[], certificates:undefin ed});"); 64 shouldNotThrow("new webkitRTCPeerConnection({iceServers:[], certificates:undefin ed});");
65 shouldNotThrow("new webkitRTCPeerConnection({iceServers:[], certificates:[]});") ; 65 shouldNotThrow("new webkitRTCPeerConnection({iceServers:[], certificates:[]});") ;
66 shouldThrow("new webkitRTCPeerConnection({iceServers:[], certificates:[null]});" ); 66 shouldThrow("new webkitRTCPeerConnection({iceServers:[], certificates:[null]});" );
67 shouldThrow("new webkitRTCPeerConnection({iceServers:[], certificates:[1337]});" ); 67 shouldThrow("new webkitRTCPeerConnection({iceServers:[], certificates:[1337]});" );
68 // Global certificate variables so that the "should..." methods can evaluate the m. 68 // Global certificate variables so that the "should..." methods can evaluate the m.
69 var certRSA = null; 69 var certRSA = null;
70 var certECDSA = null; 70 var certECDSA = null;
71 var certExpired = null; 71 var certExpired = null;
72 72
73 function testCertificates1RSA() 73 function testCertificates1RSA()
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 } 112 }
113 // Sequentially test construction with RSA and ECDSA certificates. 113 // Sequentially test construction with RSA and ECDSA certificates.
114 // testCertificates3Expired's callback methods mark the end of the async tests. 114 // testCertificates3Expired's callback methods mark the end of the async tests.
115 testCertificates1RSA(); 115 testCertificates1RSA();
116 116
117 window.jsTestIsAsync = true; 117 window.jsTestIsAsync = true;
118 window.successfullyParsed = true; 118 window.successfullyParsed = true;
119 </script> 119 </script>
120 </body> 120 </body>
121 </html> 121 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/peerconnection/RTCPeerConnection-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698