Bug 1269408: P2. Update mochitest. r?gerald draft
authorJean-Yves Avenard <jyavenard@mozilla.com>
Thu, 05 May 2016 14:55:53 +1000
changeset 364190 b8ad0eee7056aa24a164c327089ce3aa634a7ce8
parent 364189 ad39e5d3a1f9251e0a52b6c438ddb86631dfd19f
child 364191 bcb643ca881e2ce0befa3c5140d7cd4934af3b79
push id17382
push userbmo:jyavenard@mozilla.com
push dateFri, 06 May 2016 05:24:48 +0000
Bug 1269408: P2. Update mochitest. r?gerald On Windows, it is possible for the WMF decoder to consume more than the amount of frames available before outputting the first frame. So just to produce the loadeddata event, we may have in fact already reached the end of the content. To guarantee that the "playing" event is fired, we must add more data than what was originally there. MozReview-Commit-ID: 12eQnchNGLB
--- a/dom/media/mediasource/test/test_ResumeAfterClearing_mp4.html
+++ b/dom/media/mediasource/test/test_ResumeAfterClearing_mp4.html
@@ -33,17 +33,17 @@ runWithMSE(function(ms, v) {
       return once(sb, "updateend");
     }).then(function() {
       // We have nothing to play, waiting will be fired.
       return once(v, "waiting");
     }).then(function() {
       var promises = [];
       promises.push(once(v, "playing"));
-      promises.push(fetchAndLoad(sb, 'bipbop/bipbop', range(1,3), '.m4s'));
+      promises.push(fetchAndLoad(sb, 'bipbop/bipbop', range(1,4), '.m4s'));
       return Promise.all(promises);
     }).then(function() {
       var promises = [];
       promises.push(once(ms, "sourceended"));
       promises.push(once(v, "ended"));
       return Promise.all(promises);