Bug 1166183 - Work around bug 934512 in track_peerConnection_replaceTrack.html. r=pehrson, a=sledru
authorPaul Adenot <paul@paul.cx>
Thu, 21 May 2015 13:35:29 +0800
changeset 267568 7311bd491c302976ab1c048b9e4dc1af5423c776
parent 267567 edd045aad9510b04138be0cc5cb7b441a34df331
child 267569 d68fc8a46c1ace425fb537560fc9d1290d10d8b0
push id830
push userraliiev@mozilla.com
push dateFri, 19 Jun 2015 19:24:37 +0000
treeherdermozilla-release@932614382a68 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspehrson, sledru
bugs1166183, 934512
milestone39.0
Bug 1166183 - Work around bug 934512 in track_peerConnection_replaceTrack.html. r=pehrson, a=sledru
dom/media/tests/mochitest/test_peerConnection_replaceTrack.html
--- a/dom/media/tests/mochitest/test_peerConnection_replaceTrack.html
+++ b/dom/media/tests/mochitest/test_peerConnection_replaceTrack.html
@@ -27,16 +27,17 @@
       var oldstream = test.pcLocal._pc.getLocalStreams()[0];
       var oldtrack = oldstream.getVideoTracks()[0];
       var sender = test.pcLocal._pc.getSenders().find(isSenderOfTrack, oldtrack);
       ok(sender, "track has a sender");
       var newtrack;
       var audiotrack;
       return navigator.mediaDevices.getUserMedia({video:true, audio:true, fake:true})
         .then(newstream => {
+          window.grip = newStream;
           newtrack = newstream.getVideoTracks()[0];
           audiotrack = newstream.getAudioTracks()[0];
           isnot(newtrack, oldtrack, "replacing with a different track");
           isnot(newstream, oldstream, "from a different stream");
           return sender.replaceTrack(newtrack);
         })
         .then(() => {
           is(sender.track, newtrack, "sender.track has been replaced");