Commit ae7d5b78 ae7d5b78a913bdae88cffe01cb1d6a9e9c72336c by Nicolas Perriault

fixed Casper.wait()

1 parent 44767e24
...@@ -651,7 +651,7 @@ ...@@ -651,7 +651,7 @@
651 this.delayedExecution = true; 651 this.delayedExecution = true;
652 var start = new Date().getTime(); 652 var start = new Date().getTime();
653 var interval = setInterval(function(self, then) { 653 var interval = setInterval(function(self, then) {
654 if (!new Date().getTime() - start < timeout) { 654 if (new Date().getTime() - start > timeout) {
655 self.delayedExecution = false; 655 self.delayedExecution = false;
656 self.log("wait() finished wating for " + timeout + "ms.", "info"); 656 self.log("wait() finished wating for " + timeout + "ms.", "info");
657 if (then) { 657 if (then) {
......