diff options
Diffstat (limited to 'toolkit/mozapps/extensions/test/addons/test_bootstrap2_1')
-rw-r--r-- | toolkit/mozapps/extensions/test/addons/test_bootstrap2_1/bootstrap.js | 17 | ||||
-rw-r--r-- | toolkit/mozapps/extensions/test/addons/test_bootstrap2_1/install.rdf | 28 |
2 files changed, 45 insertions, 0 deletions
diff --git a/toolkit/mozapps/extensions/test/addons/test_bootstrap2_1/bootstrap.js b/toolkit/mozapps/extensions/test/addons/test_bootstrap2_1/bootstrap.js new file mode 100644 index 000000000..476edfeee --- /dev/null +++ b/toolkit/mozapps/extensions/test/addons/test_bootstrap2_1/bootstrap.js @@ -0,0 +1,17 @@ +Components.utils.import("resource://gre/modules/Services.jsm"); + +function install(data, reason) { + Services.prefs.setIntPref("bootstraptest2.installed_version", 1); +} + +function startup(data, reason) { + Services.prefs.setIntPref("bootstraptest2.active_version", 1); +} + +function shutdown(data, reason) { + Services.prefs.setIntPref("bootstraptest2.active_version", 0); +} + +function uninstall(data, reason) { + Services.prefs.setIntPref("bootstraptest2.installed_version", 0); +} diff --git a/toolkit/mozapps/extensions/test/addons/test_bootstrap2_1/install.rdf b/toolkit/mozapps/extensions/test/addons/test_bootstrap2_1/install.rdf new file mode 100644 index 000000000..e0e8ca978 --- /dev/null +++ b/toolkit/mozapps/extensions/test/addons/test_bootstrap2_1/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>bootstrap2@tests.mozilla.org</em:id> + <em:version>1.0</em:version> + <em:bootstrap>true</em:bootstrap> + + <!-- Front End MetaData --> + <em:name>Test Bootstrap 2</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> |