diff options
Diffstat (limited to 'toolkit/mozapps/extensions/test/addons/test_jetpack')
3 files changed, 46 insertions, 0 deletions
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 @@ +<?xml version="1.0"?> + +<RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:em="http://www.mozilla.org/2004/em-rdf#"> + + <Description about="urn:mozilla:install-manifest"> + <em:id>jetpack@tests.mozilla.org</em:id> + <em:version>1.0</em:version> + <em:bootstrap>true</em:bootstrap> + + <!-- Front End MetaData --> + <em:name>Test jetpack</em:name> + <em:description>Test Description</em:description> + + <em:iconURL>chrome://foo/skin/icon.png</em:iconURL> + <em:aboutURL>chrome://foo/content/about.xul</em:aboutURL> + <em:optionsURL>chrome://foo/content/options.xul</em:optionsURL> + + <em:targetApplication> + <Description> + <em:id>xpcshell@tests.mozilla.org</em:id> + <em:minVersion>1</em:minVersion> + <em:maxVersion>1</em:maxVersion> + </Description> + </em:targetApplication> + + </Description> +</RDF> |