Bug 997909 - Fix typo. r=mdas
authorJonathan Griffin <jgriffin@mozilla.com>
Tue, 07 Oct 2014 09:40:05 -0700
changeset 209274 827b92f481dd5fdd68cd70699396021d85b72c5e
parent 209273 ac5d23ce1ce9f8abbd563c70f5485ebd04b60236
child 209275 1cefa7ecccbda6ef03c37e5c902f752eefaf476f
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewersmdas
bugs997909
milestone35.0a1
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);
   },