OLD | NEW |
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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 'JavascriptEnabled': (False, [ CONTENT ]), |
84 'IncognitoEnabled': (False, []), | 84 'IncognitoEnabled': (False, []), |
85 'IncognitoModeAvailability': (1, []), | 85 'IncognitoModeAvailability': (1, []), |
86 'SavingBrowserHistoryDisabled': (True, []), | 86 'SavingBrowserHistoryDisabled': (True, []), |
87 'RemoteAccessClientFirewallTraversal': (True, []), | |
88 'RemoteAccessHostFirewallTraversal': (True, []), | 87 'RemoteAccessHostFirewallTraversal': (True, []), |
89 'PrintingEnabled': (False, []), | 88 'PrintingEnabled': (False, []), |
90 # Note: supported_on is empty for this policy. | 89 # Note: supported_on is empty for this policy. |
91 'CloudPrintProxyEnabled': (True, [], []), | 90 'CloudPrintProxyEnabled': (True, [], []), |
92 'SafeBrowsingEnabled': (False, [ ADVANCED ]), | 91 'SafeBrowsingEnabled': (False, [ ADVANCED ]), |
93 # TODO(joaodasilva): This is only in place on official builds, but the | 92 # TODO(joaodasilva): This is only in place on official builds, but the |
94 # SetUserCloudPolicy call is a nop on official builds. Should be ADVANCED. | 93 # SetUserCloudPolicy call is a nop on official builds. Should be ADVANCED. |
95 'MetricsReportingEnabled': (False, []), | 94 'MetricsReportingEnabled': (False, []), |
96 'PasswordManagerEnabled': (False, [ PERSONAL ]), | 95 'PasswordManagerEnabled': (False, [ PERSONAL ]), |
97 # TODO(joaodasilva): Should be PASSWORDS too. http://crbug.com/97749 | 96 # TODO(joaodasilva): Should be PASSWORDS too. http://crbug.com/97749 |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
324 | 323 |
325 self.SetPolicies(policy_dict) | 324 self.SetPolicies(policy_dict) |
326 self.assertTrue(self.IsBannerVisible()) | 325 self.assertTrue(self.IsBannerVisible()) |
327 | 326 |
328 self.SetPolicies({}) | 327 self.SetPolicies({}) |
329 self.assertFalse(self.IsBannerVisible()) | 328 self.assertFalse(self.IsBannerVisible()) |
330 | 329 |
331 | 330 |
332 if __name__ == '__main__': | 331 if __name__ == '__main__': |
333 pyauto_functional.Main() | 332 pyauto_functional.Main() |
OLD | NEW |