mirror of
https://github.com/servo/servo.git
synced 2025-08-08 06:55:31 +01:00
Update web-platform-tests to revision 6856483bcc86322198f10e0c42385a7f9127eb66
This commit is contained in:
parent
b1a2b6b5bf
commit
ff06f1d031
265 changed files with 7539 additions and 988 deletions
|
@ -249,6 +249,19 @@ function createDataChannelPair(
|
|||
});
|
||||
}
|
||||
|
||||
// Wait for RTP and RTCP stats to arrive
|
||||
async function waitForRtpAndRtcpStats(pc) {
|
||||
while (true) {
|
||||
const report = await pc.getStats();
|
||||
const stats = [...report.values()].filter(({type}) => type.endsWith("bound-rtp"));
|
||||
// Each RTP and RTCP stat has a reference
|
||||
// to the matching stat in the other direction
|
||||
if (stats.length && stats.every(({localId, remoteId}) => localId || remoteId)) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Wait for a single message event and return
|
||||
// a promise that resolve when the event fires
|
||||
function awaitMessage(channel) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue