Commit 3b8f3e1b 3b8f3e1bda953f213c50e5f8ad00f841511d3321 by Nathan Black

Update step.timeout to have the same params as onStepTimeout

1 parent 414f83d2
......@@ -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.
......
......@@ -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);
}
......