OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 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 import os | 6 import os |
7 | 7 |
8 import pyauto_functional # must be imported before pyauto | 8 import pyauto_functional # must be imported before pyauto |
9 import pyauto | 9 import pyauto |
10 | 10 |
11 | 11 |
(...skipping 18 matching lines...) Expand all Loading... |
30 self.assertTrue(ext_id, 'Failed to install extension.') | 30 self.assertTrue(ext_id, 'Failed to install extension.') |
31 extension = self._GetExtensionInfoById(self.GetExtensionsInfo(), ext_id) | 31 extension = self._GetExtensionInfoById(self.GetExtensionsInfo(), ext_id) |
32 self.assertTrue(extension['is_enabled'], | 32 self.assertTrue(extension['is_enabled'], |
33 msg='Extension was not enabled on installation') | 33 msg='Extension was not enabled on installation') |
34 self.assertFalse(extension['allowed_in_incognito'], | 34 self.assertFalse(extension['allowed_in_incognito'], |
35 msg='Extension was allowed in incognito on installation.') | 35 msg='Extension was allowed in incognito on installation.') |
36 | 36 |
37 | 37 |
38 if __name__ == '__main__': | 38 if __name__ == '__main__': |
39 pyauto_functional.Main() | 39 pyauto_functional.Main() |
OLD | NEW |