Bug 1443198 - Part 1: Test that offerToReceiveX doesn do anything silly when the PC is closed. r=jib
authorByron Campen [:bwc] <docfaraday@gmail.com>
Tue, 06 Mar 2018 10:07:40 -0600
changeset 462203 14858f6bea8dbdfa9356cd8abed2256fdb3bd7a5
parent 462202 5729b8d91b4806ae0c195dd2b86d8a5b2c5817de
child 462204 a34f669a52e14e130573df0763a23fbb124a92cf
push id1683
push usersfraser@mozilla.com
push dateThu, 26 Apr 2018 16:43:40 +0000
treeherdermozilla-release@5af6cb21869d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjib
bugs1443198
milestone60.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1443198 - Part 1: Test that offerToReceiveX doesn do anything silly when the PC is closed. r=jib MozReview-Commit-ID: 3ShP4dejWQ8
dom/media/tests/mochitest/test_peerConnection_close.html
--- a/dom/media/tests/mochitest/test_peerConnection_close.html
+++ b/dom/media/tests/mochitest/test_peerConnection_close.html
@@ -73,16 +73,20 @@
       var candidate = new RTCIceCandidate({ candidate: "dummy",
                                                sdpMid: "test",
                                                sdpMLineIndex: 3 });
 
       var doesFail = (p, msg) => p.then(generateErrorCallback(msg),
                                         r => is(r.name, "InvalidStateError", msg));
       Promise.all([
         [pc.createOffer(), "createOffer"],
+        [pc.createOffer({offerToReceiveAudio: true}), "createOffer({offerToReceiveAudio: true})"],
+        [pc.createOffer({offerToReceiveAudio: false}), "createOffer({offerToReceiveAudio: false})"],
+        [pc.createOffer({offerToReceiveVideo: true}), "createOffer({offerToReceiveVideo: true})"],
+        [pc.createOffer({offerToReceiveVideo: false}), "createOffer({offerToReceiveVideo: false})"],
         [pc.createAnswer(), "createAnswer"],
         [pc.setLocalDescription(offer), "setLocalDescription"],
         [pc.setRemoteDescription(answer), "setRemoteDescription"],
         [pc.addIceCandidate(candidate), "addIceCandidate"],
         [new Promise((y, n) => pc.createOffer(y, n)), "Legacy createOffer"],
         [new Promise((y, n) => pc.createAnswer(y, n)), "Legacy createAnswer"],
         [new Promise((y, n) => pc.setLocalDescription(offer, y, n)), "Legacy setLocalDescription"],
         [new Promise((y, n) => pc.setRemoteDescription(answer, y, n)), "Legacy setRemoteDescription"],