services/sync/tests/tps/test_addon_sanity.js

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     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