| Index: third_party/WebKit/LayoutTests/fast/mediastream/RTCPeerConnection-AddRemoveStream.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/mediastream/RTCPeerConnection-AddRemoveStream.html b/third_party/WebKit/LayoutTests/fast/mediastream/RTCPeerConnection-AddRemoveStream.html
|
| deleted file mode 100644
|
| index 6e8564a6386d135c43a74b532c430d7641274379..0000000000000000000000000000000000000000
|
| --- a/third_party/WebKit/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>
|
|
|