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> |