Commit 5ec02b49 5ec02b49067dd3a7ceee29e3553b053ea2b6b082 by Nicolas Perriault

began updateing test runner, suites to follow

1 parent 2ce1b83c
......@@ -28,6 +28,7 @@
var fs = require('fs');
var utils = require('utils');
var esprima = require('./modules/vendors/esprima');
exports.create = function(casper, options) {
return new Tester(casper, options);
......
......@@ -6,15 +6,8 @@ if (!phantom.casperLoaded) {
var fs = require('fs');
var utils = require('utils');
phantom.injectJs(fs.pathJoin(phantom.casperPath, 'lib', 'vendors', 'esprima.js'));
var casper = new phantom.Casper({
faultTolerant: false,
verbose: true
});
// Overriding Casper.open to prefix all test urls
phantom.Casper.extend({
require('casper').Casper.extend({
open: function(location, options) {
options = utils.isType(options, "object") ? options : {};
this.requestUrl = location;
......@@ -24,6 +17,11 @@ phantom.Casper.extend({
}
});
var casper = require('casper').create({
faultTolerant: false,
verbose: true
});
(function(casper) {
var tests = [];
if (casper.cli.args.length) {
......