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
e10a4704
...
e10a47049dae7b35486855e3f2763eca0b553e1c
authored
2013-05-09 18:59:36 +0200
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed #390 - casper.start().wait(x, fn) makes test hang on fail
1 parent
8ee6b142
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
modules/casper.js
modules/tester.js
modules/casper.js
View file @
e10a470
...
...
@@ -1946,7 +1946,11 @@ Casper.prototype.wait = function wait(timeout, then) {
setTimeout
(
function
_check
(
self
)
{
self
.
log
(
f
(
"wait() finished waiting for %dms."
,
timeout
),
"info"
);
if
(
then
)
{
try
{
then
.
call
(
self
,
self
);
}
catch
(
error
)
{
self
.
emit
(
'wait.error'
,
error
);
}
}
self
.
waitDone
();
},
timeout
,
this
);
...
...
modules/tester.js
View file @
e10a470
...
...
@@ -191,6 +191,7 @@ var Tester = function Tester(casper, options) {
}
[
'wait.error'
,
'waitFor.timeout.error'
,
'event.error'
,
'step.error'
,
...
...
Please
register
or
sign in
to post a comment