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
0b128997
...
0b12899708d5204252f3dc4c093b71e214ae3204
authored
2012-01-11 18:02:17 +0100
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed Casper.waitFor() was not caling testFx using the correct context
1 parent
e8ba4d18
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
modules/casper.js
modules/casper.js
View file @
0b12899
...
...
@@ -1078,7 +1078,7 @@ Casper.prototype.waitFor = function waitFor(testFx, then, onTimeout, timeout) {
var
condition
=
false
;
var
interval
=
setInterval
(
function
(
self
,
testFx
,
timeout
,
onTimeout
)
{
if
((
new
Date
().
getTime
()
-
start
<
timeout
)
&&
!
condition
)
{
condition
=
testFx
(
self
);
condition
=
testFx
.
call
(
self
,
self
);
}
else
{
self
.
waitDone
();
if
(
!
condition
)
{
...
...
Please
register
or
sign in
to post a comment