From ac46df8daea09899ce30dc8fd70986e258c746bf Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Fri, 9 Feb 2018 06:46:43 -0500 Subject: Move Add-on SDK source to toolkit/jetpack --- .../addon-install-unit-test@mozilla.com.xpi | Bin 5670 -> 0 bytes .../test/fixtures/addon-sdk/data/border-style.css | 4 - .../addon-sdk/data/test-contentScriptFile.js | 5 -- .../fixtures/addon-sdk/data/test-page-worker.html | 13 ---- .../fixtures/addon-sdk/data/test-page-worker.js | 29 -------- .../source/test/fixtures/addon-sdk/data/test.html | 13 ---- addon-sdk/source/test/fixtures/addon/bootstrap.js | 9 --- addon-sdk/source/test/fixtures/addon/index.js | 4 - addon-sdk/source/test/fixtures/addon/package.json | 5 -- .../fixtures/bootstrap-addon/META-INF/manifest.mf | 17 ----- .../fixtures/bootstrap-addon/META-INF/mozilla.rsa | Bin 4191 -> 0 bytes .../fixtures/bootstrap-addon/META-INF/mozilla.sf | 4 - .../test/fixtures/bootstrap-addon/bootstrap.js | 10 --- .../test/fixtures/bootstrap-addon/install.rdf | 27 ------- .../test/fixtures/bootstrap-addon/options.xul | 3 - addon-sdk/source/test/fixtures/bootstrap/utils.js | 52 ------------- addon-sdk/source/test/fixtures/border-style.css | 4 - .../source/test/fixtures/child-process-scripts.js | 81 --------------------- .../fixtures/chrome-worker/addEventListener.js | 6 -- .../source/test/fixtures/chrome-worker/jsctypes.js | 6 -- .../source/test/fixtures/chrome-worker/onerror.js | 6 -- .../test/fixtures/chrome-worker/onmessage.js | 8 -- .../test/fixtures/chrome-worker/setTimeout.js | 8 -- .../source/test/fixtures/chrome-worker/xhr.js | 11 --- addon-sdk/source/test/fixtures/create_xpi.py | 15 ---- addon-sdk/source/test/fixtures/es5.js | 8 -- addon-sdk/source/test/fixtures/include-file.css | 4 - addon-sdk/source/test/fixtures/index.html | 18 ----- .../source/test/fixtures/jsm-package/Test.jsm | 11 --- .../source/test/fixtures/jsm-package/index.js | 46 ------------ .../source/test/fixtures/jsm-package/package.json | 3 - addon-sdk/source/test/fixtures/loader/cycles/a.js | 7 -- addon-sdk/source/test/fixtures/loader/cycles/b.js | 7 -- addon-sdk/source/test/fixtures/loader/cycles/c.js | 7 -- .../source/test/fixtures/loader/cycles/main.js | 14 ---- .../source/test/fixtures/loader/errors/boomer.js | 7 -- .../source/test/fixtures/loader/errors/main.js | 9 --- .../test/fixtures/loader/exceptions/boomer.js | 9 --- .../source/test/fixtures/loader/exceptions/main.js | 11 --- .../source/test/fixtures/loader/globals/main.js | 7 -- .../source/test/fixtures/loader/json/invalid.json | 3 - .../source/test/fixtures/loader/json/manifest.json | 14 ---- .../source/test/fixtures/loader/json/mutation.json | 1 - .../test/fixtures/loader/json/nodotjson.json.js | 8 -- .../source/test/fixtures/loader/json/test.json | 3 - .../source/test/fixtures/loader/json/test.json.js | 7 -- addon-sdk/source/test/fixtures/loader/lazy/main.js | 9 --- .../test/fixtures/loader/missing-twice/file.json | 1 - .../test/fixtures/loader/missing-twice/main.js | 32 -------- .../source/test/fixtures/loader/missing/main.js | 10 --- addon-sdk/source/test/fixtures/loader/self/main.js | 8 -- .../test/fixtures/loader/syntax-error/error.js | 11 --- .../test/fixtures/loader/syntax-error/main.js | 10 --- .../test/fixtures/loader/unsupported/fennec.js | 10 --- .../test/fixtures/loader/unsupported/firefox.js | 10 --- addon-sdk/source/test/fixtures/mofo_logo.SVG | 45 ------------ addon-sdk/source/test/fixtures/moz.build | 22 ------ addon-sdk/source/test/fixtures/moz_favicon.ico | Bin 1406 -> 0 bytes .../test/fixtures/native-addon-test/dir/a.js | 5 -- .../test/fixtures/native-addon-test/dir/a/index.js | 5 -- .../test/fixtures/native-addon-test/dir/b.js | 6 -- .../test/fixtures/native-addon-test/dir/c.js | 6 -- .../test/fixtures/native-addon-test/dir/dummy.js | 6 -- .../test/fixtures/native-addon-test/dir/test.jsm | 6 -- .../fixtures/native-addon-test/expectedmap.json | 25 ------- .../test/fixtures/native-addon-test/index.js | 37 ---------- .../fixtures/native-addon-test/newmodule/index.js | 5 -- .../native-addon-test/newmodule/lib/file.js | 5 -- .../native-addon-test/newmodule/package.json | 3 - .../test/fixtures/native-addon-test/package.json | 10 --- .../test/fixtures/native-addon-test/utils/index.js | 7 -- .../test/fixtures/native-overrides-test/ignore.js | 6 -- .../test/fixtures/native-overrides-test/index.js | 19 ----- .../fixtures/native-overrides-test/lib/ignore.js | 6 -- .../fixtures/native-overrides-test/lib/internal.js | 6 -- .../fixtures/native-overrides-test/lib/tabs.js | 6 -- .../fixtures/native-overrides-test/package.json | 18 ----- .../fixtures/preferences/curly-id/package.json | 14 ---- .../fixtures/preferences/no-prefs/package.json | 6 -- .../preferences/preferences-branch/package.json | 14 ---- .../fixtures/preferences/simple-prefs/package.json | 75 ------------------- .../test/fixtures/sandbox-complex-character.js | 5 -- addon-sdk/source/test/fixtures/sandbox-normal.js | 7 -- .../test/fixtures/test-addon-extras-window.html | 21 ------ .../source/test/fixtures/test-addon-extras.html | 31 -------- .../source/test/fixtures/test-contentScriptFile.js | 5 -- .../source/test/fixtures/test-context-menu.js | 5 -- .../test/fixtures/test-iframe-postmessage.html | 23 ------ addon-sdk/source/test/fixtures/test-iframe.html | 12 --- addon-sdk/source/test/fixtures/test-iframe.js | 16 ---- .../source/test/fixtures/test-message-manager.js | 6 -- addon-sdk/source/test/fixtures/test-net-url.txt | 1 - addon-sdk/source/test/fixtures/test-page-mod.html | 12 --- .../test/fixtures/test-sidebar-addon-global.html | 15 ---- .../test/fixtures/test-trusted-document.html | 20 ----- addon-sdk/source/test/fixtures/test.html | 25 ------- addon-sdk/source/test/fixtures/testLocalXhr.json | 1 - 97 files changed, 1213 deletions(-) delete mode 100644 addon-sdk/source/test/fixtures/addon-install-unit-test@mozilla.com.xpi delete mode 100644 addon-sdk/source/test/fixtures/addon-sdk/data/border-style.css delete mode 100644 addon-sdk/source/test/fixtures/addon-sdk/data/test-contentScriptFile.js delete mode 100644 addon-sdk/source/test/fixtures/addon-sdk/data/test-page-worker.html delete mode 100644 addon-sdk/source/test/fixtures/addon-sdk/data/test-page-worker.js delete mode 100644 addon-sdk/source/test/fixtures/addon-sdk/data/test.html delete mode 100644 addon-sdk/source/test/fixtures/addon/bootstrap.js delete mode 100644 addon-sdk/source/test/fixtures/addon/index.js delete mode 100644 addon-sdk/source/test/fixtures/addon/package.json delete mode 100644 addon-sdk/source/test/fixtures/bootstrap-addon/META-INF/manifest.mf delete mode 100644 addon-sdk/source/test/fixtures/bootstrap-addon/META-INF/mozilla.rsa delete mode 100644 addon-sdk/source/test/fixtures/bootstrap-addon/META-INF/mozilla.sf delete mode 100644 addon-sdk/source/test/fixtures/bootstrap-addon/bootstrap.js delete mode 100644 addon-sdk/source/test/fixtures/bootstrap-addon/install.rdf delete mode 100644 addon-sdk/source/test/fixtures/bootstrap-addon/options.xul delete mode 100644 addon-sdk/source/test/fixtures/bootstrap/utils.js delete mode 100644 addon-sdk/source/test/fixtures/border-style.css delete mode 100644 addon-sdk/source/test/fixtures/child-process-scripts.js delete mode 100644 addon-sdk/source/test/fixtures/chrome-worker/addEventListener.js delete mode 100644 addon-sdk/source/test/fixtures/chrome-worker/jsctypes.js delete mode 100644 addon-sdk/source/test/fixtures/chrome-worker/onerror.js delete mode 100644 addon-sdk/source/test/fixtures/chrome-worker/onmessage.js delete mode 100644 addon-sdk/source/test/fixtures/chrome-worker/setTimeout.js delete mode 100644 addon-sdk/source/test/fixtures/chrome-worker/xhr.js delete mode 100644 addon-sdk/source/test/fixtures/create_xpi.py delete mode 100644 addon-sdk/source/test/fixtures/es5.js delete mode 100644 addon-sdk/source/test/fixtures/include-file.css delete mode 100644 addon-sdk/source/test/fixtures/index.html delete mode 100644 addon-sdk/source/test/fixtures/jsm-package/Test.jsm delete mode 100644 addon-sdk/source/test/fixtures/jsm-package/index.js delete mode 100644 addon-sdk/source/test/fixtures/jsm-package/package.json delete mode 100644 addon-sdk/source/test/fixtures/loader/cycles/a.js delete mode 100644 addon-sdk/source/test/fixtures/loader/cycles/b.js delete mode 100644 addon-sdk/source/test/fixtures/loader/cycles/c.js delete mode 100644 addon-sdk/source/test/fixtures/loader/cycles/main.js delete mode 100644 addon-sdk/source/test/fixtures/loader/errors/boomer.js delete mode 100644 addon-sdk/source/test/fixtures/loader/errors/main.js delete mode 100644 addon-sdk/source/test/fixtures/loader/exceptions/boomer.js delete mode 100644 addon-sdk/source/test/fixtures/loader/exceptions/main.js delete mode 100644 addon-sdk/source/test/fixtures/loader/globals/main.js delete mode 100644 addon-sdk/source/test/fixtures/loader/json/invalid.json delete mode 100644 addon-sdk/source/test/fixtures/loader/json/manifest.json delete mode 100644 addon-sdk/source/test/fixtures/loader/json/mutation.json delete mode 100644 addon-sdk/source/test/fixtures/loader/json/nodotjson.json.js delete mode 100644 addon-sdk/source/test/fixtures/loader/json/test.json delete mode 100644 addon-sdk/source/test/fixtures/loader/json/test.json.js delete mode 100644 addon-sdk/source/test/fixtures/loader/lazy/main.js delete mode 100644 addon-sdk/source/test/fixtures/loader/missing-twice/file.json delete mode 100644 addon-sdk/source/test/fixtures/loader/missing-twice/main.js delete mode 100644 addon-sdk/source/test/fixtures/loader/missing/main.js delete mode 100644 addon-sdk/source/test/fixtures/loader/self/main.js delete mode 100644 addon-sdk/source/test/fixtures/loader/syntax-error/error.js delete mode 100644 addon-sdk/source/test/fixtures/loader/syntax-error/main.js delete mode 100644 addon-sdk/source/test/fixtures/loader/unsupported/fennec.js delete mode 100644 addon-sdk/source/test/fixtures/loader/unsupported/firefox.js delete mode 100644 addon-sdk/source/test/fixtures/mofo_logo.SVG delete mode 100644 addon-sdk/source/test/fixtures/moz.build delete mode 100644 addon-sdk/source/test/fixtures/moz_favicon.ico delete mode 100644 addon-sdk/source/test/fixtures/native-addon-test/dir/a.js delete mode 100644 addon-sdk/source/test/fixtures/native-addon-test/dir/a/index.js delete mode 100644 addon-sdk/source/test/fixtures/native-addon-test/dir/b.js delete mode 100644 addon-sdk/source/test/fixtures/native-addon-test/dir/c.js delete mode 100644 addon-sdk/source/test/fixtures/native-addon-test/dir/dummy.js delete mode 100644 addon-sdk/source/test/fixtures/native-addon-test/dir/test.jsm delete mode 100644 addon-sdk/source/test/fixtures/native-addon-test/expectedmap.json delete mode 100644 addon-sdk/source/test/fixtures/native-addon-test/index.js delete mode 100644 addon-sdk/source/test/fixtures/native-addon-test/newmodule/index.js delete mode 100644 addon-sdk/source/test/fixtures/native-addon-test/newmodule/lib/file.js delete mode 100644 addon-sdk/source/test/fixtures/native-addon-test/newmodule/package.json delete mode 100644 addon-sdk/source/test/fixtures/native-addon-test/package.json delete mode 100644 addon-sdk/source/test/fixtures/native-addon-test/utils/index.js delete mode 100644 addon-sdk/source/test/fixtures/native-overrides-test/ignore.js delete mode 100644 addon-sdk/source/test/fixtures/native-overrides-test/index.js delete mode 100644 addon-sdk/source/test/fixtures/native-overrides-test/lib/ignore.js delete mode 100644 addon-sdk/source/test/fixtures/native-overrides-test/lib/internal.js delete mode 100644 addon-sdk/source/test/fixtures/native-overrides-test/lib/tabs.js delete mode 100644 addon-sdk/source/test/fixtures/native-overrides-test/package.json delete mode 100644 addon-sdk/source/test/fixtures/preferences/curly-id/package.json delete mode 100644 addon-sdk/source/test/fixtures/preferences/no-prefs/package.json delete mode 100644 addon-sdk/source/test/fixtures/preferences/preferences-branch/package.json delete mode 100644 addon-sdk/source/test/fixtures/preferences/simple-prefs/package.json delete mode 100644 addon-sdk/source/test/fixtures/sandbox-complex-character.js delete mode 100644 addon-sdk/source/test/fixtures/sandbox-normal.js delete mode 100644 addon-sdk/source/test/fixtures/test-addon-extras-window.html delete mode 100644 addon-sdk/source/test/fixtures/test-addon-extras.html delete mode 100644 addon-sdk/source/test/fixtures/test-contentScriptFile.js delete mode 100644 addon-sdk/source/test/fixtures/test-context-menu.js delete mode 100644 addon-sdk/source/test/fixtures/test-iframe-postmessage.html delete mode 100644 addon-sdk/source/test/fixtures/test-iframe.html delete mode 100644 addon-sdk/source/test/fixtures/test-iframe.js delete mode 100644 addon-sdk/source/test/fixtures/test-message-manager.js delete mode 100644 addon-sdk/source/test/fixtures/test-net-url.txt delete mode 100644 addon-sdk/source/test/fixtures/test-page-mod.html delete mode 100644 addon-sdk/source/test/fixtures/test-sidebar-addon-global.html delete mode 100644 addon-sdk/source/test/fixtures/test-trusted-document.html delete mode 100644 addon-sdk/source/test/fixtures/test.html delete mode 100644 addon-sdk/source/test/fixtures/testLocalXhr.json (limited to 'addon-sdk/source/test/fixtures') diff --git a/addon-sdk/source/test/fixtures/addon-install-unit-test@mozilla.com.xpi b/addon-sdk/source/test/fixtures/addon-install-unit-test@mozilla.com.xpi deleted file mode 100644 index 516c1fc3c..000000000 Binary files a/addon-sdk/source/test/fixtures/addon-install-unit-test@mozilla.com.xpi and /dev/null differ diff --git a/addon-sdk/source/test/fixtures/addon-sdk/data/border-style.css b/addon-sdk/source/test/fixtures/addon-sdk/data/border-style.css deleted file mode 100644 index 6941ccb20..000000000 --- a/addon-sdk/source/test/fixtures/addon-sdk/data/border-style.css +++ /dev/null @@ -1,4 +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/. */ -div { border-style: dashed; } diff --git a/addon-sdk/source/test/fixtures/addon-sdk/data/test-contentScriptFile.js b/addon-sdk/source/test/fixtures/addon-sdk/data/test-contentScriptFile.js deleted file mode 100644 index 7dc0e3f24..000000000 --- a/addon-sdk/source/test/fixtures/addon-sdk/data/test-contentScriptFile.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/. */ - -self.postMessage("msg from contentScriptFile"); diff --git a/addon-sdk/source/test/fixtures/addon-sdk/data/test-page-worker.html b/addon-sdk/source/test/fixtures/addon-sdk/data/test-page-worker.html deleted file mode 100644 index 85264034a..000000000 --- a/addon-sdk/source/test/fixtures/addon-sdk/data/test-page-worker.html +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - Page Worker test - - -

Lorem ipsum dolor sit amet.

- - diff --git a/addon-sdk/source/test/fixtures/addon-sdk/data/test-page-worker.js b/addon-sdk/source/test/fixtures/addon-sdk/data/test-page-worker.js deleted file mode 100644 index 5114fe4e0..000000000 --- a/addon-sdk/source/test/fixtures/addon-sdk/data/test-page-worker.js +++ /dev/null @@ -1,29 +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/. */ - - -// get title directly -self.postMessage(["equal", document.title, "Page Worker test", - "Correct page title accessed directly"]); - -// get

directly -var p = document.getElementById("paragraph"); -self.postMessage(["ok", !!p, "

can be accessed directly"]); -self.postMessage(["equal", p.firstChild.nodeValue, - "Lorem ipsum dolor sit amet.", - "Correct text node expected"]); - -// Modify page -var div = document.createElement("div"); -div.setAttribute("id", "block"); -div.appendChild(document.createTextNode("Test text created")); -document.body.appendChild(div); - -// Check back the modification -div = document.getElementById("block"); -self.postMessage(["ok", !!div, "

can be accessed directly"]); -self.postMessage(["equal", div.firstChild.nodeValue, - "Test text created", "Correct text node expected"]); -self.postMessage(["done"]); - diff --git a/addon-sdk/source/test/fixtures/addon-sdk/data/test.html b/addon-sdk/source/test/fixtures/addon-sdk/data/test.html deleted file mode 100644 index 181e85f9b..000000000 --- a/addon-sdk/source/test/fixtures/addon-sdk/data/test.html +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - foo - - -

bar

- - diff --git a/addon-sdk/source/test/fixtures/addon/bootstrap.js b/addon-sdk/source/test/fixtures/addon/bootstrap.js deleted file mode 100644 index 9134b4d92..000000000 --- a/addon-sdk/source/test/fixtures/addon/bootstrap.js +++ /dev/null @@ -1,9 +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"; - -const { utils: Cu } = Components; -const {require} = Cu.import(`${ROOT}/toolkit/require.js`, {}); -const {Bootstrap} = require(`${ROOT}/sdk/addon/bootstrap.js`); -var {startup, shutdown, install, uninstall} = new Bootstrap(); diff --git a/addon-sdk/source/test/fixtures/addon/index.js b/addon-sdk/source/test/fixtures/addon/index.js deleted file mode 100644 index c507c9624..000000000 --- a/addon-sdk/source/test/fixtures/addon/index.js +++ /dev/null @@ -1,4 +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"; diff --git a/addon-sdk/source/test/fixtures/addon/package.json b/addon-sdk/source/test/fixtures/addon/package.json deleted file mode 100644 index 488ec5b3b..000000000 --- a/addon-sdk/source/test/fixtures/addon/package.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "id": "addon@jetpack", - "name": "addon", - "version": "0.0.1" -} diff --git a/addon-sdk/source/test/fixtures/bootstrap-addon/META-INF/manifest.mf b/addon-sdk/source/test/fixtures/bootstrap-addon/META-INF/manifest.mf deleted file mode 100644 index 5105792a7..000000000 --- a/addon-sdk/source/test/fixtures/bootstrap-addon/META-INF/manifest.mf +++ /dev/null @@ -1,17 +0,0 @@ -Manifest-Version: 1.0 - -Name: install.rdf -Digest-Algorithms: MD5 SHA1 -MD5-Digest: N643P4YjKKlwZUqrfLi4ow== -SHA1-Digest: XK/2qoOrnuYo8xNYeLvB8DlUIik= - -Name: bootstrap.js -Digest-Algorithms: MD5 SHA1 -MD5-Digest: XH+mMa/H9aj3hm/ZtVKviw== -SHA1-Digest: LMmd1aTash/onjS1eAYIshgrdnM= - -Name: options.xul -Digest-Algorithms: MD5 SHA1 -MD5-Digest: XeELNGdttv8Lq66lT8ykbQ== -SHA1-Digest: 4KO6/RBoe10rYOGS+gFSHuuWi4Y= - diff --git a/addon-sdk/source/test/fixtures/bootstrap-addon/META-INF/mozilla.rsa b/addon-sdk/source/test/fixtures/bootstrap-addon/META-INF/mozilla.rsa deleted file mode 100644 index 6b1c3a9ce..000000000 Binary files a/addon-sdk/source/test/fixtures/bootstrap-addon/META-INF/mozilla.rsa and /dev/null differ diff --git a/addon-sdk/source/test/fixtures/bootstrap-addon/META-INF/mozilla.sf b/addon-sdk/source/test/fixtures/bootstrap-addon/META-INF/mozilla.sf deleted file mode 100644 index 99f343296..000000000 --- a/addon-sdk/source/test/fixtures/bootstrap-addon/META-INF/mozilla.sf +++ /dev/null @@ -1,4 +0,0 @@ -Signature-Version: 1.0 -MD5-Digest-Manifest: cnqbpqBEVoHgJi/ocCsKKA== -SHA1-Digest-Manifest: eDmvBAkodeNbk/0ujttYgF8KDgI= - diff --git a/addon-sdk/source/test/fixtures/bootstrap-addon/bootstrap.js b/addon-sdk/source/test/fixtures/bootstrap-addon/bootstrap.js deleted file mode 100644 index dea1d7b90..000000000 --- a/addon-sdk/source/test/fixtures/bootstrap-addon/bootstrap.js +++ /dev/null @@ -1,10 +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'; - -function install(data, reason) {} -function uninstall(data, reason) {} - -function startup(data, reasonCode) {}; -function shutdown(data, reasonCode) {}; diff --git a/addon-sdk/source/test/fixtures/bootstrap-addon/install.rdf b/addon-sdk/source/test/fixtures/bootstrap-addon/install.rdf deleted file mode 100644 index 221dc9c3d..000000000 --- a/addon-sdk/source/test/fixtures/bootstrap-addon/install.rdf +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - test-bootstrap-addon@mozilla.com - Test Bootstrap Add-on - Erik Vold - 2 - 1.0 - 2 - true - false - - - - - {ec8030f7-c20a-464f-9b0e-13a3a9e97384} - 26.0 - * - - - - diff --git a/addon-sdk/source/test/fixtures/bootstrap-addon/options.xul b/addon-sdk/source/test/fixtures/bootstrap-addon/options.xul deleted file mode 100644 index aafa46d88..000000000 --- a/addon-sdk/source/test/fixtures/bootstrap-addon/options.xul +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/addon-sdk/source/test/fixtures/bootstrap/utils.js b/addon-sdk/source/test/fixtures/bootstrap/utils.js deleted file mode 100644 index aa7ea2d18..000000000 --- a/addon-sdk/source/test/fixtures/bootstrap/utils.js +++ /dev/null @@ -1,52 +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"; - -const { Cu, Cc, Ci } = require("chrome"); -const { evaluate } = require("sdk/loader/sandbox"); - -const ROOT = require.resolve("sdk/base64").replace("/sdk/base64.js", ""); - -// Note: much of this test code is from -// http://dxr.mozilla.org/mozilla-central/source/toolkit/mozapps/extensions/internal/XPIProvider.jsm -const BOOTSTRAP_REASONS = { - APP_STARTUP : 1, - APP_SHUTDOWN : 2, - ADDON_ENABLE : 3, - ADDON_DISABLE : 4, - ADDON_INSTALL : 5, - ADDON_UNINSTALL : 6, - ADDON_UPGRADE : 7, - ADDON_DOWNGRADE : 8 -}; - -function createBootstrapScope(options) { - let { uri, id: aId } = options; - let principal = Cc["@mozilla.org/systemprincipal;1"]. - createInstance(Ci.nsIPrincipal); - - let bootstrapScope = new Cu.Sandbox(principal, { - sandboxName: uri, - wantGlobalProperties: ["indexedDB"], - addonId: aId, - metadata: { addonID: aId, URI: uri } - }); - - // Copy the reason values from the global object into the bootstrap scope. - for (let name in BOOTSTRAP_REASONS) - bootstrapScope[name] = BOOTSTRAP_REASONS[name]; - - return bootstrapScope; -} -exports.create = createBootstrapScope; - -function evaluateBootstrap(options) { - let { uri, scope } = options; - - evaluate(scope, - `${"Components"}.classes['@mozilla.org/moz/jssubscript-loader;1'] - .createInstance(${"Components"}.interfaces.mozIJSSubScriptLoader) - .loadSubScript("${uri}");`, "ECMAv5"); -} -exports.evaluate = evaluateBootstrap; diff --git a/addon-sdk/source/test/fixtures/border-style.css b/addon-sdk/source/test/fixtures/border-style.css deleted file mode 100644 index 6941ccb20..000000000 --- a/addon-sdk/source/test/fixtures/border-style.css +++ /dev/null @@ -1,4 +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/. */ -div { border-style: dashed; } diff --git a/addon-sdk/source/test/fixtures/child-process-scripts.js b/addon-sdk/source/test/fixtures/child-process-scripts.js deleted file mode 100644 index d808e56cb..000000000 --- a/addon-sdk/source/test/fixtures/child-process-scripts.js +++ /dev/null @@ -1,81 +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'; - -const { platform, pathFor } = require('sdk/system'); -const { defer } = require('sdk/core/promise'); -const { emit } = require('sdk/event/core'); -const { join } = require('sdk/fs/path'); -const { writeFile, unlinkSync, existsSync } = require('sdk/io/fs'); -const PROFILE_DIR= pathFor('ProfD'); -const isWindows = platform.toLowerCase().indexOf('win') === 0; -const isOSX = platform.toLowerCase().indexOf('darwin') === 0; - -var scripts = { - 'args.sh': 'echo $1 $2 $3 $4', - 'args.bat': 'echo %1 %2 %3 %4', - 'check-env.sh': 'echo $CHILD_PROCESS_ENV_TEST', - 'check-env.bat': 'echo %CHILD_PROCESS_ENV_TEST%', - 'check-pwd.sh': 'echo $PWD', - 'check-pwd.bat': 'cd', - 'large-err.sh': 'for n in `seq 0 $1` ; do echo "E" 1>&2; done', - 'large-err-mac.sh': 'for ((i=0; i<$1; i=i+1)); do echo "E" 1>&2; done', - 'large-err.bat': 'FOR /l %%i in (0,1,%1) DO echo "E" 1>&2', - 'large-out.sh': 'for n in `seq 0 $1` ; do echo "O"; done', - 'large-out-mac.sh': 'for ((i=0; i<$1; i=i+1)); do echo "O"; done', - 'large-out.bat': 'FOR /l %%i in (0,1,%1) DO echo "O"', - 'wait.sh': 'sleep 2', - // Use `ping` to an invalid IP address because `timeout` isn't - // on all environments? http://stackoverflow.com/a/1672349/1785755 - 'wait.bat': 'ping 1.1.1.1 -n 1 -w 2000 > nul' -}; - -Object.keys(scripts).forEach(filename => { - if (/\.sh$/.test(filename)) - scripts[filename] = '#!/bin/sh\n' + scripts[filename]; - else if (/\.bat$/.test(filename)) - scripts[filename] = '@echo off\n' + scripts[filename]; -}); - -function getScript (name) { - // Use specific OSX script if exists - if (isOSX && scripts[name + '-mac.sh']) - name = name + '-mac'; - let fileName = name + (isWindows ? '.bat' : '.sh'); - return createFile(fileName, scripts[fileName]); -} -exports.getScript = getScript; - -function createFile (name, data) { - let { promise, resolve, reject } = defer(); - let fileName = join(PROFILE_DIR, name); - writeFile(fileName, data, function (err) { - if (err) reject(); - else { - makeExecutable(fileName); - resolve(fileName); - } - }); - return promise; -} - -// TODO Use fs.chmod once implemented, bug 914606 -function makeExecutable (name) { - let { CC } = require('chrome'); - let nsILocalFile = CC('@mozilla.org/file/local;1', 'nsILocalFile', 'initWithPath'); - let file = nsILocalFile(name); - file.permissions = 0o777; -} - -function deleteFile (name) { - let file = join(PROFILE_DIR, name); - if (existsSync(file)) - unlinkSync(file); -} - -function cleanUp () { - Object.keys(scripts).forEach(deleteFile); -} -exports.cleanUp = cleanUp; diff --git a/addon-sdk/source/test/fixtures/chrome-worker/addEventListener.js b/addon-sdk/source/test/fixtures/chrome-worker/addEventListener.js deleted file mode 100644 index baf28b452..000000000 --- a/addon-sdk/source/test/fixtures/chrome-worker/addEventListener.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/. */ -'use strict'; - -postMessage('Hello'); diff --git a/addon-sdk/source/test/fixtures/chrome-worker/jsctypes.js b/addon-sdk/source/test/fixtures/chrome-worker/jsctypes.js deleted file mode 100644 index 6345305ce..000000000 --- a/addon-sdk/source/test/fixtures/chrome-worker/jsctypes.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/. */ -'use strict'; - -postMessage(typeof ctypes.open); diff --git a/addon-sdk/source/test/fixtures/chrome-worker/onerror.js b/addon-sdk/source/test/fixtures/chrome-worker/onerror.js deleted file mode 100644 index b3e820b28..000000000 --- a/addon-sdk/source/test/fixtures/chrome-worker/onerror.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/. */ -'use strict'; - -throw new Error('ok'); diff --git a/addon-sdk/source/test/fixtures/chrome-worker/onmessage.js b/addon-sdk/source/test/fixtures/chrome-worker/onmessage.js deleted file mode 100644 index 8fd95fb6d..000000000 --- a/addon-sdk/source/test/fixtures/chrome-worker/onmessage.js +++ /dev/null @@ -1,8 +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'; - -onmessage = function (event) { - postMessage(event.data); -}; diff --git a/addon-sdk/source/test/fixtures/chrome-worker/setTimeout.js b/addon-sdk/source/test/fixtures/chrome-worker/setTimeout.js deleted file mode 100644 index d3885243b..000000000 --- a/addon-sdk/source/test/fixtures/chrome-worker/setTimeout.js +++ /dev/null @@ -1,8 +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'; - -setTimeout(function () { - postMessage('ok'); -}, 0); diff --git a/addon-sdk/source/test/fixtures/chrome-worker/xhr.js b/addon-sdk/source/test/fixtures/chrome-worker/xhr.js deleted file mode 100644 index b19906897..000000000 --- a/addon-sdk/source/test/fixtures/chrome-worker/xhr.js +++ /dev/null @@ -1,11 +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'; - -var xhr = new XMLHttpRequest(); -xhr.open("GET", "data:text/plain,ok", true); -xhr.onload = function () { - postMessage(xhr.responseText); -}; -xhr.send(null); diff --git a/addon-sdk/source/test/fixtures/create_xpi.py b/addon-sdk/source/test/fixtures/create_xpi.py deleted file mode 100644 index ed0f983d9..000000000 --- a/addon-sdk/source/test/fixtures/create_xpi.py +++ /dev/null @@ -1,15 +0,0 @@ -# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*- -# vim: set filetype=python: -# 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/. - -from os.path import abspath - -# TODO replace this script with a direct Python action invocation -from mozbuild.action.zip import main as create_zip - -def main(output, input_dir): - output.close() - - return create_zip(['-C', input_dir, abspath(output.name), '**']) diff --git a/addon-sdk/source/test/fixtures/es5.js b/addon-sdk/source/test/fixtures/es5.js deleted file mode 100644 index 746cae3c8..000000000 --- a/addon-sdk/source/test/fixtures/es5.js +++ /dev/null @@ -1,8 +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"; -exports.frozen = Object.freeze({}); -exports.sealed = Object.seal({}); -exports.inextensible = Object.preventExtensions({}); diff --git a/addon-sdk/source/test/fixtures/include-file.css b/addon-sdk/source/test/fixtures/include-file.css deleted file mode 100644 index 20d3e8294..000000000 --- a/addon-sdk/source/test/fixtures/include-file.css +++ /dev/null @@ -1,4 +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/. */ -div { border: 10px solid black; } diff --git a/addon-sdk/source/test/fixtures/index.html b/addon-sdk/source/test/fixtures/index.html deleted file mode 100644 index ba77c6a26..000000000 --- a/addon-sdk/source/test/fixtures/index.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - Add-on Page - - -

This is an add-on page test!

- - - diff --git a/addon-sdk/source/test/fixtures/jsm-package/Test.jsm b/addon-sdk/source/test/fixtures/jsm-package/Test.jsm deleted file mode 100644 index 3e71b456a..000000000 --- a/addon-sdk/source/test/fixtures/jsm-package/Test.jsm +++ /dev/null @@ -1,11 +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"; - -this.EXPORTED_SYMBOLS = ["Test"]; - -this.Test = { - square: function (x) { return x * x; } -}; diff --git a/addon-sdk/source/test/fixtures/jsm-package/index.js b/addon-sdk/source/test/fixtures/jsm-package/index.js deleted file mode 100644 index e20721c76..000000000 --- a/addon-sdk/source/test/fixtures/jsm-package/index.js +++ /dev/null @@ -1,46 +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'; - -var { Test } = require('./Test.jsm'); -var { Test: Test2 } = require('./Test.jsm'); -exports.localJSM = Test.square(16) === 256; -exports.localJSMCached = Test === Test2; - -(function () { -var { Promise } = require('resource://gre/modules/Promise.jsm'); -var { defer } = require('resource://gre/modules/Promise.jsm').Promise; - -exports.isCachedAbsolute = Promise.defer === defer; - -exports.isLoadedAbsolute = function (val) { - let { promise, resolve } = Promise.defer(); - resolve(val); - return promise; -}; -})(); - -(function () { -var { Promise } = require('modules/Promise.jsm'); -var { defer } = require('modules/Promise.jsm').Promise; -exports.isCachedPath = Promise.defer === defer; - -exports.isLoadedPath = function (val) { - let { promise, resolve } = Promise.defer(); - resolve(val); - return promise; -}; -})(); - -(function () { -var { defer } = require('resource://gre/modules/commonjs/sdk/core/promise.js'); -var { defer: defer2 } = require('resource://gre/modules/commonjs/sdk/core/promise.js'); -exports.isCachedJSAbsolute = defer === defer2; -exports.isLoadedJSAbsolute = function (val) { - let { promise, resolve } = defer(); - resolve(val); - return promise; -}; -})(); diff --git a/addon-sdk/source/test/fixtures/jsm-package/package.json b/addon-sdk/source/test/fixtures/jsm-package/package.json deleted file mode 100644 index 2e8caf211..000000000 --- a/addon-sdk/source/test/fixtures/jsm-package/package.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "name": "jsm-package" -} diff --git a/addon-sdk/source/test/fixtures/loader/cycles/a.js b/addon-sdk/source/test/fixtures/loader/cycles/a.js deleted file mode 100644 index f6e13ccb7..000000000 --- a/addon-sdk/source/test/fixtures/loader/cycles/a.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'; - -exports.b = require('b'); diff --git a/addon-sdk/source/test/fixtures/loader/cycles/b.js b/addon-sdk/source/test/fixtures/loader/cycles/b.js deleted file mode 100644 index 69e23f11a..000000000 --- a/addon-sdk/source/test/fixtures/loader/cycles/b.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'; - -exports.a = require('a'); diff --git a/addon-sdk/source/test/fixtures/loader/cycles/c.js b/addon-sdk/source/test/fixtures/loader/cycles/c.js deleted file mode 100644 index ce34b3cf4..000000000 --- a/addon-sdk/source/test/fixtures/loader/cycles/c.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'; - -exports.main = require('main'); diff --git a/addon-sdk/source/test/fixtures/loader/cycles/main.js b/addon-sdk/source/test/fixtures/loader/cycles/main.js deleted file mode 100644 index 6d13200c8..000000000 --- a/addon-sdk/source/test/fixtures/loader/cycles/main.js +++ /dev/null @@ -1,14 +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'; - -var a = require('a'); -var b = require('b'); -var c = require('c'); - -exports.a = a; -exports.b = b; -exports.c = c; -exports.main = exports; diff --git a/addon-sdk/source/test/fixtures/loader/errors/boomer.js b/addon-sdk/source/test/fixtures/loader/errors/boomer.js deleted file mode 100644 index c794cda33..000000000 --- a/addon-sdk/source/test/fixtures/loader/errors/boomer.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"; - -throw Error("opening input stream (invalid filename?)"); diff --git a/addon-sdk/source/test/fixtures/loader/errors/main.js b/addon-sdk/source/test/fixtures/loader/errors/main.js deleted file mode 100644 index 1fdb56790..000000000 --- a/addon-sdk/source/test/fixtures/loader/errors/main.js +++ /dev/null @@ -1,9 +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'; - -var error = require('./boomer'); - -exports.main = exports; diff --git a/addon-sdk/source/test/fixtures/loader/exceptions/boomer.js b/addon-sdk/source/test/fixtures/loader/exceptions/boomer.js deleted file mode 100644 index e26817984..000000000 --- a/addon-sdk/source/test/fixtures/loader/exceptions/boomer.js +++ /dev/null @@ -1,9 +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'; - -exports.boom = function() { - throw Error("Boom!"); -}; diff --git a/addon-sdk/source/test/fixtures/loader/exceptions/main.js b/addon-sdk/source/test/fixtures/loader/exceptions/main.js deleted file mode 100644 index 4b6279d7d..000000000 --- a/addon-sdk/source/test/fixtures/loader/exceptions/main.js +++ /dev/null @@ -1,11 +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'; - -var boomer = require('./boomer'); - -boomer.boom(); - -exports.main = exports; diff --git a/addon-sdk/source/test/fixtures/loader/globals/main.js b/addon-sdk/source/test/fixtures/loader/globals/main.js deleted file mode 100644 index 6d34ddbd3..000000000 --- a/addon-sdk/source/test/fixtures/loader/globals/main.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'; -exports.console = console; -exports.globalFoo = (typeof globalFoo !== "undefined") ? globalFoo : null; diff --git a/addon-sdk/source/test/fixtures/loader/json/invalid.json b/addon-sdk/source/test/fixtures/loader/json/invalid.json deleted file mode 100644 index 02ea4b0b4..000000000 --- a/addon-sdk/source/test/fixtures/loader/json/invalid.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - invalidjson -} diff --git a/addon-sdk/source/test/fixtures/loader/json/manifest.json b/addon-sdk/source/test/fixtures/loader/json/manifest.json deleted file mode 100644 index 5ae25bb9d..000000000 --- a/addon-sdk/source/test/fixtures/loader/json/manifest.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "name": "Jetpack Loader Test", - "version": "1.0.1", - "dependencies": { - "async": "*", - "underscore": "*" - }, - "contributors": [ - "ash nazg durbatulûk", - "ash nazg gimbatul", - "ash nazg thrakatulûk", - "agh burzum-ishi krimpatul" - ] -} diff --git a/addon-sdk/source/test/fixtures/loader/json/mutation.json b/addon-sdk/source/test/fixtures/loader/json/mutation.json deleted file mode 100644 index e1cbe3c15..000000000 --- a/addon-sdk/source/test/fixtures/loader/json/mutation.json +++ /dev/null @@ -1 +0,0 @@ -{ "value": 1 } diff --git a/addon-sdk/source/test/fixtures/loader/json/nodotjson.json.js b/addon-sdk/source/test/fixtures/loader/json/nodotjson.json.js deleted file mode 100644 index af046caa6..000000000 --- a/addon-sdk/source/test/fixtures/loader/json/nodotjson.json.js +++ /dev/null @@ -1,8 +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 = { - "filename": "nodotjson.json.js", - "data": {} -}; diff --git a/addon-sdk/source/test/fixtures/loader/json/test.json b/addon-sdk/source/test/fixtures/loader/json/test.json deleted file mode 100644 index d19dc7117..000000000 --- a/addon-sdk/source/test/fixtures/loader/json/test.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "filename": "test.json" -} diff --git a/addon-sdk/source/test/fixtures/loader/json/test.json.js b/addon-sdk/source/test/fixtures/loader/json/test.json.js deleted file mode 100644 index b14364bff..000000000 --- a/addon-sdk/source/test/fixtures/loader/json/test.json.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/. */ - -module.exports = { - "filename": "test.json.js" -}; diff --git a/addon-sdk/source/test/fixtures/loader/lazy/main.js b/addon-sdk/source/test/fixtures/loader/lazy/main.js deleted file mode 100644 index 04525f972..000000000 --- a/addon-sdk/source/test/fixtures/loader/lazy/main.js +++ /dev/null @@ -1,9 +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"; - -exports.useFoo= function () { - return require('foo'); -} diff --git a/addon-sdk/source/test/fixtures/loader/missing-twice/file.json b/addon-sdk/source/test/fixtures/loader/missing-twice/file.json deleted file mode 100644 index ebd6f791b..000000000 --- a/addon-sdk/source/test/fixtures/loader/missing-twice/file.json +++ /dev/null @@ -1 +0,0 @@ -an invalid json file diff --git a/addon-sdk/source/test/fixtures/loader/missing-twice/main.js b/addon-sdk/source/test/fixtures/loader/missing-twice/main.js deleted file mode 100644 index 20e453736..000000000 --- a/addon-sdk/source/test/fixtures/loader/missing-twice/main.js +++ /dev/null @@ -1,32 +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'; - -try { - require('./not-found'); -} -catch (e1) { - exports.firstError = e1; - // It should throw again and not be cached - try { - require('./not-found'); - } - catch (e2) { - exports.secondError = e2; - } -} - -try { - require('./file.json'); -} -catch (e) { - exports.invalidJSON1 = e; - try { - require('./file.json'); - } - catch (e) { - exports.invalidJSON2 = e; - } -} diff --git a/addon-sdk/source/test/fixtures/loader/missing/main.js b/addon-sdk/source/test/fixtures/loader/missing/main.js deleted file mode 100644 index dde9ee77c..000000000 --- a/addon-sdk/source/test/fixtures/loader/missing/main.js +++ /dev/null @@ -1,10 +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'; - -var a = require('./not-found'); - -exports.a = a; -exports.main = exports; diff --git a/addon-sdk/source/test/fixtures/loader/self/main.js b/addon-sdk/source/test/fixtures/loader/self/main.js deleted file mode 100644 index ab2b159da..000000000 --- a/addon-sdk/source/test/fixtures/loader/self/main.js +++ /dev/null @@ -1,8 +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"; - -var self = require("sdk/self"); -exports.self = self; diff --git a/addon-sdk/source/test/fixtures/loader/syntax-error/error.js b/addon-sdk/source/test/fixtures/loader/syntax-error/error.js deleted file mode 100644 index 56c7c524f..000000000 --- a/addon-sdk/source/test/fixtures/loader/syntax-error/error.js +++ /dev/null @@ -1,11 +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.metadata = { - "status": "experimental" -}; - -exports.b = @ require('b'); diff --git a/addon-sdk/source/test/fixtures/loader/syntax-error/main.js b/addon-sdk/source/test/fixtures/loader/syntax-error/main.js deleted file mode 100644 index 4eadef870..000000000 --- a/addon-sdk/source/test/fixtures/loader/syntax-error/main.js +++ /dev/null @@ -1,10 +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'; - -var a = require('./error'); - -exports.a = a; -exports.main = exports; diff --git a/addon-sdk/source/test/fixtures/loader/unsupported/fennec.js b/addon-sdk/source/test/fixtures/loader/unsupported/fennec.js deleted file mode 100644 index 9edc63c14..000000000 --- a/addon-sdk/source/test/fixtures/loader/unsupported/fennec.js +++ /dev/null @@ -1,10 +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.metadata = { - "engines": { - "Fennec": "*" - } -}; -module.exports = {}; diff --git a/addon-sdk/source/test/fixtures/loader/unsupported/firefox.js b/addon-sdk/source/test/fixtures/loader/unsupported/firefox.js deleted file mode 100644 index 5a08280a4..000000000 --- a/addon-sdk/source/test/fixtures/loader/unsupported/firefox.js +++ /dev/null @@ -1,10 +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.metadata = { - "engines": { - "Firefox": "*" - } -}; -module.exports = {}; diff --git a/addon-sdk/source/test/fixtures/mofo_logo.SVG b/addon-sdk/source/test/fixtures/mofo_logo.SVG deleted file mode 100644 index 2edeb9e6f..000000000 --- a/addon-sdk/source/test/fixtures/mofo_logo.SVG +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/addon-sdk/source/test/fixtures/moz.build b/addon-sdk/source/test/fixtures/moz.build deleted file mode 100644 index 2c3635186..000000000 --- a/addon-sdk/source/test/fixtures/moz.build +++ /dev/null @@ -1,22 +0,0 @@ -# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*- -# vim: set filetype=python: -# 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/. - -fixtures = [ - 'native-addon-test', - 'native-overrides-test', -] - -output_dir = OBJDIR_FILES._tests.testing.mochitest['jetpack-package']['addon-sdk'].source.test.fixtures - -for fixture in fixtures: - xpi = '%s.xpi' % fixture - - GENERATED_FILES += [xpi] - f = GENERATED_FILES[xpi] - f.script = 'create_xpi.py' - f.inputs = [fixture] - - output_dir += ['!%s' % xpi] diff --git a/addon-sdk/source/test/fixtures/moz_favicon.ico b/addon-sdk/source/test/fixtures/moz_favicon.ico deleted file mode 100644 index d44438903..000000000 Binary files a/addon-sdk/source/test/fixtures/moz_favicon.ico and /dev/null differ 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'; - diff --git a/addon-sdk/source/test/fixtures/native-overrides-test/ignore.js b/addon-sdk/source/test/fixtures/native-overrides-test/ignore.js deleted file mode 100644 index 02539eb79..000000000 --- a/addon-sdk/source/test/fixtures/native-overrides-test/ignore.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/. */ -'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 deleted file mode 100644 index ef0b6bba1..000000000 --- a/addon-sdk/source/test/fixtures/native-overrides-test/index.js +++ /dev/null @@ -1,19 +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'; - -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 deleted file mode 100644 index d37a7827a..000000000 --- a/addon-sdk/source/test/fixtures/native-overrides-test/lib/ignore.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/. */ -'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 deleted file mode 100644 index 2d5f419fd..000000000 --- a/addon-sdk/source/test/fixtures/native-overrides-test/lib/internal.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/. */ -'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 deleted file mode 100644 index 20f59551e..000000000 --- a/addon-sdk/source/test/fixtures/native-overrides-test/lib/tabs.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/. */ -'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 deleted file mode 100644 index 346cf76f5..000000000 --- a/addon-sdk/source/test/fixtures/native-overrides-test/package.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "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" - } - } -} diff --git a/addon-sdk/source/test/fixtures/preferences/curly-id/package.json b/addon-sdk/source/test/fixtures/preferences/curly-id/package.json deleted file mode 100644 index 1d47b4d81..000000000 --- a/addon-sdk/source/test/fixtures/preferences/curly-id/package.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "id": "{34a1eae1-c20a-464f-9b0e-000000000000}", - "fullName": "curly ID test", - "author": "Tomislav Jovanovic", - - "preferences": [{ - "name": "test13", - "type": "integer", - "title": "test13", - "value": 26 - }], - - "preferences-branch": "invalid^branch*name" -} diff --git a/addon-sdk/source/test/fixtures/preferences/no-prefs/package.json b/addon-sdk/source/test/fixtures/preferences/no-prefs/package.json deleted file mode 100644 index 7b243b41d..000000000 --- a/addon-sdk/source/test/fixtures/preferences/no-prefs/package.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "id": "no-prefs@jetpack", - "title": "No Prefs Test", - "author": "Erik Vold", - "loader": "lib/main.js" -} diff --git a/addon-sdk/source/test/fixtures/preferences/preferences-branch/package.json b/addon-sdk/source/test/fixtures/preferences/preferences-branch/package.json deleted file mode 100644 index b738db7d0..000000000 --- a/addon-sdk/source/test/fixtures/preferences/preferences-branch/package.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "id": "test-preferences-branch", - "fullName": "preferences-branch test", - "author": "Tomislav Jovanovic", - - "preferences": [{ - "name": "test42", - "type": "bool", - "title": "test42", - "value": true - }], - - "preferences-branch": "human-readable" -} diff --git a/addon-sdk/source/test/fixtures/preferences/simple-prefs/package.json b/addon-sdk/source/test/fixtures/preferences/simple-prefs/package.json deleted file mode 100644 index d3b077ddf..000000000 --- a/addon-sdk/source/test/fixtures/preferences/simple-prefs/package.json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "id": "simple-prefs@jetpack", - "title": "Simple Prefs Test", - "author": "Erik Vold", - "preferences": [{ - "name": "test", - "type": "bool", - "title": "tëst", - "value": false, - "description": "descrïptiön" - }, - { - "name": "test2", - "type": "string", - "title": "tëst", - "value": "ünicødé" - }, - { - "name": "test3", - "type": "menulist", - "title": "\"> - - - - - Worker test - - -

Lorem ipsum dolor sit amet.

- - - diff --git a/addon-sdk/source/test/fixtures/test-addon-extras.html b/addon-sdk/source/test/fixtures/test-addon-extras.html deleted file mode 100644 index 9864495e8..000000000 --- a/addon-sdk/source/test/fixtures/test-addon-extras.html +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - Worker test - - -

Lorem ipsum dolor sit amet.

- - - diff --git a/addon-sdk/source/test/fixtures/test-contentScriptFile.js b/addon-sdk/source/test/fixtures/test-contentScriptFile.js deleted file mode 100644 index 7dc0e3f24..000000000 --- a/addon-sdk/source/test/fixtures/test-contentScriptFile.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/. */ - -self.postMessage("msg from contentScriptFile"); diff --git a/addon-sdk/source/test/fixtures/test-context-menu.js b/addon-sdk/source/test/fixtures/test-context-menu.js deleted file mode 100644 index 1a15609b7..000000000 --- a/addon-sdk/source/test/fixtures/test-context-menu.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/. */ - -self.on("context", () => true); diff --git a/addon-sdk/source/test/fixtures/test-iframe-postmessage.html b/addon-sdk/source/test/fixtures/test-iframe-postmessage.html deleted file mode 100644 index b33d597dd..000000000 --- a/addon-sdk/source/test/fixtures/test-iframe-postmessage.html +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - - -

Inner iframe

- - diff --git a/addon-sdk/source/test/fixtures/test-iframe.html b/addon-sdk/source/test/fixtures/test-iframe.html deleted file mode 100644 index 56cd50c1a..000000000 --- a/addon-sdk/source/test/fixtures/test-iframe.html +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - diff --git a/addon-sdk/source/test/fixtures/test-iframe.js b/addon-sdk/source/test/fixtures/test-iframe.js deleted file mode 100644 index bbfadc4ff..000000000 --- a/addon-sdk/source/test/fixtures/test-iframe.js +++ /dev/null @@ -1,16 +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/. */ - -var count = 0; - -setTimeout(function() { - window.addEventListener("message", function(msg) { - if (++count > 1) { - self.postMessage(msg.data); - } - else msg.source.postMessage(msg.data, '*'); - }); - - document.getElementById('inner').src = iframePath; -}, 0); diff --git a/addon-sdk/source/test/fixtures/test-message-manager.js b/addon-sdk/source/test/fixtures/test-message-manager.js deleted file mode 100644 index d647bd8fd..000000000 --- a/addon-sdk/source/test/fixtures/test-message-manager.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/. */ - -const TEST_VALUE = 11; - diff --git a/addon-sdk/source/test/fixtures/test-net-url.txt b/addon-sdk/source/test/fixtures/test-net-url.txt deleted file mode 100644 index 9f8166e61..000000000 --- a/addon-sdk/source/test/fixtures/test-net-url.txt +++ /dev/null @@ -1 +0,0 @@ -Hello, ゼロ! \ No newline at end of file diff --git a/addon-sdk/source/test/fixtures/test-page-mod.html b/addon-sdk/source/test/fixtures/test-page-mod.html deleted file mode 100644 index 901abefc4..000000000 --- a/addon-sdk/source/test/fixtures/test-page-mod.html +++ /dev/null @@ -1,12 +0,0 @@ - - - - - Page Mod test - - -

Lorem ipsum dolor sit amet.

- - diff --git a/addon-sdk/source/test/fixtures/test-sidebar-addon-global.html b/addon-sdk/source/test/fixtures/test-sidebar-addon-global.html deleted file mode 100644 index 4552e3d78..000000000 --- a/addon-sdk/source/test/fixtures/test-sidebar-addon-global.html +++ /dev/null @@ -1,15 +0,0 @@ - - -SIDEBAR TEST diff --git a/addon-sdk/source/test/fixtures/test-trusted-document.html b/addon-sdk/source/test/fixtures/test-trusted-document.html deleted file mode 100644 index c31e055cb..000000000 --- a/addon-sdk/source/test/fixtures/test-trusted-document.html +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - Worker test - - -

Lorem ipsum dolor sit amet.

- - - diff --git a/addon-sdk/source/test/fixtures/test.html b/addon-sdk/source/test/fixtures/test.html deleted file mode 100644 index 70b5e31e5..000000000 --- a/addon-sdk/source/test/fixtures/test.html +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - foo - - -

bar

- - - diff --git a/addon-sdk/source/test/fixtures/testLocalXhr.json b/addon-sdk/source/test/fixtures/testLocalXhr.json deleted file mode 100644 index 0967ef424..000000000 --- a/addon-sdk/source/test/fixtures/testLocalXhr.json +++ /dev/null @@ -1 +0,0 @@ -{} -- cgit v1.2.3