Permalink
Browse files

added unit test for 'wsh' option

  • Loading branch information...
1 parent 80861ab commit 90ef4311389d667752a2403c25cb3a297127ef6c @benblank benblank committed Apr 27, 2011
Showing with 18 additions and 0 deletions.
  1. +18 −0 tests/envs.js
View
@@ -264,6 +264,24 @@ exports.rhino = function () {
assert.globalsKnown(globals, { rhino: true });
};
+exports.wsh = function () {
+ var globals = [
+ 'ActiveXObject'
+ , 'Enumerator'
+ , 'GetObject'
+ , 'ScriptEngine'
+ , 'ScriptEngineBuildVersion'
+ , 'ScriptEngineMajorVersion'
+ , 'ScriptEngineMinorVersion'
+ , 'VBArray'
+ , 'WSH'
+ , 'WScript'
+ ];
+
+ assert.globalsImplied(globals);
+ assert.globalsKnown(globals, { wsh: true });
+};
+
exports.es5 = function () {
var src = fs.readFileSync(__dirname + "/fixtures/es5.js", "utf8");

0 comments on commit 90ef431

Please sign in to comment.