mirror of
https://github.com/servo/servo.git
synced 2025-08-27 08:08:19 +01:00
Update web-platform-tests to revision 345300fad3945a5f1441fb2b2001109ca48f36e8
This commit is contained in:
parent
71ba247942
commit
05db47be0f
109 changed files with 2576 additions and 1228 deletions
|
@ -404,7 +404,7 @@
|
|||
callee.addTrack(tracks[1], streams[1]);
|
||||
exchangeIceCandidates(caller, callee);
|
||||
await doSignalingHandshake(caller, callee);
|
||||
await onIceConnectionStateCompleted(caller);
|
||||
await listenToConnected(caller);
|
||||
let receiver = caller.getReceivers()[0];
|
||||
|
||||
// Obtain inbound and outbound RTP stream stats on a full stats report.
|
||||
|
@ -452,7 +452,7 @@
|
|||
callee.addTrack(tracks[1], streams[1]);
|
||||
exchangeIceCandidates(caller, callee);
|
||||
await doSignalingHandshake(caller, callee);
|
||||
await onIceConnectionStateCompleted(caller);
|
||||
await listenToConnected(caller);
|
||||
let receiver = caller.getReceivers()[0];
|
||||
|
||||
// Obtain inbound and outbound RTP stream stats on a full stats report.
|
||||
|
@ -500,7 +500,7 @@
|
|||
callee.addTrack(tracks[1], streams[1]);
|
||||
exchangeIceCandidates(caller, callee);
|
||||
await doSignalingHandshake(caller, callee);
|
||||
await onIceConnectionStateCompleted(caller);
|
||||
await listenToIceConnected(caller);
|
||||
|
||||
// Wait until RTCP has arrived so that it can not arrive between
|
||||
// the two get stats calls.
|
||||
|
@ -531,7 +531,7 @@
|
|||
callee.addTrack(tracks[1], streams[1]);
|
||||
exchangeIceCandidates(caller, callee);
|
||||
await doSignalingHandshake(caller, callee);
|
||||
await onIceConnectionStateCompleted(caller);
|
||||
await listenToIceConnected(caller);
|
||||
let receiver = caller.getReceivers()[0];
|
||||
|
||||
// Wait until RTCP has arrived so that it can not arrive between
|
||||
|
@ -603,24 +603,6 @@
|
|||
return stats;
|
||||
}
|
||||
|
||||
// Returns a promise that is resolved when pc.iceConnectionState reaches the
|
||||
// 'connected' or 'completed' state. This is when transport stats can be
|
||||
// expected to have its selectedCandidatePairId defined.
|
||||
async function onIceConnectionStateCompleted(pc) {
|
||||
if (pc.iceConnectionState == 'connected' ||
|
||||
pc.iceConnectionState == 'completed') {
|
||||
return Promise.resolve();
|
||||
}
|
||||
let resolver = new Resolver();
|
||||
pc.oniceconnectionstatechange = e => {
|
||||
if (pc.iceConnectionState == 'connected' ||
|
||||
pc.iceConnectionState == 'completed') {
|
||||
resolver.resolve();
|
||||
}
|
||||
};
|
||||
return resolver;
|
||||
}
|
||||
|
||||
// Explores the stats graph starting from |stat|, validating each stat
|
||||
// (validateRtcStats) and asserting that all stats of the report were visited.
|
||||
function validateStatsGraph(report, stat) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue