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

Side by Side Diff: LayoutTests/fast/mediastream/RTCPeerConnection.html

Issue 10969068: Merge 128982 - MediaStream API: Rename the RTCIceServer uri parameter to url. (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1271/
Patch Set: Created 8 years, 3 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
« no previous file with comments | « no previous file | LayoutTests/fast/mediastream/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="../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>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/mediastream/RTCPeerConnection-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698