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

Unified Diff: third_party/WebKit/LayoutTests/fast/peerconnection/RTCPeerConnection-localDescription.html

Issue 2446173002: Use RTCPeerConnection instead of webkitRTCPeerConnection (Closed)
Patch Set: rebase Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/fast/peerconnection/RTCPeerConnection-localDescription.html
diff --git a/third_party/WebKit/LayoutTests/fast/peerconnection/RTCPeerConnection-localDescription.html b/third_party/WebKit/LayoutTests/fast/peerconnection/RTCPeerConnection-localDescription.html
index 801373d0ff7ceb842b5ba77cc14df906b25db59d..1619aef96014040a57cbe9635a3f6682e6fd31f2 100644
--- a/third_party/WebKit/LayoutTests/fast/peerconnection/RTCPeerConnection-localDescription.html
+++ b/third_party/WebKit/LayoutTests/fast/peerconnection/RTCPeerConnection-localDescription.html
@@ -52,7 +52,7 @@ function expectedInvalidSessionDescription(error)
function testExecutionOrderClosedConnection()
{
- var localPeerConnection = new webkitRTCPeerConnection(null, null);
+ var localPeerConnection = new RTCPeerConnection();
localPeerConnection.close();
var counter = 0;
window.events = [];
@@ -65,13 +65,13 @@ function testExecutionOrderClosedConnection()
events[counter++] = 2;
});
Promise.resolve().then(_ => {
- events[counter++] = 3;
+ events[counter++] = 3;
shouldBe('events', '[1,2,3]');
});
}
shouldNotThrow('testExecutionOrderClosedConnection()');
-pc = new webkitRTCPeerConnection(null, null);
+pc = new RTCPeerConnection();
shouldNotThrow('pc.setLocalDescription().catch(expectedTypeError)');
shouldNotThrow('pc.setLocalDescription(null).catch(expectedInvalidSessionDescription)');
var sessionDescription = new RTCSessionDescription({type:"offer", sdp:"local"});

Powered by Google App Engine
This is Rietveld 408576698