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
3b8f3e1b
...
3b8f3e1bda953f213c50e5f8ad00f841511d3321
authored
2013-10-31 13:52:58 -0700
by
Nathan Black
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Update step.timeout to have the same params as onStepTimeout
1 parent
414f83d2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
docs/events-filters.rst
modules/casper.js
docs/events-filters.rst
View file @
3b8f3e1
...
...
@@ -437,7 +437,7 @@ Emitted when a navigation step has been started.
``step.timeout``
~~~~~~~~~~~~~~~~
**Arguments:** ``
None
``
**Arguments:** ``
[step, timeout]
``
Emitted when a navigation step has been executed.
...
...
modules/casper.js
View file @
3b8f3e1
...
...
@@ -1504,7 +1504,7 @@ Casper.prototype.runStep = function runStep(step) {
var
stepTimeoutCheckInterval
=
setInterval
(
function
_check
(
self
,
start
,
stepNum
)
{
if
(
new
Date
().
getTime
()
-
start
>
self
.
options
.
stepTimeout
)
{
if
(
getCurrentSuiteId
(
self
)
===
stepNum
)
{
self
.
emit
(
'step.timeout'
);
self
.
emit
(
'step.timeout'
,
stepNum
,
self
.
options
.
onStepTimeout
);
if
(
utils
.
isFunction
(
self
.
options
.
onStepTimeout
))
{
self
.
options
.
onStepTimeout
.
call
(
self
,
self
.
options
.
stepTimeout
,
stepNum
);
}
...
...
Please
register
or
sign in
to post a comment