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

Unified Diff: third_party/WebKit/LayoutTests/fast/mediastream/RTCPeerConnection-createAnswer.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-createAnswer.html
diff --git a/third_party/WebKit/LayoutTests/fast/mediastream/RTCPeerConnection-createAnswer.html b/third_party/WebKit/LayoutTests/fast/mediastream/RTCPeerConnection-createAnswer.html
deleted file mode 100644
index 64fb888b6caba2ff92a4db73be5f615c0f67c4ab..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/mediastream/RTCPeerConnection-createAnswer.html
+++ /dev/null
@@ -1,64 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
-<html>
-<head>
-<script src="../../resources/js-test.js"></script>
-</head>
-<body>
-<script>
-description("Tests RTCPeerConnection createAnswer.");
-
-var pc = null;
-
-function unexpectedCallback()
-{
- testFailed('unexpectedCallback was called')
- finishJSTest();
-}
-
-function answerCreated()
-{
- testPassed('createAnswer request succeeded.');
- finishJSTest();
-}
-
-function descriptionSet()
-{
- testPassed('setRemoteDescription request succeeded.');
- shouldNotThrow('pc.createAnswer(answerCreated, unexpectedCallback);');
-}
-
-function createOfferWithoutDescriptionFailed()
-{
- testPassed('createOffer request without remote description failed.');
- sessionDescription = new RTCSessionDescription({type:"answer", sdp:"remote"});
- shouldNotThrow('pc.setRemoteDescription(sessionDescription, descriptionSet, unexpectedCallback);');
-}
-
-function testExecutionOrderClosedConnection()
-{
- var localPeerConnection = new webkitRTCPeerConnection(null, null);
- localPeerConnection.close();
- var counter = 0;
- window.events = [];
- Promise.resolve().then(_ => window.events[counter++] = 1);
- localPeerConnection.createAnswer(unexpectedCallback, error => {
- window.error = error;
- shouldBe('error.name', '"InvalidStateError"');
- shouldBe('error.toString()', '"InvalidStateError: The RTCPeerConnection\'s signalingState is \'closed\'."');
- window.events[counter++] = 2;
- });
- Promise.resolve().then(_ => {
- window.events[counter++] = 3;
- shouldBe('events', '[1,2,3]');
- });
-}
-
-shouldNotThrow('testExecutionOrderClosedConnection()');
-pc = new webkitRTCPeerConnection(null, null);
-pc.createOffer(unexpectedCallback, createOfferWithoutDescriptionFailed);
-
-window.jsTestIsAsync = true;
-window.successfullyParsed = true;
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698