Bug 1271669 - Remove test_peerConnection_addTrack.html. r?jib draft
authorAndreas Pehrson <pehrsons@gmail.com>
Thu, 19 May 2016 16:38:11 +0200
changeset 369110 3e6ac1e58c03625155562f7c45fe22fe51623d0e
parent 369109 fa136139f3e4943a160ec297ba453cafa4860df5
child 369111 87e56ca8e5dae76ad76ece6d1d9334c04c37d6cb
push id18740
push userpehrsons@gmail.com
push dateFri, 20 May 2016 08:44:08 +0000
reviewersjib
bugs1271669
milestone49.0a1
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
dom/media/tests/mochitest/mochitest.ini
dom/media/tests/mochitest/test_peerConnection_addTrack.html
--- 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>