From 7eeb085a3ba672f0a12ab7277dd32006b7908124 Mon Sep 17 00:00:00 2001 From: "Byron Campen [:bwc]" Date: Fri, 16 Feb 2018 13:28:25 -0600 Subject: [PATCH] Bug 1290949: Test that removeTrack does not remove the associated sender. r=jib MozReview-Commit-ID: ERg48fO9i6b --HG-- extra : rebase_source : 0e2944e0c30a2811be3d198f8b6a7bd36d53692e --- .../mochitest/test_peerConnection_transceivers.html | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/dom/media/tests/mochitest/test_peerConnection_transceivers.html b/dom/media/tests/mochitest/test_peerConnection_transceivers.html index 47f5c476f549..866142205fc9 100644 --- a/dom/media/tests/mochitest/test_peerConnection_transceivers.html +++ b/dom/media/tests/mochitest/test_peerConnection_transceivers.html @@ -855,6 +855,12 @@ await pc2.setLocalDescription(answer); pc1.removeTrack(pc1.getSenders()[0]); + hasProps(pc1.getSenders(), + [ + {track: null}, + {track: video} + ]); + hasProps(pc1.getTransceivers(), [ { @@ -871,6 +877,12 @@ pc1.removeTrack(pc1.getSenders()[1]); + hasProps(pc1.getSenders(), + [ + {track: null}, + {track: null} + ]); + hasProps(pc1.getTransceivers(), [ {