more informative message on server timeout

This commit is contained in:
Paul Ivanov 2013-09-26 15:35:23 -07:00
parent 3725218069
commit 0ea7d1e394

View File

@ -51,6 +51,12 @@ casper.notebookTest = function(test) {
});
};
casper.options.waitTimeout=5000
casper.on('waitFor.timeout', function onWaitForTimeout(timeout) {
this.echo("Timeout for " + casper.getNotebookServer());
this.echo("Is the notebook server running?");
});
// Pass `console.log` calls from page JS to casper.
casper.printLog = function () {
this.on('remote.message', function(msg) {