From deea787c2efbb9c89caec8d9efc023ffafe75613 Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Sat, 10 Feb 2018 04:00:58 -0500 Subject: Import Tycho's Add-on Manager --- .../test/addons/test_jetpack/bootstrap.js | 17 +++++++++++++ .../test/addons/test_jetpack/harness-options.json | 1 + .../test/addons/test_jetpack/install.rdf | 28 ++++++++++++++++++++++ 3 files changed, 46 insertions(+) create mode 100644 toolkit/mozapps/extensions/test/addons/test_jetpack/bootstrap.js create mode 100644 toolkit/mozapps/extensions/test/addons/test_jetpack/harness-options.json create mode 100644 toolkit/mozapps/extensions/test/addons/test_jetpack/install.rdf (limited to 'toolkit/mozapps/extensions/test/addons/test_jetpack') diff --git a/toolkit/mozapps/extensions/test/addons/test_jetpack/bootstrap.js b/toolkit/mozapps/extensions/test/addons/test_jetpack/bootstrap.js new file mode 100644 index 000000000..2449baeb8 --- /dev/null +++ b/toolkit/mozapps/extensions/test/addons/test_jetpack/bootstrap.js @@ -0,0 +1,17 @@ +Components.utils.import("resource://gre/modules/Services.jsm"); + +function install(data, reason) { + Services.prefs.setIntPref("jetpacktest.installed_version", 1); +} + +function startup(data, reason) { + Services.prefs.setIntPref("jetpacktest.active_version", 1); +} + +function shutdown(data, reason) { + Services.prefs.setIntPref("jetpacktest.active_version", 0); +} + +function uninstall(data, reason) { + Services.prefs.setIntPref("jetpacktest.installed_version", 0); +} diff --git a/toolkit/mozapps/extensions/test/addons/test_jetpack/harness-options.json b/toolkit/mozapps/extensions/test/addons/test_jetpack/harness-options.json new file mode 100644 index 000000000..9e26dfeeb --- /dev/null +++ b/toolkit/mozapps/extensions/test/addons/test_jetpack/harness-options.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/toolkit/mozapps/extensions/test/addons/test_jetpack/install.rdf b/toolkit/mozapps/extensions/test/addons/test_jetpack/install.rdf new file mode 100644 index 000000000..e88794a60 --- /dev/null +++ b/toolkit/mozapps/extensions/test/addons/test_jetpack/install.rdf @@ -0,0 +1,28 @@ + + + + + + jetpack@tests.mozilla.org + 1.0 + true + + + Test jetpack + Test Description + + chrome://foo/skin/icon.png + chrome://foo/content/about.xul + chrome://foo/content/options.xul + + + + xpcshell@tests.mozilla.org + 1 + 1 + + + + + -- cgit v1.2.3