Bug 1301675 - Test that a track from MediaStreamAudioDestinationNode can be stopped. r=padenot

MozReview-Commit-ID: 5wViWJQmI2H

--HG--
extra : rebase_source : 9792ea4240d830175e8abd3a1901e60bb332fcbd
This commit is contained in:
Andreas Pehrson 2016-09-16 11:50:20 +02:00
Родитель 86b155361f
Коммит 75e0ffd718
1 изменённых файлов: 7 добавлений и 1 удалений

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

@ -34,9 +34,15 @@ addLoadEvent(function() {
is(elem.played.length, 1, "should have a played interval");
is(elem.played.start(0), 0, "should have played immediately");
isnot(elem.played.end(0), 0, "should have played for a non-zero interval");
SimpleTest.finish();
// This will end the media element.
dest.stream.getTracks()[0].stop();
}, 2000);
};
elem.onended = function() {
ok(true, "media element ended after destination track.stop()");
SimpleTest.finish();
};
source.start(0);
elem.play();