3.0 source code
This commit is contained in:
17
OfficeWeb/vendor/requirejs/tests/doh/_rhinoRunner.js
vendored
Normal file
17
OfficeWeb/vendor/requirejs/tests/doh/_rhinoRunner.js
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
})();
|
||||
Reference in New Issue
Block a user