Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(180)

Side by Side Diff: chrome/test/data/policy/policy_test_cases.json

Issue 11096020: Add first batch of controlled setting indicators (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comment addressed. Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 { 1 {
2 "-- Template --": { 2 "-- Template --": {
3 "intro": "Top-level entries map a policy name to its test parameters, descri bed below.", 3 "intro": "Top-level entries map a policy name to its test parameters, descri bed below.",
4 4
5 "pref": "The pref that this policy maps to, if any.", 5 "pref": "The pref that this policy maps to, if any.",
6 "can_be_recommended": "Whether a recommended value may be set for the policy . Defaults to |false| if not specified.",
6 "test_policy": "A policy dictionary that should trigger the managed banner i n the settings UI. Usually just sets the current policy.", 7 "test_policy": "A policy dictionary that should trigger the managed banner i n the settings UI. Usually just sets the current policy.",
8 "indicator_tests": [
9 "A list of test cases verifying that the controlled setting indicators for |pref| correctly indicate whether its value is recommended or enforced by a cor responding policy. Each test case is a dictionary with the following format:",
10 { "policy": "A policy dictionary that should affect |pref| when set as man datory or recommended policy.",
11 "value": "The value that |pref| should take on. This must only be specif ied if |pref| has multiple controlled setting indicators, each corresponding to a specific value (e.g. indicators next to radio buttons).",
12 "readonly": "Whether setting the policy dictionary as recommended should cause |pref| to become read-only in the settings UI. This will be the case when the dictionary sets another policy that makes |pref| not applicable (e.g. setti ng 'homepage is NTP' makes the 'homepage URL' pref not applicable and read-only) ."}],
7 "settings_pages": ["A list of settings pages where the banner should be visi ble when this policy is set."], 13 "settings_pages": ["A list of settings pages where the banner should be visi ble when this policy is set."],
8 "os": ["List of operating systems that support this policy. Valid values:", "win", "linux", "mac", "chromeos"], 14 "os": ["List of operating systems that support this policy. Valid values:", "win", "linux", "mac", "chromeos"],
9 "local_state": "Optionally indicate that |pref| is registed in local state, instead of in the profile PrefService.", 15 "local_state": "Optionally indicate that |pref| is registed in local state, instead of in the profile PrefService.",
10 "official_only": "Optionally set this to true if this policy only works on o fficial builds." 16 "official_only": "Optionally set this to true if this policy only works on o fficial builds."
11 }, 17 },
12 18
13 "HomepageLocation": { 19 "HomepageLocation": {
14 "pref": "homepage", 20 "pref": "homepage",
21 "can_be_recommended": true,
15 "test_policy": { "HomepageLocation": "http://chromium.org" }, 22 "test_policy": { "HomepageLocation": "http://chromium.org" },
23 "indicator_tests": [
24 { "policy": { "HomepageIsNewTabPage": false, "HomepageLocation": "http://c hromium.org" }},
25 { "policy": { "HomepageIsNewTabPage": true, "HomepageLocation": "http://ch romium.org" }, "readonly": true}],
16 "settings_pages": ["chrome://settings-frame/homePageOverlay"], 26 "settings_pages": ["chrome://settings-frame/homePageOverlay"],
17 "os": ["win", "linux", "mac", "chromeos"] 27 "os": ["win", "linux", "mac", "chromeos"]
18 }, 28 },
19 29
20 "HomepageIsNewTabPage": { 30 "HomepageIsNewTabPage": {
21 "pref": "homepage_is_newtabpage", 31 "pref": "homepage_is_newtabpage",
32 "can_be_recommended": true,
22 "test_policy": { "HomepageIsNewTabPage": true }, 33 "test_policy": { "HomepageIsNewTabPage": true },
34 "indicator_tests": [
35 { "policy": { "HomepageIsNewTabPage": false }, "value": "false"},
36 { "policy": { "HomepageIsNewTabPage": true }, "value": "true"}],
23 "settings_pages": ["chrome://settings-frame/homePageOverlay"], 37 "settings_pages": ["chrome://settings-frame/homePageOverlay"],
24 "os": ["win", "linux", "mac", "chromeos"] 38 "os": ["win", "linux", "mac", "chromeos"]
25 }, 39 },
26 40
27 "DefaultBrowserSettingEnabled": { 41 "DefaultBrowserSettingEnabled": {
28 "pref": "browser.default_browser_setting_enabled", 42 "pref": "browser.default_browser_setting_enabled",
29 "test_policy": { "DefaultBrowserSettingEnabled": true }, 43 "test_policy": { "DefaultBrowserSettingEnabled": true },
30 "settings_pages": [], 44 "settings_pages": [],
31 "local_state": true, 45 "local_state": true,
32 "os": ["win", "mac", "linux"], 46 "os": ["win", "mac", "linux"],
(...skipping 1149 matching lines...) Expand 10 before | Expand all | Expand 10 after
1182 "os": [] 1196 "os": []
1183 }, 1197 },
1184 1198
1185 "AdditionalLaunchParameters": { 1199 "AdditionalLaunchParameters": {
1186 "pref": null, 1200 "pref": null,
1187 "test_policy": { "AdditionalLaunchParameters": "--enable-media-stream" }, 1201 "test_policy": { "AdditionalLaunchParameters": "--enable-media-stream" },
1188 "settings_pages": [], 1202 "settings_pages": [],
1189 "os": [] 1203 "os": []
1190 } 1204 }
1191 } 1205 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698