Bug 1275461: Extend a timeout. r?drno draft
authorByron Campen [:bwc] <docfaraday@gmail.com>
Tue, 09 Aug 2016 10:29:10 -0500
changeset 398703 19920bbdd56fdb9526e47d964df758515c6606e0
parent 398604 6cf0089510fad8deb866136f5b92bbced9498447
child 527722 95d7215831f92963be59d6a886bdb761afe1d576
push id25601
push userbcampen@mozilla.com
push dateTue, 09 Aug 2016 16:35:03 +0000
reviewersdrno
bugs1275461
milestone51.0a1
Bug 1275461: Extend a timeout. r?drno MozReview-Commit-ID: FEQ7aMo9UuD
dom/media/tests/mochitest/head.js
--- a/dom/media/tests/mochitest/head.js
+++ b/dom/media/tests/mochitest/head.js
@@ -833,25 +833,26 @@ VideoStreamHelper.prototype = {
         // ignore; stream might have shut down, and we don't bother clearing
         // the setInterval.
       }
     }, 100);
   },
 
   waitForFrames: function(canvas, timeout_value) {
     var intervalId = this.startCapturingFrames();
+    timeout_value = timeout_value || 8000;
 
     return addFinallyToPromise(timeout(
       Promise.all([
         this._helper.waitForPixelColor(canvas, this._helper.green, 128,
                                        canvas.id + " should become green"),
         this._helper.waitForPixelColor(canvas, this._helper.red, 128,
                                        canvas.id + " should become red")
       ]),
-      2000,
+      timeout_value,
       "Timed out waiting for frames")).finally(() => clearInterval(intervalId));
   },
 
   verifyNoFrames: function(canvas) {
     return this.waitForFrames(canvas).then(
       () => ok(false, "Color should not change"),
       () => ok(true, "Color should not change")
     );