Bug 1504504 [wpt PR 13898] - Use generateVideoReceiveOnlyOffer instead of legacy offerToReceiveVideo, a=testonly
authorYouenn Fablet <youennf@gmail.com>
Tue, 13 Nov 2018 11:11:11 +0000
changeset 446173 5e07723bf7028d834b827322b5944c920a7a9cef
parent 446172 4d25311b68d8f42caac950882cbdf0e3155f1dc2
child 446174 bd6652ebe170de6ed964fe7a2985c5de87f77903
push id109847
push userwptsync@mozilla.com
push dateWed, 14 Nov 2018 13:43:00 +0000
treeherdermozilla-inbound@0b40f405c457 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1504504, 13898
milestone65.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 1504504 [wpt PR 13898] - Use generateVideoReceiveOnlyOffer instead of legacy offerToReceiveVideo, a=testonly Automatic update from web-platform-testsUse generateVideoReceiveOnlyOffer instead of legacy offerToReceiveVideo -- Merge pull request #13898 from youennf/fix-jsep-initial-offer.https.html Use generateVideoReceiveOnlyOffer instead of legacy offerToReceiveVideo -- wpt-commits: f6e9943221a1dd9ba594a1182a429d62e687a487, 06bbfc0155c8dc93412b7da78b2274861e6b0259 wpt-pr: 13898
testing/web-platform/tests/webrtc/protocol/jsep-initial-offer.https.html
--- a/testing/web-platform/tests/webrtc/protocol/jsep-initial-offer.https.html
+++ b/testing/web-platform/tests/webrtc/protocol/jsep-initial-offer.https.html
@@ -6,17 +6,17 @@
 <script src="../RTCPeerConnection-helper.js"></script>
 <script>
   'use strict';
 
   // Tests for the construction of initial offers according to
   // draft-ietf-rtcweb-jsep-24 section 5.2.1
   promise_test(async t => {
     const pc = new RTCPeerConnection();
-    const offer = await pc.createOffer({offerToReceiveVideo: true});
+    const offer = await generateVideoReceiveOnlyOffer(pc);
     let offer_lines = offer.sdp.split('\r\n');
     // The first 3 lines are dictated by JSEP.
     assert_equals(offer_lines[0], "v=0");
     assert_equals(offer_lines[1].slice(0, 2), "o=");
     // JSEP says that the address part SHOULD be a meaningless address
     // "such as" IN IP4 127.0.0.1. We do strict matching here in order
     // to detect if anyone ever uses something different.
     assert_regexp_match(offer_lines[1], /^o=- \d+ \d+ IN IP4 127.0.0.1$/);