Update web-platform-tests to revision d3cf77a7b8c20c678b725238eaa8a72eca3787ae

This commit is contained in:
WPT Sync Bot 2019-04-25 22:18:37 -04:00
parent 880f3b8b7a
commit efca990ffe
541 changed files with 8000 additions and 2276 deletions

View file

@ -292,6 +292,20 @@
assert_equals(transceiver.currentDirection, 'inactive');
}, 'Calling removeTrack with currentDirection inactive should not change direction');
promise_test(async t => {
const pc = new RTCPeerConnection();
t.add_cleanup(() => pc.close());
const stream = await navigator.mediaDevices.getUserMedia({audio: true});
t.add_cleanup(() => stream.getTracks().forEach(track => track.stop()));
const [track] = stream.getTracks();
const sender = pc.addTrack(track, stream);
pc.getTransceivers()[0].stop();
pc.removeTrack(sender);
assert_equals(sender.track, track);
}, "Calling removeTrack on a stopped transceiver should be a no-op");
/*
TODO
5.1. removeTrack