mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-12 14:37:50 +00:00
51 lines
1.3 KiB
JavaScript
51 lines
1.3 KiB
JavaScript
/* 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).
|
|
*/
|
|
|
|
var phases = { "phase1": "profile1",
|
|
"phase2": "profile1",
|
|
"phase3": "profile1",
|
|
"phase4": "profile1",
|
|
"phase5": "profile1" };
|
|
|
|
/*
|
|
* Test phases
|
|
*/
|
|
|
|
Phase('phase1', [
|
|
[Addons.install, ['unsigned-1.0.xml']],
|
|
[Addons.verify, ['unsigned-xpi@tests.mozilla.org'], STATE_DISABLED],
|
|
[Sync, SYNC_WIPE_SERVER],
|
|
]);
|
|
|
|
Phase('phase2', [
|
|
[Sync],
|
|
[Addons.verify, ['unsigned-xpi@tests.mozilla.org'], STATE_ENABLED],
|
|
[Addons.setState, ['unsigned-xpi@tests.mozilla.org'], STATE_DISABLED],
|
|
[Sync],
|
|
]);
|
|
|
|
Phase('phase3', [
|
|
[Sync],
|
|
[Addons.verify, ['unsigned-xpi@tests.mozilla.org'], STATE_DISABLED],
|
|
[Addons.setState, ['unsigned-xpi@tests.mozilla.org'], STATE_ENABLED],
|
|
[Sync],
|
|
]);
|
|
|
|
Phase('phase4', [
|
|
[Sync],
|
|
[Addons.verify, ['unsigned-xpi@tests.mozilla.org'], STATE_ENABLED],
|
|
[Addons.uninstall, ['unsigned-xpi@tests.mozilla.org']],
|
|
[Sync],
|
|
]);
|
|
|
|
Phase('phase5', [
|
|
[Sync],
|
|
[Addons.verifyNot, ['unsigned-xpi@tests.mozilla.org']],
|
|
]);
|