| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 # TODO(joaodasilva): Should be CONTENT. http://crbug.com/102136 | 83 'JavascriptEnabled': (False, [ CONTENT ]), |
| 84 'JavascriptEnabled': (False, []), | |
| 85 'IncognitoEnabled': (False, []), | 84 'IncognitoEnabled': (False, []), |
| 86 'IncognitoModeAvailability': (1, []), | 85 'IncognitoModeAvailability': (1, []), |
| 87 'SavingBrowserHistoryDisabled': (True, []), | 86 'SavingBrowserHistoryDisabled': (True, []), |
| 88 'RemoteAccessClientFirewallTraversal': (True, []), | 87 'RemoteAccessClientFirewallTraversal': (True, []), |
| 89 'RemoteAccessHostFirewallTraversal': (True, []), | 88 'RemoteAccessHostFirewallTraversal': (True, []), |
| 90 'PrintingEnabled': (False, []), | 89 'PrintingEnabled': (False, []), |
| 91 # Note: supported_on is empty for this policy. | 90 # Note: supported_on is empty for this policy. |
| 92 'CloudPrintProxyEnabled': (True, [], []), | 91 'CloudPrintProxyEnabled': (True, [], []), |
| 93 'CloudPrintSubmitEnabled': (False, [], ['win', 'mac', 'linux']), | 92 'CloudPrintSubmitEnabled': (False, [], ['win', 'mac', 'linux']), |
| 94 'SafeBrowsingEnabled': (False, [ ADVANCED ]), | 93 'SafeBrowsingEnabled': (False, [ ADVANCED ]), |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 327 | 326 |
| 328 self.SetPolicies(policy_dict) | 327 self.SetPolicies(policy_dict) |
| 329 self.assertTrue(self.IsBannerVisible()) | 328 self.assertTrue(self.IsBannerVisible()) |
| 330 | 329 |
| 331 self.SetPolicies({}) | 330 self.SetPolicies({}) |
| 332 self.assertFalse(self.IsBannerVisible()) | 331 self.assertFalse(self.IsBannerVisible()) |
| 333 | 332 |
| 334 | 333 |
| 335 if __name__ == '__main__': | 334 if __name__ == '__main__': |
| 336 pyauto_functional.Main() | 335 pyauto_functional.Main() |
| OLD | NEW |