Bug 1275461: Extend a timeout. r=drno
authorByron Campen [:bwc] <docfaraday@gmail.com>
Tue, 09 Aug 2016 10:29:10 -0500
changeset 308974 18c9f28cab5be199c2adea150dafdfb628c47d20
parent 308973 03bc744ea8c0c94a5943835f1936d1b409a32cdf
child 308975 dc8f8117d67b5ae9c7b42b72e3567ef5e754b1fa
child 309101 bddf684f5b461f2f40b907c5ae7fab4b05211a96
push id20288
push userkwierso@gmail.com
push dateWed, 10 Aug 2016 23:55:56 +0000
treeherderfx-team@c50708c38f81 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
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")
     );