Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
casperjs
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
f5f6b545
...
f5f6b545c6ccd9e7a5be626244e1ebd19e1b4156
authored
2013-07-12 16:12:25 +0200
by
Laurent Jouanneau
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Refs #482: casper.viewport, different time for phantomjs
1 parent
60020675
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
modules/casper.js
modules/casper.js
View file @
f5f6b54
...
...
@@ -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
);
});
};
...
...
Please
register
or
sign in
to post a comment