Update web-platform-tests to revision b'51407aaa3d17aa440f6807caef5e390dc779087a'

This commit is contained in:
WPT Sync Bot 2021-02-25 08:20:53 +00:00
parent 60b642968b
commit 4db11786c5
263 changed files with 6777 additions and 1228 deletions

View file

@ -320,15 +320,11 @@ promise_test(async t => {
t.add_cleanup(() => pc1.close());
const pc2 = new RTCPeerConnection();
t.add_cleanup(() => pc2.close());
pc1.onicecandidate = async e => {
if (e.candidate) {
await pc2.addIceCandidate(e.candidate);
}
};
pc1.onicecandidate = e => pc2.addIceCandidate(e.candidate);
pc1.candidateBuffer = [];
pc2.onicecandidate = e => {
// Don't add candidate if candidate buffer is already used
if (e.candidate && pc1.candidateBuffer) {
if (pc1.candidateBuffer) {
pc1.candidateBuffer.push(e.candidate)
}
};