services/sync/tests/tps/test_addon_sanity.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 /*
     5  * The list of phases mapped to their corresponding profiles.  The object
     6  * here must be in strict JSON format, as it will get parsed by the Python
     7  * testrunner (no single quotes, extra comma's, etc).
     8  */
    10 EnableEngines(["addons"]);
    12 let phases = { "phase1": "profile1",
    13                "phase2": "profile1" };
    15 const id = "unsigned-xpi@tests.mozilla.org";
    17 Phase("phase1", [
    18   [Addons.install, [id]],
    19   // Non-restartless add-on shouldn't be found after install.
    20   [Addons.verifyNot, [id]],
    22   // But it should be marked for Sync.
    23   [Sync]
    24 ]);
    26 Phase("phase2", [
    27   // Add-on should be present after restart
    28   [Addons.verify, [id], STATE_ENABLED]
    29 ]);

mercurial