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
1fcccc63
...
1fcccc630ca8cc8b370525868ec7e1f303002301
authored
2012-05-27 23:32:24 +0200
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
removed the faultTolerant option entirely, was *such* a nightmare
1 parent
e5d13edf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
11 deletions
modules/casper.js
modules/casper.js
View file @
1fcccc6
...
...
@@ -66,7 +66,6 @@ var Casper = function Casper(options) {
// default options
this
.
defaults
=
{
clientScripts
:
[],
faultTolerant
:
true
,
logLevel
:
"error"
,
httpStatusHandlers
:
{},
onAlert
:
null
,
...
...
@@ -839,16 +838,7 @@ Casper.prototype.runStep = function runStep(step) {
},
this
.
options
.
stepTimeout
,
this
,
new
Date
().
getTime
(),
this
.
step
);
}
this
.
emit
(
'step.start'
,
step
);
try
{
stepResult
=
step
.
call
(
this
,
this
);
}
catch
(
e
)
{
this
.
emit
(
'step.error'
,
e
);
if
(
this
.
options
.
faultTolerant
)
{
this
.
log
(
"Step error: "
+
e
,
"error"
);
}
else
{
throw
e
;
}
}
stepResult
=
step
.
call
(
this
,
this
);
if
(
utils
.
isFunction
(
this
.
options
.
onStepComplete
))
{
this
.
options
.
onStepComplete
.
call
(
this
,
this
,
stepResult
);
}
...
...
Please
register
or
sign in
to post a comment