Permalink
Browse files

Support exit status from JS.Test on Windows Script Host.

  • Loading branch information...
1 parent cbcabab commit a19e11666240b060dad1591fedef879aa1227b88 @jcoglan committed Jul 10, 2011
Showing with 4 additions and 2 deletions.
  1. +4 −2 source/test/unit/ui/console/test_runner.js
@@ -82,9 +82,11 @@ JS.Test.Unit.UI.extend({
this.puts('');
var status = this._result.passed() ? 0 : 1;
- if (typeof process === 'object') process.exit(status);
+
+ if (typeof WScript !== 'undefined') WScript.Quit(status);
+ if (typeof process === 'object') process.exit(status);
if (typeof system === 'object' && system.exit) system.exit(status);
- if (typeof quit == 'function') quit(status);
+ if (typeof quit == 'function') quit(status);
},
_testStarted: function(testCase) {

0 comments on commit a19e116

Please sign in to comment.