2011-11-15 09:02:02 +04:00
|
|
|
/* Any copyright is dedicated to the Public Domain.
|
|
|
|
http://creativecommons.org/publicdomain/zero/1.0/ */
|
|
|
|
|
|
|
|
/*
|
|
|
|
* The list of phases mapped to their corresponding profiles. The object
|
|
|
|
* here must be in strict JSON format, as it will get parsed by the Python
|
|
|
|
* testrunner (no single quotes, extra comma's, etc).
|
|
|
|
*/
|
|
|
|
|
2011-12-15 08:31:19 +04:00
|
|
|
EnableEngines(["addons"]);
|
2011-11-15 09:02:02 +04:00
|
|
|
|
2015-09-15 21:19:45 +03:00
|
|
|
var phases = { "phase1": "profile1",
|
2011-12-15 08:31:19 +04:00
|
|
|
"phase2": "profile1" };
|
2011-11-15 09:02:02 +04:00
|
|
|
|
2011-12-15 08:31:19 +04:00
|
|
|
const id = "unsigned-xpi@tests.mozilla.org";
|
2011-11-15 09:02:02 +04:00
|
|
|
|
2011-12-15 08:31:19 +04:00
|
|
|
Phase("phase1", [
|
|
|
|
[Addons.install, [id]],
|
|
|
|
// Non-restartless add-on shouldn't be found after install.
|
|
|
|
[Addons.verifyNot, [id]],
|
2011-11-15 09:02:02 +04:00
|
|
|
|
2011-12-15 08:31:19 +04:00
|
|
|
// But it should be marked for Sync.
|
|
|
|
[Sync]
|
2011-11-15 09:02:02 +04:00
|
|
|
]);
|
|
|
|
|
2011-12-15 08:31:19 +04:00
|
|
|
Phase("phase2", [
|
|
|
|
// Add-on should be present after restart
|
2016-09-23 00:29:01 +03:00
|
|
|
[Addons.verify, [id], STATE_ENABLED],
|
|
|
|
[Sync] // Sync to ensure everything is initialized enough for the addon validator to run
|
2011-11-15 09:02:02 +04:00
|
|
|
]);
|