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

Unified Diff: LayoutTests/fast/mediastream/RTCPeerConnection-AddRemoveStream.html

Issue 650063002: Move MediaStream and MediaStreamTrack implementation from modules/mediastream to core/mediastream. Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased. Created 6 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: LayoutTests/fast/mediastream/RTCPeerConnection-AddRemoveStream.html
diff --git a/LayoutTests/fast/mediastream/RTCPeerConnection-AddRemoveStream.html b/LayoutTests/fast/mediastream/RTCPeerConnection-AddRemoveStream.html
deleted file mode 100644
index 6e8564a6386d135c43a74b532c430d7641274379..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/mediastream/RTCPeerConnection-AddRemoveStream.html
+++ /dev/null
@@ -1,81 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
-<html>
-<head>
-<script src="../../resources/js-test.js"></script>
-</head>
-<body>
-<script>
-description("Tests RTCPeerConnection [add|remove]Stream.");
-
-var stream = null;
-var stream2 = null;
-var pc = null;
-
-function error() {
- testFailed('Stream generation failed.');
- finishJSTest();
-}
-
-function getUserMedia(dictionary, callback) {
- try {
- navigator.webkitGetUserMedia(dictionary, callback, error);
- } catch (e) {
- testFailed('webkitGetUserMedia threw exception :' + e);
- finishJSTest();
- }
-}
-
-function onErroneousNegotiationNeeded() {
- testFailed('onErroneousNegotiationNeeded was called.');
- finishJSTest();
-}
-
-function onRemoveStream(event) {
- testPassed('onRemoveStream was called.');
-
- shouldBe('pc.getLocalStreams().length', '0');
-
- finishJSTest();
-}
-
-function onAddStream(event) {
- testPassed('onAddStream was called.');
-
- shouldBe('pc.getStreamById(stream.id)', 'stream');
- shouldBe('pc.getStreamById(stream2.id)', 'null');
-
- pc.onnegotiationneeded = onErroneousNegotiationNeeded;
- pc.addStream(stream);
- shouldBe('pc.getLocalStreams().length', '1');
- pc.removeStream(stream2);
- shouldBe('pc.getLocalStreams().length', '1');
-
- pc.onnegotiationneeded = onRemoveStream;
- pc.removeStream(stream);
-}
-
-function gotStream2(s) {
- testPassed('Got another stream.');
- stream2 = s;
-
- shouldBeFalse("stream.id === stream2.id");
-
- pc = new webkitRTCPeerConnection(null, null);
- pc.onnegotiationneeded = onAddStream;
- pc.addStream(stream);
-}
-
-function gotStream1(s) {
- testPassed('Got a stream.');
- stream = s;
-
- getUserMedia({audio:true, video:true}, gotStream2);
-}
-
-getUserMedia({audio:true, video:true}, gotStream1);
-
-window.jsTestIsAsync = true;
-window.successfullyParsed = true;
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698