diff options
Diffstat (limited to 'tools/addon-sdk-1.4/packages/api-utils/tests/test-globals.js')
-rw-r--r-- | tools/addon-sdk-1.4/packages/api-utils/tests/test-globals.js | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/tools/addon-sdk-1.4/packages/api-utils/tests/test-globals.js b/tools/addon-sdk-1.4/packages/api-utils/tests/test-globals.js deleted file mode 100644 index 97cb774..0000000 --- a/tools/addon-sdk-1.4/packages/api-utils/tests/test-globals.js +++ /dev/null @@ -1,21 +0,0 @@ -Object.defineProperty(this, "global", { value: this }); - -exports.testGlobals = function(test) { - // the only globals in module scope should be: - // module, exports, require, dump, console - test.assertObject(module, "have 'module', good"); - test.assertObject(exports, "have 'exports', good"); - test.assertFunction(require, "have 'require', good"); - test.assertFunction(dump, "have 'dump', good"); - test.assertObject(console, "have 'console', good"); - - // in particular, these old globals should no longer be present - test.assert(!('packaging' in global), "no 'packaging', good"); - // this will be fixed by bug 620559 - test.expectFail(function() { - test.assert(!('memory' in global), "no 'memory', good"); - }); - - test.assertMatches(module.uri, /test-globals\.js$/, - 'should contain filename'); -}; |