michael@0: /* Any copyright is dedicated to the Public Domain. michael@0: http://creativecommons.org/publicdomain/zero/1.0/ */ michael@0: michael@0: /* michael@0: * The list of phases mapped to their corresponding profiles. The object michael@0: * here must be in strict JSON format, as it will get parsed by the Python michael@0: * testrunner (no single quotes, extra comma's, etc). michael@0: */ michael@0: michael@0: EnableEngines(["addons"]); michael@0: michael@0: let phases = { "phase1": "profile1", michael@0: "phase2": "profile1" }; michael@0: michael@0: const id = "unsigned-xpi@tests.mozilla.org"; michael@0: michael@0: Phase("phase1", [ michael@0: [Addons.install, [id]], michael@0: // Non-restartless add-on shouldn't be found after install. michael@0: [Addons.verifyNot, [id]], michael@0: michael@0: // But it should be marked for Sync. michael@0: [Sync] michael@0: ]); michael@0: michael@0: Phase("phase2", [ michael@0: // Add-on should be present after restart michael@0: [Addons.verify, [id], STATE_ENABLED] michael@0: ]);