services/sync/tests/tps/test_prefs.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

michael@0 1 /* Any copyright is dedicated to the Public Domain.
michael@0 2 http://creativecommons.org/publicdomain/zero/1.0/ */
michael@0 3
michael@0 4 /*
michael@0 5 * The list of phases mapped to their corresponding profiles. The object
michael@0 6 * here must be in strict JSON format, as it will get parsed by the Python
michael@0 7 * testrunner (no single quotes, extra comma's, etc).
michael@0 8 */
michael@0 9 EnableEngines(["prefs"]);
michael@0 10
michael@0 11 var phases = { "phase1": "profile1",
michael@0 12 "phase2": "profile2",
michael@0 13 "phase3": "profile1"};
michael@0 14
michael@0 15 var prefs1 = [
michael@0 16 { name: "browser.startup.homepage",
michael@0 17 value: "http://www.getfirefox.com"
michael@0 18 },
michael@0 19 { name: "browser.urlbar.maxRichResults",
michael@0 20 value: 20
michael@0 21 },
michael@0 22 { name: "security.OCSP.require",
michael@0 23 value: true
michael@0 24 }
michael@0 25 ];
michael@0 26
michael@0 27 var prefs2 = [
michael@0 28 { name: "browser.startup.homepage",
michael@0 29 value: "http://www.mozilla.com"
michael@0 30 },
michael@0 31 { name: "browser.urlbar.maxRichResults",
michael@0 32 value: 18
michael@0 33 },
michael@0 34 { name: "security.OCSP.require",
michael@0 35 value: false
michael@0 36 }
michael@0 37 ];
michael@0 38
michael@0 39 Phase('phase1', [
michael@0 40 [Prefs.modify, prefs1],
michael@0 41 [Prefs.verify, prefs1],
michael@0 42 [Sync],
michael@0 43 ]);
michael@0 44
michael@0 45 Phase('phase2', [
michael@0 46 [Sync],
michael@0 47 [Prefs.verify, prefs1],
michael@0 48 [Prefs.modify, prefs2],
michael@0 49 [Prefs.verify, prefs2],
michael@0 50 [Sync]
michael@0 51 ]);
michael@0 52
michael@0 53 Phase('phase3', [
michael@0 54 [Sync],
michael@0 55 [Prefs.verify, prefs2]
michael@0 56 ]);
michael@0 57

mercurial