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

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

Issue 2885363003: Add policy to use system default printer (Closed)
Patch Set: Remove IOS checks Created 3 years, 6 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
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": [
(...skipping 1767 matching lines...) Expand 10 before | Expand all | Expand 10 after
1778 "DefaultPrinterSelection": { 1778 "DefaultPrinterSelection": {
1779 "os": ["win", "linux", "mac", "chromeos"], 1779 "os": ["win", "linux", "mac", "chromeos"],
1780 "test_policy": { 1780 "test_policy": {
1781 "DefaultPrinterSelection": "{ 'kind': 'local', 'namePattern': '.*' }" 1781 "DefaultPrinterSelection": "{ 'kind': 'local', 'namePattern': '.*' }"
1782 }, 1782 },
1783 "pref_mappings": [ 1783 "pref_mappings": [
1784 { "pref": "printing.default_destination_selection_rules" } 1784 { "pref": "printing.default_destination_selection_rules" }
1785 ] 1785 ]
1786 }, 1786 },
1787 1787
1788 "PrintPreviewUseSystemDefaultPrinter": {
1789 "os": ["win", "mac", "linux"],
1790 "test_policy": { "PrintPreviewUseSystemDefaultPrinter": false },
1791 "pref_mappings": [
1792 { "pref": "printing.use_system_default_printer" }
1793 ]
1794 },
1795
1788 "BackgroundModeEnabled": { 1796 "BackgroundModeEnabled": {
1789 "os": ["win", "linux"], 1797 "os": ["win", "linux"],
1790 "can_be_recommended": true, 1798 "can_be_recommended": true,
1791 "test_policy": { "BackgroundModeEnabled": false }, 1799 "test_policy": { "BackgroundModeEnabled": false },
1792 "pref_mappings": [ 1800 "pref_mappings": [
1793 { "pref": "background_mode.enabled", 1801 { "pref": "background_mode.enabled",
1794 "local_state": true, 1802 "local_state": true,
1795 "indicator_tests": [ 1803 "indicator_tests": [
1796 { "policy": { "BackgroundModeEnabled": false } } 1804 { "policy": { "BackgroundModeEnabled": false } }
1797 ] 1805 ]
(...skipping 1322 matching lines...) Expand 10 before | Expand all | Expand 10 after
3120 3128
3121 "AdditionalLaunchParameters": { 3129 "AdditionalLaunchParameters": {
3122 }, 3130 },
3123 3131
3124 "SuppressChromeFrameTurndownPrompt": { 3132 "SuppressChromeFrameTurndownPrompt": {
3125 }, 3133 },
3126 3134
3127 "SkipMetadataCheck": { 3135 "SkipMetadataCheck": {
3128 } 3136 }
3129 } 3137 }
OLDNEW
« no previous file with comments | « chrome/common/pref_names.cc ('k') | chrome/test/data/webui/print_preview/print_preview_tests.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698