Bug 1143514: Update mochitest. r=cajbir

sourcebuffer is added to ms.activeSourceBuffers only once the first init
segment has been appended.

--HG--
extra : rebase_source : fe1bfedce8aa377914be6ea99579e3267da760d5
This commit is contained in:
Jean-Yves Avenard 2015-03-18 14:10:57 +11:00
parent b4dc4a38a2
commit 77358caae1

View File

@ -47,7 +47,8 @@ runWithMSE(function () {
ok(sb, "Create a SourceBuffer");
is(ms.sourceBuffers.length, 1, "MediaSource.sourceBuffers is expected length");
is(ms.sourceBuffers[0], sb, "SourceBuffer in list matches our SourceBuffer");
is(ms.activeSourceBuffers[0], sb, "SourceBuffer in active list matches our SourceBuffer");
is(ms.activeSourceBuffers.length, 0, "MediaSource.activeSourceBuffers is expected length");
fetchWithXHR("seek.webm", function (arrayBuffer) {
sb.appendBuffer(new Uint8Array(arrayBuffer));
@ -70,6 +71,7 @@ runWithMSE(function () {
});
sb.addEventListener("updateend", function () {
is(ms.activeSourceBuffers[0], sb, "SourceBuffer in active list matches our SourceBuffer");
is(sb.updating, false, "SourceBuffer.updating is expected value in updateend event");
updateendCount++;
v.play();