Skip to content

Commit

Permalink
Bug 1504529 [wpt PR 13908] - Fix regressions introduced in web-platfo…
Browse files Browse the repository at this point in the history
…rm-tests/wpt#13893, a=testonly

Automatic update from web-platform-testsFix regressions introduced in web-platform-tests/wpt#13893 (#13908)

--

wpt-commits: f1373b111b40f43398da4a7ecf01a44453ef7564
wpt-pr: 13908
  • Loading branch information
youennf authored and moz-wptsync-bot committed Nov 14, 2018
1 parent 97adf07 commit 2459db4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions testing/web-platform/tests/webrtc/RTCPeerConnection-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ function assert_session_desc_not_similar(sessionDesc1, sessionDesc2) {

async function generateDataChannelOffer(pc) {
pc.createDataChannel('test');
const offer = pc.createOffer();
assert_equals(countApplicationLine(sdp), 1, 'Expect m=application line to be present in generated SDP');
const offer = await pc.createOffer();
assert_equals(countApplicationLine(offer.sdp), 1, 'Expect m=application line to be present in generated SDP');
return offer;
}

Expand Down Expand Up @@ -135,7 +135,7 @@ async function generateVideoReceiveOnlyOffer(pc)
async function generateAnswer(offer) {
const pc = new RTCPeerConnection();
await pc.setRemoteDescription(offer);
const answer = pc.createAnswer();
const answer = await pc.createAnswer();
pc.close();
return answer;
}
Expand Down

0 comments on commit 2459db4

Please sign in to comment.