diff options
author | Matt A. Tobin <email@mattatobin.com> | 2018-02-09 06:46:43 -0500 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2018-02-09 06:46:43 -0500 |
commit | ac46df8daea09899ce30dc8fd70986e258c746bf (patch) | |
tree | 2750d3125fc253fd5b0671e4bd268eff1fd97296 /addon-sdk/test/browser_sdk_loader_sdk_modules.js | |
parent | 8cecf8d5208f3945b35f879bba3015bb1a11bec6 (diff) | |
download | UXP-ac46df8daea09899ce30dc8fd70986e258c746bf.tar UXP-ac46df8daea09899ce30dc8fd70986e258c746bf.tar.gz UXP-ac46df8daea09899ce30dc8fd70986e258c746bf.tar.lz UXP-ac46df8daea09899ce30dc8fd70986e258c746bf.tar.xz UXP-ac46df8daea09899ce30dc8fd70986e258c746bf.zip |
Move Add-on SDK source to toolkit/jetpack
Diffstat (limited to 'addon-sdk/test/browser_sdk_loader_sdk_modules.js')
-rw-r--r-- | addon-sdk/test/browser_sdk_loader_sdk_modules.js | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/addon-sdk/test/browser_sdk_loader_sdk_modules.js b/addon-sdk/test/browser_sdk_loader_sdk_modules.js deleted file mode 100644 index 420633235..000000000 --- a/addon-sdk/test/browser_sdk_loader_sdk_modules.js +++ /dev/null @@ -1,22 +0,0 @@ -function test () { - let loader = makeLoader(); - let module = Module("./main", "scratchpad://"); - let require = Require(loader, module); - - let { has } = require("sdk/util/array"); - let { extend } = require("sdk/util/object"); - let testArray = [1, 'hello', 2, 'hi']; - - ok(has(testArray, 1), 'loader loading simple array utils'); - ok(has(testArray, 'hello'), 'loader loading simple array utils'); - ok(!has(testArray, 4), 'loader loading simple array utils'); - - let testObj1 = { strings: 6, prop: [] }; - let testObj2 = { name: 'Tosin Abasi', strings: 8 }; - let extended = extend(testObj1, testObj2); - - is(extended.name, 'Tosin Abasi', 'loader loading simple object utils'); - is(extended.strings, 8, 'loader loading simple object utils'); - is(extended.prop, testObj1.prop, 'loader loading simple object utils'); - finish(); -} |