Bug 1271669 - Remove test_peerConnection_addTrack.html. r?jib
This tested that we were throwing on adding a track with a constructed
MediaStream, which we now allow.
MozReview-Commit-ID: 37QfxZngvqI
--- a/dom/media/tests/mochitest/mochitest.ini
+++ b/dom/media/tests/mochitest/mochitest.ini
@@ -76,17 +76,16 @@ skip-if = (toolkit == 'gonk' || buildapp
[test_getUserMedia_stopAudioStreamWithFollowupAudio.html]
[test_getUserMedia_stopVideoAudioStream.html]
[test_getUserMedia_stopVideoAudioStreamWithFollowupVideoAudio.html]
[test_getUserMedia_stopVideoStream.html]
[test_getUserMedia_stopVideoStreamWithFollowupVideo.html]
[test_getUserMedia_peerIdentity.html]
skip-if = toolkit == 'gonk' || buildapp == 'mulet' # b2g(Bug 1021776, too --ing slow on b2g)
[test_peerConnection_addIceCandidate.html]
-[test_peerConnection_addTrack.html]
[test_peerConnection_basicAudio.html]
skip-if = toolkit == 'gonk' # B2G emulator is too slow to handle a two-way audio call reliably
[test_peerConnection_basicAudioNATSrflx.html]
skip-if = toolkit == 'gonk' || toolkit == 'android' # B2G emulator is too slow to handle a two-way audio call reliably, websockets don't work on android (bug 1266217)
[test_peerConnection_basicAudioNATRelay.html]
skip-if = toolkit == 'gonk' || toolkit == 'android' # B2G emulator is too slow to handle a two-way audio call reliably, websockets don't work on android (bug 1266217)
[test_peerConnection_basicAudioNATRelayTCP.html]
skip-if = toolkit == 'gonk' || toolkit == 'android' # B2G emulator is too slow to handle a two-way audio call reliably, websockets don't work on android (bug 1266217)
deleted file mode 100644
--- a/dom/media/tests/mochitest/test_peerConnection_addTrack.html
+++ /dev/null
@@ -1,31 +0,0 @@
-<!DOCTYPE HTML>
-<html>
-<head>
- <script type="application/javascript" src="pc.js"></script>
-</head>
-<body>
-<pre id="test">
-<script type="application/javascript;version=1.8">
- createHTML({
- bug: "1259236",
- title: "PeerConnection addTrack errors",
- visible: true
- });
-
- runNetworkTest(function() {
- navigator.mediaDevices.getUserMedia({ video: true })
- .then(gumStream => {
- let newStream = new MediaStream(gumStream.getTracks());
-
- mustThrowWith("pc.addTrack a track from a constructed MediaStream",
- "NotSupportedError",
- () => new RTCPeerConnection().addTrack(newStream.getTracks()[0],
- newStream));
- })
- .catch(e => ok(false, "unexpected failure: " + e))
- .then(networkTestFinished);
- });
-</script>
-</pre>
-</body>
-</html>