Bug 997909 - Fix typo. r=mdas
authorJonathan Griffin <jgriffin@mozilla.com>
Tue, 07 Oct 2014 09:40:05 -0700
changeset 233809 827b92f481dd5fdd68cd70699396021d85b72c5e
parent 233808 ac5d23ce1ce9f8abbd563c70f5485ebd04b60236
child 233810 1cefa7ecccbda6ef03c37e5c902f752eefaf476f
push id611
push userraliiev@mozilla.com
push dateMon, 05 Jan 2015 23:23:16 +0000
treeherdermozilla-release@345cd3b9c445 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmdas
bugs997909
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 997909 - Fix typo. r=mdas
testing/marionette/marionette-simpletest.js
--- a/testing/marionette/marionette-simpletest.js
+++ b/testing/marionette/marionette-simpletest.js
@@ -170,17 +170,17 @@ Marionette.prototype = {
   waitFor: function test_waitFor(callback, test, timeout) {
       this.heartbeatCallback();
       if (test()) {
         callback();
         return;
       }
       var now = new Date();
       var deadline = (timeout instanceof Date) ? timeout :
-                     new Date(now.valueOf + (typeof(timeout) == "undefined" ? this.timeout : timeout))
+                     new Date(now.valueOf() + (typeof(timeout) == "undefined" ? this.timeout : timeout))
       if (deadline <= now) {
         dump("waitFor timeout: " + test.toString() + "\n");
         // the script will timeout here, so no need to raise a separate
         // timeout exception
         return;
       }
       this.window.setTimeout(this.waitFor.bind(this), 100, callback, test, deadline);
   },