diff options
author | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
---|---|---|
committer | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
commit | 5f8de423f190bbb79a62f804151bc24824fa32d8 (patch) | |
tree | 10027f336435511475e392454359edea8e25895d /addon-sdk/source/test/fixtures/native-addon-test/index.js | |
parent | 49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff) | |
download | UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip |
Add m-esr52 at 52.6.0
Diffstat (limited to 'addon-sdk/source/test/fixtures/native-addon-test/index.js')
-rw-r--r-- | addon-sdk/source/test/fixtures/native-addon-test/index.js | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/addon-sdk/source/test/fixtures/native-addon-test/index.js b/addon-sdk/source/test/fixtures/native-addon-test/index.js new file mode 100644 index 000000000..68720d401 --- /dev/null +++ b/addon-sdk/source/test/fixtures/native-addon-test/index.js @@ -0,0 +1,37 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +// Added noise to test AST walker +for (var i = 0; i < 5; i++) { + square(i); +} + +exports.directoryDefaults = require('./utils'); +exports.directoryMain = require('./newmodule'); +exports.resolvesJSoverDir= require('./dir/a'); +exports.math = require('test-math'); +exports.mathInRelative = require('./dir/b'); +exports.customMainModule = require('test-custom-main'); +exports.customMainModuleRelative = require('test-custom-main-relative'); +exports.defaultMain = require('test-default-main'); +exports.testJSON = require('./dir/c'); +exports.dummyModule = require('./dir/dummy'); + +exports.eventCore = require('sdk/event/core'); +exports.promise = require('sdk/core/promise'); + +exports.localJSM = require('./dir/test.jsm'); +exports.promisejsm = require('modules/Promise.jsm').Promise; +exports.require = require; + +var math = require('test-math'); +exports.areModulesCached = (math === exports.math); + +// Added noise to test AST walker +function square (x) { + let tmp = x; + tmp *= x; + return tmp; +} + |