/*jslint strict: false, evil: true */ /*global Packages: false, process: false, require: true, define: true, doh: false */ //A hack to doh to avoid dojo setup stuff in doh/runner.js var skipDohSetup = true, fs, vm, load, env; (function () { if (typeof Packages !== 'undefined') { env = 'rhino'; } else if (typeof process !== 'undefined') { env = 'node'; fs = require('fs'); vm = require('vm'); load = function (path) { return vm.runInThisContext(fs.readFileSync(path, 'utf8'), path); }; } }()); //Load the tests. load("doh/runner.js"); load('doh/_' + env + 'Runner.js'); require("./basic/basic-tests"); require("./named/named-tests"); require("./plugins/relative/relative-tests"); //Cannot handle load.fromText for plugins yet, so commented out. //require("./plugins/coffeescript/coffeescript-tests"); require("./require/require-tests"); //Print out the final report doh.run();