Commit 4a728b21 4a728b21a89b03a042d6d80e49aa93813db34b2b by Nicolas Perriault

added more information when a step timeout occurs in tests

1 parent 3eb1fc00
......@@ -78,8 +78,8 @@ var Tester = function Tester(casper, options) {
};
// specific timeout callbacks
casper.options.onStepTimeout = function test_onStepTimeout(timeout) {
this.test.fail(f("Step timeout occured (%dms)", timeout));
casper.options.onStepTimeout = function test_onStepTimeout(timeout, step) {
this.test.fail(f("Step timeout occured at step %d (%dms)", step, timeout));
};
casper.options.onTimeout = function test_onTimeout(timeout) {
......