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

Side by Side Diff: LayoutTests/fast/mediastream/constructors.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
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 <link rel="stylesheet" href="../js/resources/js-test-style.css"> 4 <link rel="stylesheet" href="../js/resources/js-test-style.css">
5 <script src="../js/resources/js-test-pre.js"></script> 5 <script src="../js/resources/js-test-pre.js"></script>
6 </head> 6 </head>
7 <body> 7 <body>
8 <p id="description"></p> 8 <p id="description"></p>
9 <div id="console"></div> 9 <div id="console"></div>
10 <script> 10 <script>
11 description("Tests the JSEP PeerConnection related constructors."); 11 description("Tests the JSEP PeerConnection related constructors.");
12 12
13 shouldBeTrue("typeof webkitPeerConnection00 === 'function'"); 13 shouldBeTrue("typeof webkitPeerConnection00 === 'function'");
14 shouldBeTrue("typeof SessionDescription === 'function'"); 14 shouldBeTrue("typeof SessionDescription === 'function'");
15 shouldBeTrue("typeof IceCandidate === 'function'"); 15 shouldBeTrue("typeof IceCandidate === 'function'");
16 shouldBeTrue("typeof webkitRTCPeerConnection === 'function'"); 16 shouldBeTrue("typeof webkitRTCPeerConnection === 'function'");
17 shouldBeTrue("typeof RTCSessionDescription === 'function'"); 17 shouldBeTrue("typeof RTCSessionDescription === 'function'");
18 shouldBeTrue("typeof RTCIceCandidate === 'function'"); 18 shouldBeTrue("typeof RTCIceCandidate === 'function'");
19 19
20 shouldThrow("webkitPeerConnection00()"); 20 shouldThrow("webkitPeerConnection00()");
21 shouldThrow("SessionDescription()"); 21 shouldThrow("SessionDescription()");
22 shouldThrow("IceCandidate()"); 22 shouldThrow("IceCandidate()");
23 shouldThrow("webkitRTCPeerConnection()"); 23 shouldThrow("webkitRTCPeerConnection()");
24 shouldThrow("RTCSessionDescription()"); 24 shouldThrow("RTCSessionDescription()");
25 shouldThrow("RTCIceCandidate()"); 25 shouldThrow("RTCIceCandidate()");
26 26
27 shouldNotThrow("new webkitPeerConnection00('STUN foobar.com:12345', function(){} );"); 27 shouldNotThrow("new webkitPeerConnection00('STUN foobar.com:12345', function(){} );");
28 shouldNotThrow("new SessionDescription('');"); 28 shouldNotThrow("new SessionDescription('');");
29 shouldNotThrow("new IceCandidate('', '');"); 29 shouldNotThrow("new IceCandidate('', '');");
30 shouldNotThrow("new webkitRTCPeerConnection({iceServers:[{uri:'stun://foobar.com :12345'}]}, null);"); 30 shouldNotThrow("new webkitRTCPeerConnection({iceServers:[{url:'stun://foobar.com :12345'}]}, null);");
31 shouldNotThrow("new RTCSessionDescription({type:'offer',sdp:'foobar'});"); 31 shouldNotThrow("new RTCSessionDescription({type:'offer',sdp:'foobar'});");
32 shouldNotThrow("new RTCIceCandidate({candidate:'foo'});"); 32 shouldNotThrow("new RTCIceCandidate({candidate:'foo'});");
33 33
34 window.jsTestIsAsync = false; 34 window.jsTestIsAsync = false;
35 </script> 35 </script>
36 <script src="../js/resources/js-test-post.js"></script> 36 <script src="../js/resources/js-test-post.js"></script>
37 </body> 37 </body>
38 </html> 38 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/mediastream/RTCPeerConnection-expected.txt ('k') | LayoutTests/fast/mediastream/constructors-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698