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-overrides-test | |
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-overrides-test')
6 files changed, 61 insertions, 0 deletions
diff --git a/addon-sdk/source/test/fixtures/native-overrides-test/ignore.js b/addon-sdk/source/test/fixtures/native-overrides-test/ignore.js new file mode 100644 index 000000000..02539eb79 --- /dev/null +++ b/addon-sdk/source/test/fixtures/native-overrides-test/ignore.js @@ -0,0 +1,6 @@ +/* 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/. */ +'use strict'; + +exports.bar = "do not ignore this export"; diff --git a/addon-sdk/source/test/fixtures/native-overrides-test/index.js b/addon-sdk/source/test/fixtures/native-overrides-test/index.js new file mode 100644 index 000000000..ef0b6bba1 --- /dev/null +++ b/addon-sdk/source/test/fixtures/native-overrides-test/index.js @@ -0,0 +1,19 @@ +/* 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/. */ +'use strict'; + +var foo = require("foo"); +var coolTabs = require("cool-tabs"); + +exports.foo = foo.fs; +exports.bar = foo.bar; +exports.fs = require("sdk/io/fs"); +exports.extra = require("fs-extra").extra; +exports.overload = require("overload"); +exports.overloadLib = require("overload/lib/foo.js"); +exports.internal = require("internal").internal; +exports.Tabs = require("sdk/tabs").Tabs; +exports.CoolTabs = coolTabs.Tabs; +exports.CoolTabsLib = coolTabs.TabsLib; +exports.ignore = require("./lib/ignore").foo; diff --git a/addon-sdk/source/test/fixtures/native-overrides-test/lib/ignore.js b/addon-sdk/source/test/fixtures/native-overrides-test/lib/ignore.js new file mode 100644 index 000000000..d37a7827a --- /dev/null +++ b/addon-sdk/source/test/fixtures/native-overrides-test/lib/ignore.js @@ -0,0 +1,6 @@ +/* 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/. */ +'use strict'; + +exports.foo = require("../ignore").bar; diff --git a/addon-sdk/source/test/fixtures/native-overrides-test/lib/internal.js b/addon-sdk/source/test/fixtures/native-overrides-test/lib/internal.js new file mode 100644 index 000000000..2d5f419fd --- /dev/null +++ b/addon-sdk/source/test/fixtures/native-overrides-test/lib/internal.js @@ -0,0 +1,6 @@ +/* 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/. */ +'use strict'; + +exports.internal = "test"; diff --git a/addon-sdk/source/test/fixtures/native-overrides-test/lib/tabs.js b/addon-sdk/source/test/fixtures/native-overrides-test/lib/tabs.js new file mode 100644 index 000000000..20f59551e --- /dev/null +++ b/addon-sdk/source/test/fixtures/native-overrides-test/lib/tabs.js @@ -0,0 +1,6 @@ +/* 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/. */ +'use strict'; + +exports.Tabs = "no tabs exist"; diff --git a/addon-sdk/source/test/fixtures/native-overrides-test/package.json b/addon-sdk/source/test/fixtures/native-overrides-test/package.json new file mode 100644 index 000000000..346cf76f5 --- /dev/null +++ b/addon-sdk/source/test/fixtures/native-overrides-test/package.json @@ -0,0 +1,18 @@ +{ + "name": "native-overrides-test", + "main": "index.js", + "dependencies": { + "cool-tabs": "*", + "foo": "*", + "fs-extra": "*" + }, + "jetpack": { + "overrides": { + "fs": "sdk/io/fs", + "overload": "foo", + "internal": "./lib/internal", + "sdk/tabs": "./lib/tabs", + "../ignore": "foo" + } + } +} |