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

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

Issue 2097563002: Split the mediastream module in Blink into mediastream and peerconnection (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add DEPS file Created 4 years, 6 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-promise.html
diff --git a/third_party/WebKit/LayoutTests/fast/mediastream/RTCPeerConnection-remoteDescription-promise.html b/third_party/WebKit/LayoutTests/fast/mediastream/RTCPeerConnection-remoteDescription-promise.html
deleted file mode 100644
index 31e12bcf6327a46f62ab838791b90d2cfbd2cc65..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/mediastream/RTCPeerConnection-remoteDescription-promise.html
+++ /dev/null
@@ -1,69 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
-<html>
-<head>
-<script src="../../resources/js-test.js"></script>
-</head>
-<body>
-<script>
-description("Tests RTCPeerConnection remoteDescription.");
-
-var pc = null;
-
-function requestFailed2()
-{
- testPassed('requestFailed was called.');
-
- shouldBeEqualToString('pc.remoteDescription.type', "answer");
- shouldBeEqualToString('pc.remoteDescription.sdp', "remote");
- pc.close();
- shouldBeEqualToString('pc.remoteDescription.type', "answer");
- shouldBeEqualToString('pc.remoteDescription.sdp', "remote");
-
- finishJSTest();
-}
-
-function requestSucceeded2()
-{
- testFailed('requestSucceeded was called.');
- finishJSTest();
-}
-
-function requestFailed1()
-{
- testFailed('requestFailed was called.');
- finishJSTest();
-}
-
-function requestSucceeded1()
-{
- testPassed('requestSucceeded was called.');
-
- sessionDescription = new RTCSessionDescription({type:"offer", sdp:"local"});
- shouldNotThrow('pc.setRemoteDescription(sessionDescription).then(requestSucceeded2, requestFailed2);');
-}
-
-function expectedTypeError(error)
-{
- window.error = error;
- shouldBe('error.name', '"TypeError"')
- testPassed('expectedTypeError was called.')
-}
-
-function expectedInvalidSessionDescription(error)
-{
- window.error = error;
- shouldBe('error.name', '"OperationError"')
- testPassed('expectedInvalidSessionDescription was called.')
-}
-
-pc = new webkitRTCPeerConnection(null, null);
-shouldNotThrow('pc.setRemoteDescription().catch(expectedTypeError)');
-shouldNotThrow('pc.setRemoteDescription(null).catch(expectedInvalidSessionDescription)');
-var sessionDescription = new RTCSessionDescription({type:"answer", sdp:"remote"});
-shouldNotThrow('pc.setRemoteDescription(sessionDescription).then(requestSucceeded1, requestFailed1);');
-
-window.jsTestIsAsync = true;
-window.successfullyParsed = true;
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698