Bug 974620 - tcanvasmark wastes time waiting after each scene. r=jmaher
authormalayaleecoder <malayaleecoder@gmail.com>
Mon, 18 Jul 2016 11:00:20 +0530
changeset 332418 d0cb076a4e736e89f8393ba5658148ae5be4171d
parent 332417 bfb76ef187d9793edbc16aab9c42555a4b7c347f
child 332419 c16134a5a20fd1631076c7bb115ea108145dcf17
push id9858
push userjlund@mozilla.com
push dateMon, 01 Aug 2016 14:37:10 +0000
treeherdermozilla-aurora@203106ef6cb6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjmaher
bugs974620
milestone50.0a1
Bug 974620 - tcanvasmark wastes time waiting after each scene. r=jmaher
testing/talos/talos/tests/canvasmark/scripts/canvasmark_v6.js
--- a/testing/talos/talos/tests/canvasmark/scripts/canvasmark_v6.js
+++ b/testing/talos/talos/tests/canvasmark/scripts/canvasmark_v6.js
@@ -449,17 +449,17 @@ window.requestAnimFrame = (function()
       },
       
       onKeyUpHandler: function onKeyUpHandler(keyCode)
       {
       },
       
       isComplete: function isComplete()
       {
-         return this.sceneCompletedTime && (Date.now() - this.sceneCompletedTime > 2000);
+         return this.sceneCompletedTime && (Date.now() > this.sceneCompletedTime);
       },
       
       intervalRenderer: function intervalRenderer(interval, ctx)
       {
          if (interval.framecounter++ < 100)
          {
             Game.centerFillText(ctx, interval.label, "14pt Courier New", GameHandler.height/2 - 8, "white");
          }