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

Side by Side Diff: chrome/test/functional/policy_prefs_ui.py

Issue 8400071: Enable policy_prefs_ui.py and disable only the broken policy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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
« no previous file with comments | « chrome/test/functional/PYAUTO_TESTS ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2011 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 # If this test is failing, please check these steps. 6 # If this test is failing, please check these steps.
7 # 7 #
8 # - You introduced a new policy: 8 # - You introduced a new policy:
9 # Cool! Edit |policies| below and add an entry for it. See the comment above 9 # Cool! Edit |policies| below and add an entry for it. See the comment above
10 # it for the format. 10 # it for the format.
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 'HomepageIsNewTabPage': (True, [ BROWSER ]), 73 'HomepageIsNewTabPage': (True, [ BROWSER ]),
74 # TODO(joaodasilva): Couldn't verify on linux. 74 # TODO(joaodasilva): Couldn't verify on linux.
75 'DefaultBrowserSettingEnabled': (False, [], [ 'win', 'mac', 'linux' ]), 75 'DefaultBrowserSettingEnabled': (False, [], [ 'win', 'mac', 'linux' ]),
76 # TODO(joaodasilva): Test this on windows. 76 # TODO(joaodasilva): Test this on windows.
77 'ApplicationLocaleValue': ('', [], [ 'win' ]), 77 'ApplicationLocaleValue': ('', [], [ 'win' ]),
78 'AlternateErrorPagesEnabled': (False, [ ADVANCED ]), 78 'AlternateErrorPagesEnabled': (False, [ ADVANCED ]),
79 'SearchSuggestEnabled': (False, [ ADVANCED ]), 79 'SearchSuggestEnabled': (False, [ ADVANCED ]),
80 'DnsPrefetchingEnabled': (False, [ ADVANCED ]), 80 'DnsPrefetchingEnabled': (False, [ ADVANCED ]),
81 'DisableSpdy': (True, []), 81 'DisableSpdy': (True, []),
82 'DisabledSchemes': ( ['file' ], []), 82 'DisabledSchemes': ( ['file' ], []),
83 'JavascriptEnabled': (False, [ CONTENT ]), 83 # TODO(joaodasilva): Should be CONTENT. http://crbug.com/102136
84 'JavascriptEnabled': (False, []),
84 'IncognitoEnabled': (False, []), 85 'IncognitoEnabled': (False, []),
85 'IncognitoModeAvailability': (1, []), 86 'IncognitoModeAvailability': (1, []),
86 'SavingBrowserHistoryDisabled': (True, []), 87 'SavingBrowserHistoryDisabled': (True, []),
87 'RemoteAccessClientFirewallTraversal': (True, []), 88 'RemoteAccessClientFirewallTraversal': (True, []),
88 'RemoteAccessHostFirewallTraversal': (True, []), 89 'RemoteAccessHostFirewallTraversal': (True, []),
89 'PrintingEnabled': (False, []), 90 'PrintingEnabled': (False, []),
90 # Note: supported_on is empty for this policy. 91 # Note: supported_on is empty for this policy.
91 'CloudPrintProxyEnabled': (True, [], []), 92 'CloudPrintProxyEnabled': (True, [], []),
92 'SafeBrowsingEnabled': (False, [ ADVANCED ]), 93 'SafeBrowsingEnabled': (False, [ ADVANCED ]),
93 # TODO(joaodasilva): This is only in place on official builds, but the 94 # TODO(joaodasilva): This is only in place on official builds, but the
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
324 325
325 self.SetPolicies(policy_dict) 326 self.SetPolicies(policy_dict)
326 self.assertTrue(self.IsBannerVisible()) 327 self.assertTrue(self.IsBannerVisible())
327 328
328 self.SetPolicies({}) 329 self.SetPolicies({})
329 self.assertFalse(self.IsBannerVisible()) 330 self.assertFalse(self.IsBannerVisible())
330 331
331 332
332 if __name__ == '__main__': 333 if __name__ == '__main__':
333 pyauto_functional.Main() 334 pyauto_functional.Main()
OLDNEW
« no previous file with comments | « chrome/test/functional/PYAUTO_TESTS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698