Commit a5a3ccdb authored by Eldar Rello's avatar Eldar Rello Committed by Commit Bot

Replace legacy API usage in wpt RTCPeerConnection-onicecandidateerror.html

Bug: webrtc:3098
Change-Id: I58b1b22d13259102294a00914e05b42b2b41b36e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1731931
Commit-Queue: Eldar Rello <elrello@microsoft.com>
Reviewed-by: default avatarHenrik Boström <hbos@chromium.org>
Cr-Commit-Position: refs/heads/master@{#683961}
parent 1bbf8cf7
......@@ -23,8 +23,11 @@ promise_test(async t => {
assert_true(event.hostCandidate.includes(":"), "hostCandidate");
assert_true(event.url.includes("123"), "url");
});
const offerOptions = {offerToReceiveAudio: 1};
await pc.setLocalDescription(await pc.createOffer(offerOptions));
const stream = await getNoiseStream({audio:true});
t.add_cleanup(() => stream.getTracks().forEach(track => track.stop()));
pc.addTrack(stream.getAudioTracks()[0], stream);
await pc.setLocalDescription(await pc.createOffer());
await onErrorPromise;
}, 'Surfacing onicecandidateerror');
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment