run-tests 475 B

1234567891011121314151617
  1. #!/usr/bin/spidermonkey-1.7 -s
  2. //#!/usr/bin/js
  3. // a little helper for testing from command line
  4. // just run it, it will output the test results
  5. load('js/lib/beautify.js');
  6. load('js/test/sanitytest.js')
  7. load('js/test/beautify-tests.js')
  8. load('js/lib/unpackers/urlencode_unpacker.js')
  9. print(run_beautifier_tests(new SanityTest(), Urlencoded, js_beautify).results_raw())
  10. // for nodejs use this from the command line from the main directory:
  11. // node test/beautify-tests.js