mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
Update web-platform-tests to revision b'51407aaa3d17aa440f6807caef5e390dc779087a'
This commit is contained in:
parent
60b642968b
commit
4db11786c5
263 changed files with 6777 additions and 1228 deletions
|
@ -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)
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue