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 260564 6ee39f753d19
parent 260563 9525d8723413
child 260565 19b9ffda6e2f
push id822
push userryanvm@gmail.com
push date2015-05-25 19:46 +0000
treeherdermozilla-release@19b9ffda6e2f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspehrson, sledru
bugs1166183, 934512
milestone38.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");