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