Bug 1275461: Extend a timeout. r=drno a=testonly
authorByron Campen [:bwc] <docfaraday@gmail.com>
Tue, 09 Aug 2016 10:29:10 -0500
changeset 348063 d9f44ae5701cb58d2cdb3ae5f5dd6bb34697baec
parent 348062 170d7f1c6661c703ec4012cd49fea5d979ebd993
child 348064 3343a5caa401d5df108638bf54e34538505cce55
push id6389
push userraliiev@mozilla.com
push dateMon, 19 Sep 2016 13:38:22 +0000
treeherdermozilla-beta@01d67bfe6c81 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdrno, testonly
bugs1275461
milestone50.0a2
Bug 1275461: Extend a timeout. r=drno a=testonly 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")
     );