Debian Codegraph @

tests/all.js

raw symbols SCIP
1 /*jslint strict: false, evil: true */
2 /*global Packages: false, process: false, require: true, define: true, doh: false */
3
4 //A hack to doh to avoid dojo setup stuff in doh/runner.js
5 var skipDohSetup = true,
6 fs, vm, load, env;
7
8 (function () {
9 if (typeof Packages !== 'undefined') {
10 env = 'rhino';
11 } else if (typeof process !== 'undefined') {
12 env = 'node';
13
14 fs = require('fs');
15 vm = require('vm');
16
17 load = function (path) {
18 return vm.runInThisContext(fs.readFileSync(path, 'utf8'), path);
19 };
20 }
21
22 }());
23
24 //Load the tests.
25 load("doh/runner.js");
26 load('doh/_' + env + 'Runner.js');
27
28 require("./basic/basic-tests");
29 require("./named/named-tests");
30
31 require("./plugins/relative/relative-tests");
32
33 //Cannot handle load.fromText for plugins yet, so commented out.
34 //require("./plugins/coffeescript/coffeescript-tests");
35
36 require("./require/require-tests");
37
38 //Print out the final report
39 doh.run();