Skip to content
This repository was archived by the owner on Mar 19, 2021. It is now read-only.

Commit 8a1fbc0

Browse files
kulternahchromium-wpt-export-bot
authored andcommitted
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 <[email protected]> Reviewed-by: Henrik Boström <[email protected]> Cr-Commit-Position: refs/heads/master@{#683961}
1 parent dcdebb1 commit 8a1fbc0

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

webrtc/RTCPeerConnection-onicecandidateerror.html renamed to webrtc/RTCPeerConnection-onicecandidateerror.https.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,11 @@
2323
assert_true(event.hostCandidate.includes(":"), "hostCandidate");
2424
assert_true(event.url.includes("123"), "url");
2525
});
26-
const offerOptions = {offerToReceiveAudio: 1};
27-
await pc.setLocalDescription(await pc.createOffer(offerOptions));
26+
const stream = await getNoiseStream({audio:true});
27+
t.add_cleanup(() => stream.getTracks().forEach(track => track.stop()));
28+
pc.addTrack(stream.getAudioTracks()[0], stream);
29+
30+
await pc.setLocalDescription(await pc.createOffer());
2831
await onErrorPromise;
2932
}, 'Surfacing onicecandidateerror');
3033

0 commit comments

Comments
 (0)