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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/peerconnection/RTCPeerConnection-ice-promise.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 <script> 7 <script>
8 description("Tests the RTCPeerConnection Ice functionality."); 8 description("Tests the RTCPeerConnection Ice functionality.");
9 9
10 var pc = null; 10 var pc = null;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 function onIceChange1() 47 function onIceChange1()
48 { 48 {
49 if (pc.iceConnectionState === "completed") { 49 if (pc.iceConnectionState === "completed") {
50 testPassed("iceConnectionState is completed"); 50 testPassed("iceConnectionState is completed");
51 iceCandidate = new RTCIceCandidate({candidate:"nano nano"}); 51 iceCandidate = new RTCIceCandidate({candidate:"nano nano"});
52 shouldNotThrow('pc.addIceCandidate(null).then(unexpectedSuccess, expecte dTypeError);'); 52 shouldNotThrow('pc.addIceCandidate(null).then(unexpectedSuccess, expecte dTypeError);');
53 shouldNotThrow('pc.addIceCandidate(iceCandidate).then(addIceCandidateSuc cess, addIceCandidateFailure);'); 53 shouldNotThrow('pc.addIceCandidate(iceCandidate).then(addIceCandidateSuc cess, addIceCandidateFailure);');
54 } 54 }
55 } 55 }
56 56
57 shouldNotThrow('pc = new webkitRTCPeerConnection(null, null);'); 57 shouldNotThrow('pc = new RTCPeerConnection();');
58 pc.oniceconnectionstatechange = onIceChange1; 58 pc.oniceconnectionstatechange = onIceChange1;
59 59
60 window.jsTestIsAsync = true; 60 window.jsTestIsAsync = true;
61 window.successfullyParsed = true; 61 window.successfullyParsed = true;
62 </script> 62 </script>
63 </body> 63 </body>
64 </html> 64 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698