mocha-casperjs
Advanced tools
Comparing version 0.5.8 to 0.6.0
@@ -31,3 +31,6 @@ module.exports = function (Mocha, casper, utils) { | ||
} | ||
}, | ||
resetSteps = function() { | ||
casper.bypass(casper.steps.length) | ||
} | ||
@@ -52,3 +55,3 @@ | ||
casper.on('waitFor.timeout', function(timeout, details) { | ||
casper.step++ | ||
resetSteps() | ||
var message = f('waitFor timeout of %dms occured', timeout) | ||
@@ -83,7 +86,7 @@ details = details || {} | ||
casper.on('step.timeout', function(step) { | ||
casper.step++ | ||
resetSteps() | ||
failTest(new Error(f('step %d timed out (%dms)', step, casper.options.stepTimeout))) | ||
}) | ||
casper.on('timeout', function() { | ||
casper.step++ | ||
resetSteps() | ||
failTest(new Error(f('Load timeout of (%dms)', casper.options.timeout))) | ||
@@ -90,0 +93,0 @@ }) |
@@ -11,3 +11,3 @@ { | ||
], | ||
"version": "0.5.8" , | ||
"version": "0.6.0" , | ||
"author": "Nathan Black <nathan@nathanblack.org>", | ||
@@ -14,0 +14,0 @@ "license": "MIT", |
@@ -55,2 +55,4 @@ # CasperJS automation via Mocha [![Build Status](https://secure.travis-ci.org/nathanboktae/mocha-casperjs.png?branch=master)](https://travis-ci.org/nathanboktae/mocha-casperjs) | ||
Remember that your tests *do not run in node.js*, but whatever engine you choose from casperjs, so your language and API features will depend on that. | ||
#### Windows users | ||
@@ -57,0 +59,0 @@ |
29050
418
183