michael@0: /* Any copyright is dedicated to the Public Domain. michael@0: http://creativecommons.org/publicdomain/zero/1.0/ */ michael@0: michael@0: // This test ensures that a client wipe followed by an "initial" sync will michael@0: // restore add-ons. This test should expose flaws in the reconciling logic, michael@0: // specifically around AddonsReconciler. This test is in response to bug michael@0: // 792990. michael@0: michael@0: EnableEngines(["addons"]); michael@0: michael@0: let phases = { michael@0: "phase01": "profile1", michael@0: "phase02": "profile1", michael@0: "phase03": "profile1" michael@0: }; michael@0: michael@0: const id1 = "restartless-xpi@tests.mozilla.org"; michael@0: const id2 = "unsigned-xpi@tests.mozilla.org"; michael@0: michael@0: Phase("phase01", [ michael@0: [Addons.install, [id1]], michael@0: [Addons.install, [id2]], michael@0: [Sync] michael@0: ]); michael@0: Phase("phase02", [ michael@0: [Addons.verify, [id1], STATE_ENABLED], michael@0: [Addons.verify, [id2], STATE_ENABLED], michael@0: [Sync, SYNC_WIPE_CLIENT], michael@0: [Sync] michael@0: ]); michael@0: Phase("phase03", [ michael@0: [Addons.verify, [id1], STATE_ENABLED], michael@0: [Addons.verify, [id2], STATE_ENABLED] michael@0: ]);