1 // This script can be used to check for errors/console warnings
in _all_ the
2 // files in tests/*.html
.
6 // npm install casperjs
7 // for x in tests/*.html
; casperjs scripts
/casperscript
.js
$x
9 var casper
= require('casper').create({
12 var filename
= casper
.cli
.args
[0];
14 casper
.echo(filename
);
15 casper
.on('remote.message', function(message
) {
16 this.echo('page console: ' + message
);
19 casper
.on('resource.error', function(e
) {
20 this.echo('resource.error: ' + e
);
22 casper
.on('page.error', function(e
) {
23 this.echo('error! ' + e
);
26 casper
.start(filename
, function() { });