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

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

Issue 2451763002: Require username and credential for turn/turns (Closed)
Patch Set: restore non-throwing test 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 shouldBe("webkitRTCPeerConnection", "RTCPeerConnection"); 10 shouldBe("webkitRTCPeerConnection", "RTCPeerConnection");
11 11
12 shouldNotThrow("new RTCPeerConnection(null);"); 12 shouldNotThrow("new RTCPeerConnection(null);");
13 shouldNotThrow("new RTCPeerConnection(undefined);"); 13 shouldNotThrow("new RTCPeerConnection(undefined);");
14 shouldNotThrow("new RTCPeerConnection({});"); 14 shouldNotThrow("new RTCPeerConnection({});");
15 shouldNotThrow("new RTCPeerConnection();"); 15 shouldNotThrow("new RTCPeerConnection();");
16 shouldThrow("new RTCPeerConnection('');"); 16 shouldThrow("new RTCPeerConnection('');");
17 17
18 shouldNotThrow("new RTCPeerConnection({iceServers:[]});"); 18 shouldNotThrow("new RTCPeerConnection({iceServers:[]});");
19 shouldNotThrow("new RTCPeerConnection({iceServers:[{url:'stun:foo.com'}]});"); 19 shouldNotThrow("new RTCPeerConnection({iceServers:[{url:'stun:foo.com'}]});");
20 shouldNotThrow("new RTCPeerConnection({iceServers:[{url:'turn:foo.com', credenti al:'x'}]});"); 20 shouldNotThrow("new RTCPeerConnection({iceServers:[{url:'turn:foo.com', username :'x', credential:'x'}]});");
21 shouldNotThrow("new RTCPeerConnection({iceServers:[{url:'turn:foo.com', credenti al:'x'},{url:'stun:bar.com'}]});"); 21 shouldNotThrow("new RTCPeerConnection({iceServers:[{url:'turn:foo.com', username :'x', credential:'x'},{url:'stun:bar.com'}]});");
22 shouldNotThrow("new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});"); 22 shouldNotThrow("new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});");
23 shouldNotThrow("new RTCPeerConnection({iceServers:[{urls:['stun:foo.com', 'turn: foo.com']}]});"); 23 shouldNotThrow("new RTCPeerConnection({iceServers:[{urls:['stun:foo.com', 'turn: foo.com'], username:'x', credential:'x'}]});");
24 shouldThrow("new RTCPeerConnection({iceServers:[{urls:['stun:foo.com', 'turn:foo .com']}]});");
24 25
25 shouldNotThrow("new RTCPeerConnection({fooServers:[]});"); 26 shouldNotThrow("new RTCPeerConnection({fooServers:[]});");
26 shouldThrow("new RTCPeerConnection({iceServers:true});"); 27 shouldThrow("new RTCPeerConnection({iceServers:true});");
27 shouldThrow("new RTCPeerConnection({iceServers:[1, 2, 3]});"); 28 shouldThrow("new RTCPeerConnection({iceServers:[1, 2, 3]});");
28 shouldThrow("new RTCPeerConnection({iceServers:[{}]});"); 29 shouldThrow("new RTCPeerConnection({iceServers:[{}]});");
29 shouldThrow("new RTCPeerConnection({iceServers:[{url:'foo'}]});"); 30 shouldThrow("new RTCPeerConnection({iceServers:[{url:'foo'}]});");
30 shouldThrow("new RTCPeerConnection({iceServers:[{urls:'unsupported:scheme'}]});" ); 31 shouldThrow("new RTCPeerConnection({iceServers:[{urls:'unsupported:scheme'}]});" );
31 shouldThrow("new RTCPeerConnection({iceServers:[{urls:[1, 'turn:foo.com']}]});") ; 32 shouldThrow("new RTCPeerConnection({iceServers:[{urls:[1, 'turn:foo.com']}]});") ;
32 33
33 shouldNotThrow("new RTCPeerConnection({iceServers:[], iceTransports:'none'});"); 34 shouldNotThrow("new RTCPeerConnection({iceServers:[], iceTransports:'none'});");
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 } 116 }
116 // Sequentially test construction with RSA and ECDSA certificates. 117 // Sequentially test construction with RSA and ECDSA certificates.
117 // testCertificates3Expired's callback methods mark the end of the async tests. 118 // testCertificates3Expired's callback methods mark the end of the async tests.
118 testCertificates1RSA(); 119 testCertificates1RSA();
119 120
120 window.jsTestIsAsync = true; 121 window.jsTestIsAsync = true;
121 window.successfullyParsed = true; 122 window.successfullyParsed = true;
122 </script> 123 </script>
123 </body> 124 </body>
124 </html> 125 </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