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
b33206f3
...
b33206f3a0283c73b5974e00bf3877249953bddc
authored
2012-01-16 10:10:27 +0100
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
DRYed interval clearance in Casper.waitFor()
1 parent
a4b5c575
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
2 deletions
modules/casper.js
modules/casper.js
View file @
b33206f
...
...
@@ -1089,14 +1089,13 @@ Casper.prototype.waitFor = function waitFor(testFx, then, onTimeout, timeout) {
}
else
{
self
.
die
(
f
(
"Timeout of %dms expired, exiting."
,
timeout
),
"error"
);
}
clearInterval
(
interval
);
}
else
{
self
.
log
(
f
(
"waitFor() finished in %dms."
,
new
Date
().
getTime
()
-
start
),
"info"
);
if
(
then
)
{
self
.
then
(
then
);
}
clearInterval
(
interval
);
}
clearInterval
(
interval
);
}
},
100
,
this
,
testFx
,
timeout
,
onTimeout
);
});
...
...
Please
register
or
sign in
to post a comment