_rhinoRunner.js 371 B

1234567891011121314151617
  1. if(this["dojo"]){
  2. dojo.provide("doh._rhinoRunner");
  3. }
  4. doh.debug = print;
  5. // Override the doh._report method to make it quit with an
  6. // appropriate exit code in case of test failures.
  7. (function(){
  8. var oldReport = doh._report;
  9. doh._report = function(){
  10. oldReport.apply(doh, arguments);
  11. if(this._failureCount > 0 || this._errorCount > 0){
  12. quit(1);
  13. }
  14. }
  15. })();