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

Unified Diff: third_party/WebKit/LayoutTests/fast/mediastream/RTCPeerConnection-remoteDescription.html

Issue 1729563002: Replace RTCErrorCallback with RTCPeerConnectionErrorCallback. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 10 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/mediastream/RTCPeerConnection-remoteDescription.html
diff --git a/third_party/WebKit/LayoutTests/fast/mediastream/RTCPeerConnection-remoteDescription.html b/third_party/WebKit/LayoutTests/fast/mediastream/RTCPeerConnection-remoteDescription.html
index 19e46ecdbd61d75c204cd44b867dab991b7a8fa8..573eeedd2cbdb322e77213679efe09c9ea337128 100644
--- a/third_party/WebKit/LayoutTests/fast/mediastream/RTCPeerConnection-remoteDescription.html
+++ b/third_party/WebKit/LayoutTests/fast/mediastream/RTCPeerConnection-remoteDescription.html
@@ -39,13 +39,15 @@ function unexpectedCallback()
function expectedTypeError(error)
{
window.error = error;
- shouldBe('error.name', '"TypeError"')
- testPassed('expectedTypeError was called.')
+ shouldBe('error.name', '"TypeError"');
+ testPassed('expectedTypeError was called.');
}
function expectedInvalidSessionDescription(error)
{
- testPassed('expectedInvalidSessionDescription was called.')
+ window.error = error;
+ shouldBe('error.name', '"OperationError"');
+ testPassed('expectedInvalidSessionDescription was called.');
}
function testExecutionOrderClosedConnection()
@@ -53,12 +55,13 @@ function testExecutionOrderClosedConnection()
var localPeerConnection = new webkitRTCPeerConnection(null, null);
localPeerConnection.close();
var counter = 0;
- events = [];
+ window.events = [];
Promise.resolve().then(_ => events[counter++] = 1);
var sessionDescription = new RTCSessionDescription({type:"answer", sdp:"remote"});
- localPeerConnection.setRemoteDescription(sessionDescription, unexpectedCallback, (error) => {
+ localPeerConnection.setRemoteDescription(sessionDescription, unexpectedCallback, error => {
window.error = error;
- shouldBe('error', '"The RTCPeerConnection\'s signalingState is \'closed\'."');
+ shouldBe('error.name', '"InvalidStateError"');
+ shouldBe('error.toString()', '"InvalidStateError: The RTCPeerConnection\'s signalingState is \'closed\'."');
events[counter++] = 2;
});
Promise.resolve().then(_ => {

Powered by Google App Engine
This is Rietveld 408576698