mirror of
https://github.com/servo/servo.git
synced 2025-08-16 02:45:36 +01:00
Update web-platform-tests to revision 3f3849c5d05f9350fad0b06d3bb3ae30d7e18d14
This commit is contained in:
parent
9a7e2663e8
commit
f767403c00
310 changed files with 8134 additions and 895 deletions
|
@ -172,14 +172,14 @@
|
|||
- All RTCOutboundRTPStreamStats objects corresponding to selector.
|
||||
- All stats objects referenced directly or indirectly by the RTCOutboundRTPStreamStats
|
||||
objects added.
|
||||
*/
|
||||
*/
|
||||
promise_test(async t => {
|
||||
const pc = createPeerConnectionWithCleanup(t);
|
||||
const pc2 = createPeerConnectionWithCleanup(t);
|
||||
|
||||
let [track, mediaStream] = await getTrackFromUserMedia('audio');
|
||||
pc.addTrack(track, mediaStream);
|
||||
exchangeIceCandidates(pc, pc2);
|
||||
coupleIceCandidates(pc, pc2);
|
||||
await doSignalingHandshake(pc, pc2);
|
||||
await listenToIceConnected(pc);
|
||||
const stats = await pc.getStats(track);
|
||||
|
@ -202,11 +202,16 @@
|
|||
|
||||
let [track, mediaStream] = await getTrackFromUserMedia('audio');
|
||||
pc.addTrack(track, mediaStream);
|
||||
exchangeIceCandidates(pc, pc2);
|
||||
coupleIceCandidates(pc, pc2);
|
||||
await doSignalingHandshake(pc, pc2);
|
||||
await new Promise(resolve => {
|
||||
pc2.getReceivers()[0].track.addEventListener('unmute', resolve);
|
||||
});
|
||||
// Wait for unmute if the track is not already unmuted.
|
||||
// According to spec, it should be muted when being created, but this
|
||||
// is not what this test is testing, so allow it to be unmuted.
|
||||
if (pc2.getReceivers()[0].track.muted) {
|
||||
await new Promise(resolve => {
|
||||
pc2.getReceivers()[0].track.addEventListener('unmute', resolve);
|
||||
});
|
||||
}
|
||||
const stats = await pc2.getStats(track);
|
||||
validateStatsReport(stats);
|
||||
assert_stats_report_has_stats(stats, ['inbound-rtp']);
|
||||
|
@ -335,7 +340,7 @@
|
|||
}));
|
||||
|
||||
|
||||
exchangeIceCandidates(pc1, pc2);
|
||||
coupleIceCandidates(pc1, pc2);
|
||||
doSignalingHandshake(pc1, pc2);
|
||||
}))
|
||||
.catch(t.step_func(err => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue