Bug 1064826 - Fix random test failures: don't start test seek sequence until appends have been processed. Test only. DONTBUILD
authorMatthew Gregan <kinetik@flim.org>
Mon, 15 Sep 2014 16:16:54 +1200
changeset 205303 3c53d2b9c6d8442a4e0d3b87c855743aff38d58a
parent 205302 f5ab7e76389e5b16b50c44acfb0a4d7521ce24bb
child 205304 e2a5a084be39c6012fb1e65e838a8bea466b2d50
push id49134
push usermgregan@mozilla.com
push dateMon, 15 Sep 2014 10:55:00 +0000
treeherdermozilla-inbound@3c53d2b9c6d8 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1064826
milestone35.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1064826 - Fix random test failures: don't start test seek sequence until appends have been processed. Test only. DONTBUILD
content/media/mediasource/test/mochitest.ini
content/media/mediasource/test/test_FrameSelection.html
--- a/content/media/mediasource/test/mochitest.ini
+++ b/content/media/mediasource/test/mochitest.ini
@@ -2,13 +2,12 @@
 skip-if = e10s || buildapp == 'b2g' # b2g( ReferenceError: MediaSource is not defined)
 support-files =
   mediasource.js
   seek.webm seek.webm^headers^
   seek_lowres.webm seek_lowres.webm^headers^
 
 [test_BufferedSeek.html]
 [test_FrameSelection.html]
-skip-if = os == "mac"
 [test_MediaSource.html]
 [test_SplitAppendDelay.html]
 [test_SplitAppend.html]
 
--- a/content/media/mediasource/test/test_FrameSelection.html
+++ b/content/media/mediasource/test/test_FrameSelection.html
@@ -44,20 +44,20 @@ runWithMSE(function () {
         var first = true;
         sb.addEventListener("updateend", function () {
           if (first) {
             // Append media segment covering range [2, 4].
             sb.appendBuffer(new Uint8Array(arrayBuffer, 51003));
             first = false;
           } else {
             ms.endOfStream();
+            target = targets.shift();
+            v.currentTime = target.currentTime;
           }
         });
-        target = targets.shift();
-        v.currentTime = target.currentTime;
       });
     });
 
     v.addEventListener("seeked", function () {
       is(v.currentTime, target.currentTime, "Video currentTime not at target");
 
       is(v.videoWidth, target.videoWidth, "videoWidth has incorrect final value");
       is(v.videoHeight, target.videoHeight, "videoHeight has incorrect final value");