зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1208373 - Test that ended tracks that are cloned are also ended. r=jib
MozReview-Commit-ID: 4YU31TK0Mdf --HG-- extra : rebase_source : 0e5b37f101d22ccc0f439e97eb47596c8ae17847 extra : source : 0d4ff0ff0dac011751329d23122e8e55e37ee3f7
This commit is contained in:
Родитель
f31189f3e0
Коммит
ba8b7f91e2
|
@ -52,7 +52,10 @@
|
|||
|
||||
var test = createMediaElement('video', 'testClonePlayback');
|
||||
var playback = new MediaStreamPlayback(test, cloneStream);
|
||||
return playback.playMediaWithMediaStreamTracksStop(false);
|
||||
return playback.playMediaWithMediaStreamTracksStop(false)
|
||||
.then(() => info("Testing that clones of ended tracks are ended"))
|
||||
.then(() => cloneStream.clone().getTracks().forEach(t =>
|
||||
is(t.readyState, "ended", "Track " + t.id + " should be ended")));
|
||||
})
|
||||
.then(() => getUserMedia({audio: true, video: true})).then(stream => {
|
||||
info("Test adding many track clones to the original stream");
|
||||
|
|
Загрузка…
Ссылка в новой задаче