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 274774 6c4418d3c0ea0116dcb558c25418477a997bcffc
parent 274773 9cf746bab00305da76a5b8b3cfd988a10d211b09
child 274775 6c5bd5f85e20749aa132e5b72b24cbdadbc36b69
push id863
push userraliiev@mozilla.com
push dateMon, 03 Aug 2015 13:22:43 +0000
treeherdermozilla-release@f6321b14228d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspehrson, sledru
bugs1166183, 934512
milestone40.0a2
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 @@
     ok(sender, "We have a sender for video");
     ok(allLocalStreamsHaveSender(pc),
        "Shouldn't have any streams without a corresponding 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, sender.track, "replacing with a different track");
         ok(!pc.getLocalStreams().some(s => s == newStream),
            "from a different stream");
         return sender.replaceTrack(newTrack);
       })
       .then(() => {