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