Bug fix: indexFromSetName on invisible sets (#771)
[dygraphs.git] / scripts / casperscript.js
... / ...
CommitLineData
1// This script can be used to check for errors/console warnings in _all_ the
2// files in tests/*.html.
3//
4// Suggested usage:
5//
6// npm install casperjs
7// for x in tests/*.html; casperjs scripts/casperscript.js $x
8
9var casper = require('casper').create({
10 verbose: true
11});
12var filename = casper.cli.args[0];
13
14casper.echo(filename);
15casper.on('remote.message', function(message) {
16 this.echo('page console: ' + message);
17});
18
19casper.on('resource.error', function(e) {
20 this.echo('resource.error: ' + e);
21});
22casper.on('page.error', function(e) {
23 this.echo('error! ' + e);
24});
25
26casper.start(filename, function() { });
27
28casper.run();