summaryrefslogtreecommitdiffstats
path: root/addon-sdk/source/test/fixtures/native-addon-test
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2018-02-09 06:46:43 -0500
committerMatt A. Tobin <email@mattatobin.com>2018-02-09 06:46:43 -0500
commitac46df8daea09899ce30dc8fd70986e258c746bf (patch)
tree2750d3125fc253fd5b0671e4bd268eff1fd97296 /addon-sdk/source/test/fixtures/native-addon-test
parent8cecf8d5208f3945b35f879bba3015bb1a11bec6 (diff)
downloadUXP-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/source/test/fixtures/native-addon-test')
-rw-r--r--addon-sdk/source/test/fixtures/native-addon-test/dir/a.js5
-rw-r--r--addon-sdk/source/test/fixtures/native-addon-test/dir/a/index.js5
-rw-r--r--addon-sdk/source/test/fixtures/native-addon-test/dir/b.js6
-rw-r--r--addon-sdk/source/test/fixtures/native-addon-test/dir/c.js6
-rw-r--r--addon-sdk/source/test/fixtures/native-addon-test/dir/dummy.js6
-rw-r--r--addon-sdk/source/test/fixtures/native-addon-test/dir/test.jsm6
-rw-r--r--addon-sdk/source/test/fixtures/native-addon-test/expectedmap.json25
-rw-r--r--addon-sdk/source/test/fixtures/native-addon-test/index.js37
-rw-r--r--addon-sdk/source/test/fixtures/native-addon-test/newmodule/index.js5
-rw-r--r--addon-sdk/source/test/fixtures/native-addon-test/newmodule/lib/file.js5
-rw-r--r--addon-sdk/source/test/fixtures/native-addon-test/newmodule/package.json3
-rw-r--r--addon-sdk/source/test/fixtures/native-addon-test/package.json10
-rw-r--r--addon-sdk/source/test/fixtures/native-addon-test/utils/index.js7
13 files changed, 0 insertions, 126 deletions
diff --git a/addon-sdk/source/test/fixtures/native-addon-test/dir/a.js b/addon-sdk/source/test/fixtures/native-addon-test/dir/a.js
deleted file mode 100644
index 2f8cccb68..000000000
--- a/addon-sdk/source/test/fixtures/native-addon-test/dir/a.js
+++ /dev/null
@@ -1,5 +0,0 @@
-/* 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/. */
-
-module.exports = 'dir/a';
diff --git a/addon-sdk/source/test/fixtures/native-addon-test/dir/a/index.js b/addon-sdk/source/test/fixtures/native-addon-test/dir/a/index.js
deleted file mode 100644
index a86eaa184..000000000
--- a/addon-sdk/source/test/fixtures/native-addon-test/dir/a/index.js
+++ /dev/null
@@ -1,5 +0,0 @@
-/* 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/. */
-
-module.exports = 'dir/a/index';
diff --git a/addon-sdk/source/test/fixtures/native-addon-test/dir/b.js b/addon-sdk/source/test/fixtures/native-addon-test/dir/b.js
deleted file mode 100644
index cd3e975b2..000000000
--- a/addon-sdk/source/test/fixtures/native-addon-test/dir/b.js
+++ /dev/null
@@ -1,6 +0,0 @@
-/* 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/. */
-
-module.exports = require('test-math');
-
diff --git a/addon-sdk/source/test/fixtures/native-addon-test/dir/c.js b/addon-sdk/source/test/fixtures/native-addon-test/dir/c.js
deleted file mode 100644
index ed5fd149e..000000000
--- a/addon-sdk/source/test/fixtures/native-addon-test/dir/c.js
+++ /dev/null
@@ -1,6 +0,0 @@
-/* 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/. */
-
-module.exports = require('../package.json');
-
diff --git a/addon-sdk/source/test/fixtures/native-addon-test/dir/dummy.js b/addon-sdk/source/test/fixtures/native-addon-test/dir/dummy.js
deleted file mode 100644
index e1640884c..000000000
--- a/addon-sdk/source/test/fixtures/native-addon-test/dir/dummy.js
+++ /dev/null
@@ -1,6 +0,0 @@
-/* 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/. */
-
-module.exports = 'this is a dummy module';
-
diff --git a/addon-sdk/source/test/fixtures/native-addon-test/dir/test.jsm b/addon-sdk/source/test/fixtures/native-addon-test/dir/test.jsm
deleted file mode 100644
index 1e2946f94..000000000
--- a/addon-sdk/source/test/fixtures/native-addon-test/dir/test.jsm
+++ /dev/null
@@ -1,6 +0,0 @@
-/* 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/. */
-
-this['EXPORTED_SYMBOLS'] = ['test'];
-test = 'this is a jsm';
diff --git a/addon-sdk/source/test/fixtures/native-addon-test/expectedmap.json b/addon-sdk/source/test/fixtures/native-addon-test/expectedmap.json
deleted file mode 100644
index 4fa5886f7..000000000
--- a/addon-sdk/source/test/fixtures/native-addon-test/expectedmap.json
+++ /dev/null
@@ -1,25 +0,0 @@
-{
- "./index.js": {
- "./dir/a": "./dir/a.js",
- "./dir/b": "./dir/b.js",
- "./dir/c": "./dir/c.js",
- "./dir/dummy": "./dir/dummy.js",
- "./dir/test.jsm": "./dir/test.jsm",
- "./utils": "./utils/index.js",
- "./newmodule": "./newmodule/lib/file.js",
- "test-math": "./node_modules/test-math/index.js",
- "test-custom-main": "./node_modules/test-custom-main/lib/custom-entry.js",
- "test-custom-main-relative": "./node_modules/test-custom-main-relative/lib/custom-entry.js",
- "test-default-main": "./node_modules/test-default-main/index.js"
- },
- "./dir/b.js": {
- "test-math": "./node_modules/test-math/index.js"
- },
- "./dir/c.js": {
- "../package.json": "./package.json"
- },
- "./node_modules/test-math/index.js": {
- "test-add": "./node_modules/test-math/node_modules/test-add/index.js",
- "test-subtract": "./node_modules/test-math/node_modules/test-subtract/index.js"
- }
-}
diff --git a/addon-sdk/source/test/fixtures/native-addon-test/index.js b/addon-sdk/source/test/fixtures/native-addon-test/index.js
deleted file mode 100644
index 68720d401..000000000
--- a/addon-sdk/source/test/fixtures/native-addon-test/index.js
+++ /dev/null
@@ -1,37 +0,0 @@
-/* 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;
-}
-
diff --git a/addon-sdk/source/test/fixtures/native-addon-test/newmodule/index.js b/addon-sdk/source/test/fixtures/native-addon-test/newmodule/index.js
deleted file mode 100644
index f982e6b98..000000000
--- a/addon-sdk/source/test/fixtures/native-addon-test/newmodule/index.js
+++ /dev/null
@@ -1,5 +0,0 @@
-/* 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/. */
-
-module.exports = 'index.js';
diff --git a/addon-sdk/source/test/fixtures/native-addon-test/newmodule/lib/file.js b/addon-sdk/source/test/fixtures/native-addon-test/newmodule/lib/file.js
deleted file mode 100644
index fab140983..000000000
--- a/addon-sdk/source/test/fixtures/native-addon-test/newmodule/lib/file.js
+++ /dev/null
@@ -1,5 +0,0 @@
-/* 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/. */
-
-module.exports = 'main from new module';
diff --git a/addon-sdk/source/test/fixtures/native-addon-test/newmodule/package.json b/addon-sdk/source/test/fixtures/native-addon-test/newmodule/package.json
deleted file mode 100644
index feae8acaa..000000000
--- a/addon-sdk/source/test/fixtures/native-addon-test/newmodule/package.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "main":"lib/file.js"
-}
diff --git a/addon-sdk/source/test/fixtures/native-addon-test/package.json b/addon-sdk/source/test/fixtures/native-addon-test/package.json
deleted file mode 100644
index f689b83f6..000000000
--- a/addon-sdk/source/test/fixtures/native-addon-test/package.json
+++ /dev/null
@@ -1,10 +0,0 @@
-{
- "main":"index.js",
- "dependencies": {
- "test-math": "*",
- "test-custom-main": "*",
- "test-custom-main-relative": "*",
- "test-default-main": "*",
- "test-assets": "*"
- }
-}
diff --git a/addon-sdk/source/test/fixtures/native-addon-test/utils/index.js b/addon-sdk/source/test/fixtures/native-addon-test/utils/index.js
deleted file mode 100644
index d34af25d5..000000000
--- a/addon-sdk/source/test/fixtures/native-addon-test/utils/index.js
+++ /dev/null
@@ -1,7 +0,0 @@
-/* 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";
-
-module.exports = 'utils';
-