test_addon_wipe.js (959B)
1 /* Any copyright is dedicated to the Public Domain. 2 http://creativecommons.org/publicdomain/zero/1.0/ */ 3 4 // This test ensures that a client wipe followed by an "initial" sync will 5 // restore add-ons. This test should expose flaws in the reconciling logic, 6 // specifically around AddonsReconciler. This test is in response to bug 7 // 792990. 8 9 EnableEngines(["addons"]); 10 11 var phases = { 12 phase01: "profile1", 13 phase02: "profile1", 14 phase03: "profile1", 15 }; 16 17 const id1 = "restartless-xpi@tests.mozilla.org"; 18 const id2 = "test-webext@quality.mozilla.org"; 19 20 Phase("phase01", [[Addons.install, [id1]], [Addons.install, [id2]], [Sync]]); 21 Phase("phase02", [ 22 [Addons.verify, [id1], STATE_ENABLED], 23 [Addons.verify, [id2], STATE_ENABLED], 24 [Sync, SYNC_WIPE_CLIENT], 25 [Sync], 26 ]); 27 Phase("phase03", [ 28 [Addons.verify, [id1], STATE_ENABLED], 29 [Addons.verify, [id2], STATE_ENABLED], 30 [Sync], // Sync to ensure that the addon validator can run without error 31 ]);