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

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

Issue 2721163002: Add support for RTCConfiguration.iceCandidatePoolSize. (Closed)
Patch Set: Update layout test expectations due to switch from unsigned short to octet. Created 3 years, 9 months 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
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");
(...skipping 27 matching lines...) Expand all
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:5});");
51 shouldThrow("new RTCPeerConnection({iceCandidatePoolSize:-1});");
52 shouldThrow("new RTCPeerConnection({iceCandidatePoolSize:99999999});");
foolip 2017/03/14 14:49:06 Can you also try 256?
Taylor_Brandstetter 2017/03/14 22:23:11 Done.
53 shouldThrow("new RTCPeerConnection({iceCandidatePoolSize:'foo'});");
54
48 // Deprecated. 55 // Deprecated.
49 shouldNotThrow("new RTCPeerConnection(null, {mandatory:{valid_and_supported_1:1} });"); 56 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}});"); 57 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} ]});"); 58 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}]});"); 59 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}]});"); 60 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}}) ;"); 61 shouldThrow("new RTCPeerConnection(null, {mandatory:{valid_and_supported_1:66}}) ;");
55 shouldThrow("new RTCPeerConnection(null, {mandatory:{invalid:1}});"); 62 shouldThrow("new RTCPeerConnection(null, {mandatory:{invalid:1}});");
56 shouldThrow("new RTCPeerConnection(null, {mandatory:{valid_but_unsupported_1:1}} );"); 63 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}});"); 64 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
116 } 123 }
117 // Sequentially test construction with RSA and ECDSA certificates. 124 // Sequentially test construction with RSA and ECDSA certificates.
118 // testCertificates3Expired's callback methods mark the end of the async tests. 125 // testCertificates3Expired's callback methods mark the end of the async tests.
119 testCertificates1RSA(); 126 testCertificates1RSA();
120 127
121 window.jsTestIsAsync = true; 128 window.jsTestIsAsync = true;
122 window.successfullyParsed = true; 129 window.successfullyParsed = true;
123 </script> 130 </script>
124 </body> 131 </body>
125 </html> 132 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698