Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
| 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 | // This test ensures that a client wipe followed by an "initial" sync will |
| michael@0 | 5 | // restore add-ons. This test should expose flaws in the reconciling logic, |
| michael@0 | 6 | // specifically around AddonsReconciler. This test is in response to bug |
| michael@0 | 7 | // 792990. |
| michael@0 | 8 | |
| michael@0 | 9 | EnableEngines(["addons"]); |
| michael@0 | 10 | |
| michael@0 | 11 | let phases = { |
| michael@0 | 12 | "phase01": "profile1", |
| michael@0 | 13 | "phase02": "profile1", |
| michael@0 | 14 | "phase03": "profile1" |
| michael@0 | 15 | }; |
| michael@0 | 16 | |
| michael@0 | 17 | const id1 = "restartless-xpi@tests.mozilla.org"; |
| michael@0 | 18 | const id2 = "unsigned-xpi@tests.mozilla.org"; |
| michael@0 | 19 | |
| michael@0 | 20 | Phase("phase01", [ |
| michael@0 | 21 | [Addons.install, [id1]], |
| michael@0 | 22 | [Addons.install, [id2]], |
| michael@0 | 23 | [Sync] |
| michael@0 | 24 | ]); |
| michael@0 | 25 | Phase("phase02", [ |
| michael@0 | 26 | [Addons.verify, [id1], STATE_ENABLED], |
| michael@0 | 27 | [Addons.verify, [id2], STATE_ENABLED], |
| michael@0 | 28 | [Sync, SYNC_WIPE_CLIENT], |
| michael@0 | 29 | [Sync] |
| michael@0 | 30 | ]); |
| michael@0 | 31 | Phase("phase03", [ |
| michael@0 | 32 | [Addons.verify, [id1], STATE_ENABLED], |
| michael@0 | 33 | [Addons.verify, [id2], STATE_ENABLED] |
| michael@0 | 34 | ]); |