зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
86b155361f
Коммит
75e0ffd718
|
@ -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();
|
||||
|
|
Загрузка…
Ссылка в новой задаче