services/sync/tests/tps/test_addon_sanity.js

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/services/sync/tests/tps/test_addon_sanity.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,29 @@
     1.4 +/* Any copyright is dedicated to the Public Domain.
     1.5 +   http://creativecommons.org/publicdomain/zero/1.0/ */
     1.6 +
     1.7 +/*
     1.8 + * The list of phases mapped to their corresponding profiles.  The object
     1.9 + * here must be in strict JSON format, as it will get parsed by the Python
    1.10 + * testrunner (no single quotes, extra comma's, etc).
    1.11 + */
    1.12 +
    1.13 +EnableEngines(["addons"]);
    1.14 +
    1.15 +let phases = { "phase1": "profile1",
    1.16 +               "phase2": "profile1" };
    1.17 +
    1.18 +const id = "unsigned-xpi@tests.mozilla.org";
    1.19 +
    1.20 +Phase("phase1", [
    1.21 +  [Addons.install, [id]],
    1.22 +  // Non-restartless add-on shouldn't be found after install.
    1.23 +  [Addons.verifyNot, [id]],
    1.24 +
    1.25 +  // But it should be marked for Sync.
    1.26 +  [Sync]
    1.27 +]);
    1.28 +
    1.29 +Phase("phase2", [
    1.30 +  // Add-on should be present after restart
    1.31 +  [Addons.verify, [id], STATE_ENABLED]
    1.32 +]);

mercurial