|
1 /* Any copyright is dedicated to the Public Domain. |
|
2 http://creativecommons.org/publicdomain/zero/1.0/ */ |
|
3 |
|
4 /* |
|
5 * The list of phases mapped to their corresponding profiles. The object |
|
6 * here must be in strict JSON format, as it will get parsed by the Python |
|
7 * testrunner (no single quotes, extra comma's, etc). |
|
8 */ |
|
9 |
|
10 EnableEngines(["addons"]); |
|
11 |
|
12 let phases = { "phase1": "profile1", |
|
13 "phase2": "profile1" }; |
|
14 |
|
15 const id = "unsigned-xpi@tests.mozilla.org"; |
|
16 |
|
17 Phase("phase1", [ |
|
18 [Addons.install, [id]], |
|
19 // Non-restartless add-on shouldn't be found after install. |
|
20 [Addons.verifyNot, [id]], |
|
21 |
|
22 // But it should be marked for Sync. |
|
23 [Sync] |
|
24 ]); |
|
25 |
|
26 Phase("phase2", [ |
|
27 // Add-on should be present after restart |
|
28 [Addons.verify, [id], STATE_ENABLED] |
|
29 ]); |