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

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

Issue 2529083002: Make extensions developer mode adhere to policy (Closed)
Patch Set: Rebase Created 4 years 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
OLDNEW
1 { 1 {
2 "-- Template --": { 2 "-- Template --": {
3 "intro": "Top-level entries map a policy name to its test parameters, descri bed below. The name of the top level entry should be of the form <policy name>[. suffix]. The optional suffix is used for defining multiple test cases for a sing le policy.", 3 "intro": "Top-level entries map a policy name to its test parameters, descri bed below. The name of the top level entry should be of the form <policy name>[. suffix]. The optional suffix is used for defining multiple test cases for a sing le policy.",
4 4
5 "os": ["List of operating systems that support this policy. Valid values:", "win", "linux", "mac", "chromeos", "android", "Defaults to empty if not specifie d."], 5 "os": ["List of operating systems that support this policy. Valid values:", "win", "linux", "mac", "chromeos", "android", "Defaults to empty if not specifie d."],
6 "official_only": "Whether this policy exists in official builds only. Defaul ts to |false| if not specified.", 6 "official_only": "Whether this policy exists in official builds only. Defaul ts to |false| if not specified.",
7 "can_be_recommended": "Whether a recommended value may be set for the policy . Defaults to |false| if not specified.", 7 "can_be_recommended": "Whether a recommended value may be set for the policy . Defaults to |false| if not specified.",
8 "test_policy": "A policy dictionary that should make the preferences affecte d by this policy become policy-controlled. Usually just sets the current policy. Defaults to an empty dictionary if not specified.", 8 "test_policy": "A policy dictionary that should make the preferences affecte d by this policy become policy-controlled. Usually just sets the current policy. Defaults to an empty dictionary if not specified.",
9 "note": "If the policy affects any preferences, the following array should b e specified with one entry per such preference.", 9 "note": "If the policy affects any preferences, the following array should b e specified with one entry per such preference.",
10 "pref_mappings": [ 10 "pref_mappings": [
11 { "pref": "The affected preference's name.", 11 { "pref": "The affected preference's name.",
12 "local_state": "Whether |pref| is registered in local state's PrefServic e instead of the profile's PrefService. Defaults to |false| if not specified.", 12 "local_state": "Whether |pref| is registered in local state's PrefServic e instead of the profile's PrefService. Defaults to |false| if not specified.",
13 "check_for_mandatory": "Should the preference be tested when a mandatory value is set for the policy? Defaults to |true| if not specified.", 13 "check_for_mandatory": "Should the preference be tested when a mandatory value is set for the policy? Defaults to |true| if not specified.",
14 "check_for_recommended": "Should the preference be tested when a recomme nded value is set for the policy? Defaults to |true| if not specified.", 14 "check_for_recommended": "Should the preference be tested when a recomme nded value is set for the policy? Defaults to |true| if not specified.",
15 "note": "When |can_be_recommended| is |false|, the policy is never set t o a recommended value so |check_for_recommended| has no effect.", 15 "note": "When |can_be_recommended| is |false|, the policy is never set t o a recommended value so |check_for_recommended| has no effect.",
16 "note": "The following entries should be specified if controlled setting indicators exist for |pref| in the settings UI.", 16 "note": "The following entries should be specified if controlled setting indicators exist for |pref| in the settings UI.",
17 "indicator_test_url": "The URL to navigate to in order to test the indic ators. Defaults to |chrome://settings-frame/| if not specified.",
17 "indicator_test_setup_js": "Any JavaScript that should be executed befor e testing the indicators. This should be specified only if an explicit user acti on must be simulated (e.g. clicking a button).", 18 "indicator_test_setup_js": "Any JavaScript that should be executed befor e testing the indicators. This should be specified only if an explicit user acti on must be simulated (e.g. clicking a button).",
18 "indicator_selector": "A CSS selector that locates all controlled settin g indicators for |pref|. This is appended to the selector 'span.controlled-setti ng-indicator' and if not specified, defaults to '[pref=(the value of |pref|)', e .g. '[pref=homepage]'.", 19 "indicator_selector": "A CSS selector that locates all controlled settin g indicators for |pref|. This is appended to the selector 'span.controlled-setti ng-indicator' and if not specified, defaults to '[pref=(the value of |pref|)', e .g. '[pref=homepage]'.",
19 "note": "Any number of test cases may be specified in the following arra y.", 20 "note": "Any number of test cases may be specified in the following arra y.",
20 "indicator_tests": [ 21 "indicator_tests": [
21 { "policy": "A policy dictionary that should affect |pref| when set as mandatory or recommended policy.", 22 { "policy": "A policy dictionary that should affect |pref| when set as mandatory or recommended policy.",
22 "value": "The value that |pref| should take on. This must only be sp ecified if |pref| has multiple controlled setting indicators, each corresponding to a specific value (e.g. indicators next to radio buttons).", 23 "value": "The value that |pref| should take on. This must only be sp ecified if |pref| has multiple controlled setting indicators, each corresponding to a specific value (e.g. indicators next to radio buttons).",
23 "readonly": "Whether setting the policy dictionary as recommended sh ould 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. s etting 'homepage is NTP' makes the 'homepage URL' pref not applicable and read-o nly)." 24 "readonly": "Whether setting the policy dictionary as recommended sh ould 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. s etting 'homepage is NTP' makes the 'homepage URL' pref not applicable and read-o nly)."
24 } 25 }
25 ] 26 ]
26 } 27 }
(...skipping 811 matching lines...) Expand 10 before | Expand all | Expand 10 after
838 { "policy": { "ShowHomeButton": true } } 839 { "policy": { "ShowHomeButton": true } }
839 ] 840 ]
840 } 841 }
841 ] 842 ]
842 }, 843 },
843 844
844 "DeveloperToolsDisabled": { 845 "DeveloperToolsDisabled": {
845 "os": ["win", "linux", "mac", "chromeos"], 846 "os": ["win", "linux", "mac", "chromeos"],
846 "test_policy": { "DeveloperToolsDisabled": true }, 847 "test_policy": { "DeveloperToolsDisabled": true },
847 "pref_mappings": [ 848 "pref_mappings": [
848 { "pref": "devtools.disabled" } 849 { "pref": "devtools.disabled",
850 "indicator_test_url": "chrome://extensions-frame/",
851 "indicator_selector": "#dev-toggle-disabled-by-policy-indicator",
852 "indicator_tests": [
853 { "policy": { "DeveloperToolsDisabled": true } }
854 ]
855 }
849 ] 856 ]
850 }, 857 },
851 858
852 "RestoreOnStartup": { 859 "RestoreOnStartup": {
853 "os": ["win", "linux", "mac", "chromeos"], 860 "os": ["win", "linux", "mac", "chromeos"],
854 "can_be_recommended": true, 861 "can_be_recommended": true,
855 "test_policy": { "RestoreOnStartup": 4 }, 862 "test_policy": { "RestoreOnStartup": 4 },
856 "pref_mappings": [ 863 "pref_mappings": [
857 { "pref": "session.restore_on_startup", 864 { "pref": "session.restore_on_startup",
858 "indicator_tests": [ 865 "indicator_tests": [
(...skipping 2176 matching lines...) Expand 10 before | Expand all | Expand 10 after
3035 3042
3036 "AdditionalLaunchParameters": { 3043 "AdditionalLaunchParameters": {
3037 }, 3044 },
3038 3045
3039 "SuppressChromeFrameTurndownPrompt": { 3046 "SuppressChromeFrameTurndownPrompt": {
3040 }, 3047 },
3041 3048
3042 "SkipMetadataCheck": { 3049 "SkipMetadataCheck": {
3043 } 3050 }
3044 } 3051 }
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/developer_private.idl ('k') | third_party/closure_compiler/externs/developer_private.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698