Update web-platform-tests to revision 4333a1d2f109795547fc5e22ebfc8481fa649de7

This commit is contained in:
WPT Sync Bot 2018-06-22 21:05:34 -04:00
parent 728ebcc932
commit 8c46b67f8e
456 changed files with 10561 additions and 5108 deletions

View file

@ -244,26 +244,12 @@
})
.then(t.step_func(mediaStream => {
const tracks = mediaStream.getTracks();
assert_equals(tracks.length, 2,
'Expect media stream to have one audio and one video track');
const [audioTrack] = mediaStream.getAudioTracks();
const [videoTrack] = mediaStream.getVideoTracks();
let audioTrack;
let videoTrack;
for (const track of tracks) {
for (const track of mediaStream.getTracks()) {
t.add_cleanup(() => track.stop());
pc1.addTrack(track, mediaStream);
if (track.kind === 'audio') {
audioTrack = track;
} else if (track.kind === 'video') {
videoTrack = track;
}
}
if (!audioTrack || ! videoTrack) {
assert_unreached('Expect mediaStream to have both audio and video streams');
}
const testStatsReport = (pc, statsReport) => {