services/sync/tests/tps/test_addon_wipe.js

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     1 /* Any copyright is dedicated to the Public Domain.
     2    http://creativecommons.org/publicdomain/zero/1.0/ */
     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.
     9 EnableEngines(["addons"]);
    11 let phases = {
    12   "phase01": "profile1",
    13   "phase02": "profile1",
    14   "phase03": "profile1"
    15 };
    17 const id1 = "restartless-xpi@tests.mozilla.org";
    18 const id2 = "unsigned-xpi@tests.mozilla.org";
    20 Phase("phase01", [
    21   [Addons.install, [id1]],
    22   [Addons.install, [id2]],
    23   [Sync]
    24 ]);
    25 Phase("phase02", [
    26   [Addons.verify, [id1], STATE_ENABLED],
    27   [Addons.verify, [id2], STATE_ENABLED],
    28   [Sync, SYNC_WIPE_CLIENT],
    29   [Sync]
    30 ]);
    31 Phase("phase03", [
    32   [Addons.verify, [id1], STATE_ENABLED],
    33   [Addons.verify, [id2], STATE_ENABLED]
    34 ]);

mercurial