cacert-testmgr/external/ZendFramework-1.9.5/externals/dojo/util/doh/_rhinoRunner.js
Markus Warg 8398c9048d initially import ZendFramework-1.9.5 into repository
code was modified slightly, so the code differs from the original downloadable 1.9.5 version
2010-03-31 10:12:32 +02:00

17 lines
371 B
JavaScript

if(this["dojo"]){
dojo.provide("doh._rhinoRunner");
}
doh.debug = print;
// Override the doh._report method to make it quit with an
// appropriate exit code in case of test failures.
(function(){
var oldReport = doh._report;
doh._report = function(){
oldReport.apply(doh, arguments);
if(this._failureCount > 0 || this._errorCount > 0){
quit(1);
}
}
})();