diff options
Diffstat (limited to 'toolkit/mozapps/extensions/test/addons/test_updateid3_3')
-rw-r--r-- | toolkit/mozapps/extensions/test/addons/test_updateid3_3/bootstrap.js | 21 | ||||
-rw-r--r-- | toolkit/mozapps/extensions/test/addons/test_updateid3_3/install.rdf | 25 |
2 files changed, 46 insertions, 0 deletions
diff --git a/toolkit/mozapps/extensions/test/addons/test_updateid3_3/bootstrap.js b/toolkit/mozapps/extensions/test/addons/test_updateid3_3/bootstrap.js new file mode 100644 index 000000000..c28d75925 --- /dev/null +++ b/toolkit/mozapps/extensions/test/addons/test_updateid3_3/bootstrap.js @@ -0,0 +1,21 @@ +Components.utils.import("resource://gre/modules/Services.jsm"); + +function install(data, reason) { + Services.prefs.setIntPref("bootstraptest.installed_version", 3); + Services.prefs.setIntPref("bootstraptest.install_reason", reason); +} + +function startup(data, reason) { + Services.prefs.setIntPref("bootstraptest.active_version", 3); + Services.prefs.setIntPref("bootstraptest.startup_reason", reason); +} + +function shutdown(data, reason) { + Services.prefs.setIntPref("bootstraptest.active_version", 0); + Services.prefs.setIntPref("bootstraptest.shutdown_reason", reason); +} + +function uninstall(data, reason) { + Services.prefs.setIntPref("bootstraptest.installed_version", 0); + Services.prefs.setIntPref("bootstraptest.uninstall_reason", reason); +} diff --git a/toolkit/mozapps/extensions/test/addons/test_updateid3_3/install.rdf b/toolkit/mozapps/extensions/test/addons/test_updateid3_3/install.rdf new file mode 100644 index 000000000..ffed064cf --- /dev/null +++ b/toolkit/mozapps/extensions/test/addons/test_updateid3_3/install.rdf @@ -0,0 +1,25 @@ +<?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>addon3@tests.mozilla.org</em:id> + <em:version>3.0</em:version> + <em:updateURL>http://localhost:4444/data/test_updateid.rdf</em:updateURL> + <em:bootstrap>true</em:bootstrap> + + <!-- Front End MetaData --> + <em:name>Test 3</em:name> + <em:description>Test Description</em:description> + + <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> |