From 4fb11cd5966461bccc3ed1599b808237be6b0de9 Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Sat, 10 Feb 2018 02:49:12 -0500 Subject: Move WebExtensions enabled Add-ons 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/webextensions/test/addons/test_jetpack/bootstrap.js create mode 100644 toolkit/mozapps/webextensions/test/addons/test_jetpack/harness-options.json create mode 100644 toolkit/mozapps/webextensions/test/addons/test_jetpack/install.rdf (limited to 'toolkit/mozapps/webextensions/test/addons/test_jetpack') diff --git a/toolkit/mozapps/webextensions/test/addons/test_jetpack/bootstrap.js b/toolkit/mozapps/webextensions/test/addons/test_jetpack/bootstrap.js new file mode 100644 index 000000000..2449baeb8 --- /dev/null +++ b/toolkit/mozapps/webextensions/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/webextensions/test/addons/test_jetpack/harness-options.json b/toolkit/mozapps/webextensions/test/addons/test_jetpack/harness-options.json new file mode 100644 index 000000000..9e26dfeeb --- /dev/null +++ b/toolkit/mozapps/webextensions/test/addons/test_jetpack/harness-options.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/toolkit/mozapps/webextensions/test/addons/test_jetpack/install.rdf b/toolkit/mozapps/webextensions/test/addons/test_jetpack/install.rdf new file mode 100644 index 000000000..e88794a60 --- /dev/null +++ b/toolkit/mozapps/webextensions/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