Configuration_Example.js 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. // Put this file in the parent directory of the runner folder. Also rename the file to Configuration.js
  2. (function(context){
  3. var Configuration = context.Configuration = {};
  4. // Runner name
  5. Configuration.name = 'MooTools More';
  6. // Presets - combine the sets and the source to a preset to easily run a test
  7. Configuration.presets = {
  8. 'more-all': {
  9. sets: ['1.3-all'],
  10. source: ['core-1.3-base', 'core-1.3-client']
  11. }
  12. };
  13. // An object with default presets
  14. Configuration.defaultPresets = {
  15. browser: 'more-all',
  16. nodejs: 'more-base',
  17. jstd: 'more-all'
  18. };
  19. /*
  20. * An object with sets. Each item in the object should have an path key,
  21. * that specifies where the spec files are and an array with all the files
  22. * without the .js extension relative to the given path
  23. */
  24. Configuration.sets = {
  25. '1.3-all': {
  26. path: '1.3/',
  27. files: ['Core/Lang', 'Core/Log']
  28. }
  29. };
  30. /*
  31. * An object with the source files. Each item should have an path key,
  32. * that specifies where the source files are and an array with all the files
  33. * without the .js extension relative to the given path
  34. */
  35. Configuration.source = {
  36. 'core-1.3-base': {
  37. path: 'mootools-core/Source/',
  38. files: [
  39. 'Core/Core',
  40. 'Types/Array',
  41. 'Types/Function',
  42. 'Types/Number'
  43. ]
  44. },
  45. 'core-1.3-client': {
  46. path: 'mootools-core/Source/',
  47. files: [
  48. 'Types/Event',
  49. 'Browser/Browser'
  50. ]
  51. }
  52. };
  53. })(typeof exports != 'undefined' ? exports : this);