Commit f5f6b545 f5f6b545c6ccd9e7a5be626244e1ebd19e1b4156 by Laurent Jouanneau

Refs #482: casper.viewport, different time for phantomjs

1 parent 60020675
......@@ -1897,7 +1897,7 @@ Casper.prototype.viewport = function viewport(width, height, then) {
width: width,
height: height
};
var time = (phantom.casperEngine == 'slimerjs'?400:100);
return this.then(function _step() {
this.waitStart();
setTimeout(function _check(self) {
......@@ -1906,7 +1906,7 @@ Casper.prototype.viewport = function viewport(width, height, then) {
if (utils.isFunction(then)){
self.then(then);
}
}, 300, this);
}, time, this);
});
};
......