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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/mediastream/constructors.html

Issue 2446173002: Use RTCPeerConnection instead of webkitRTCPeerConnection (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
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 <p id="description"></p> 7 <p id="description"></p>
8 <div id="console"></div> 8 <div id="console"></div>
9 <script> 9 <script>
10 description("Tests the JSEP PeerConnection related constructors."); 10 description("Tests the JSEP PeerConnection related constructors.");
11 11
12 shouldBeTrue("typeof webkitRTCPeerConnection === 'function'"); 12 shouldBeTrue("typeof RTCPeerConnection === 'function'");
13 shouldBeTrue("typeof RTCSessionDescription === 'function'"); 13 shouldBeTrue("typeof RTCSessionDescription === 'function'");
14 shouldBeTrue("typeof RTCIceCandidate === 'function'"); 14 shouldBeTrue("typeof RTCIceCandidate === 'function'");
15 15
16 shouldThrow("webkitRTCPeerConnection()"); 16 shouldThrow("RTCPeerConnection()");
17 shouldThrow("RTCSessionDescription()"); 17 shouldThrow("RTCSessionDescription()");
18 shouldThrow("RTCIceCandidate()"); 18 shouldThrow("RTCIceCandidate()");
19 19
20 shouldNotThrow("new webkitRTCPeerConnection({iceServers:[{url:'stun://foobar.com :12345'}]}, null);"); 20 shouldNotThrow("new RTCPeerConnection({iceServers:[{url:'stun://foobar.com:12345 '}]}, null);");
21 shouldNotThrow("new RTCSessionDescription({type:'offer',sdp:'foobar'});"); 21 shouldNotThrow("new RTCSessionDescription({type:'offer',sdp:'foobar'});");
22 shouldNotThrow("new RTCIceCandidate({candidate:'foo'});"); 22 shouldNotThrow("new RTCIceCandidate({candidate:'foo'});");
23 23
24 window.jsTestIsAsync = false; 24 window.jsTestIsAsync = false;
25 </script> 25 </script>
26 </body> 26 </body>
27 </html> 27 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698