all.js 965 B

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