Commit ae7d5b78 ae7d5b78a913bdae88cffe01cb1d6a9e9c72336c by Nicolas Perriault

fixed Casper.wait()

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