Bug 1301675 - Clean up MediaStream Constructor test. r=jib

MozReview-Commit-ID: J2EuOAqPAeG

--HG--
extra : rebase_source : 7a3f58c1da9b55ae6a68253e7f7766f731a194e1
This commit is contained in:
Andreas Pehrson 2016-09-13 10:23:42 +02:00
Родитель b9775969a5
Коммит 110b2a7f15
1 изменённых файлов: 4 добавлений и 5 удалений

Просмотреть файл

@ -102,13 +102,12 @@
checkMediaStreamContains(stream, [audioTrack, videoTrack], checkMediaStreamContains(stream, [audioTrack, videoTrack],
"List constructed WebAudio and gUM-video tracks"); "List constructed WebAudio and gUM-video tracks");
// TODO (bug 1301675) When WebAudio tracks support stop(), uncomment: var playback = new MediaStreamPlayback(videoElement, stream);
// var playback = new MediaStreamPlayback(videoElement, stream); return playback.playMedia(false).then(() => {
// return playback.playMedia(false).then(() => {
gUMStream.getTracks().forEach(t => t.stop()); gUMStream.getTracks().forEach(t => t.stop());
ok(!gUMStream.active, "gUMStream should be inactive after stopping"); ok(!gUMStream.active, "gUMStream should be inactive after stopping");
// ok(!stream.active, "stream with stopped tracks should be inactive"); ok(!stream.active, "stream with stopped tracks should be inactive");
// }); });
}) })
.then(() => { .then(() => {
var osc1k = createOscillatorStream(audioContext, 1000); var osc1k = createOscillatorStream(audioContext, 1000);