OLD | NEW |
1 #!/usr/bin/env 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 """PyAuto: Python Interface to Chromium's Automation Proxy. | 6 """PyAuto: Python Interface to Chromium's Automation Proxy. |
7 | 7 |
8 PyAuto uses swig to expose Automation Proxy interfaces to Python. | 8 PyAuto uses swig to expose Automation Proxy interfaces to Python. |
9 For complete documentation on the functionality available, | 9 For complete documentation on the functionality available, |
10 run pydoc on this file. | 10 run pydoc on this file. |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 These are flags needed to facilitate testing. Override this function to | 240 These are flags needed to facilitate testing. Override this function to |
241 use a custom set of Chrome flags. | 241 use a custom set of Chrome flags. |
242 """ | 242 """ |
243 if self.IsChromeOS(): | 243 if self.IsChromeOS(): |
244 return [ | 244 return [ |
245 '--homepage=about:blank', | 245 '--homepage=about:blank', |
246 '--allow-file-access', | 246 '--allow-file-access', |
247 '--allow-file-access-from-files', | 247 '--allow-file-access-from-files', |
248 '--enable-file-cookies', | 248 '--enable-file-cookies', |
249 '--dom-automation', | 249 '--dom-automation', |
250 '--disable-uber-page', | |
251 '--skip-oauth-login', | 250 '--skip-oauth-login', |
252 # Enables injection of test content script for webui login automation | 251 # Enables injection of test content script for webui login automation |
253 '--auth-ext-path=/usr/share/chromeos-assets/gaia_auth', | 252 '--auth-ext-path=/usr/share/chromeos-assets/gaia_auth', |
254 # Enable automation provider and chromeos net logs | 253 # Enable automation provider and chromeos net logs |
255 '--vmodule=*/browser/automation/*=2,*/chromeos/net/*=2,*/renderer_host/r
esource_dispatcher_host*=1', | 254 '--vmodule=*/browser/automation/*=2,*/chromeos/net/*=2,*/renderer_host/r
esource_dispatcher_host*=1', |
256 ] | 255 ] |
257 else: | 256 else: |
258 return [] | 257 return [] |
259 | 258 |
260 def CloseChromeOnChromeOS(self): | 259 def CloseChromeOnChromeOS(self): |
(...skipping 4883 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5144 successful = result.wasSuccessful() | 5143 successful = result.wasSuccessful() |
5145 if not successful: | 5144 if not successful: |
5146 pyauto_tests_file = os.path.join(self.TestsDir(), self._tests_filename) | 5145 pyauto_tests_file = os.path.join(self.TestsDir(), self._tests_filename) |
5147 print >>sys.stderr, 'Tests can be disabled by editing %s. ' \ | 5146 print >>sys.stderr, 'Tests can be disabled by editing %s. ' \ |
5148 'Ref: %s' % (pyauto_tests_file, _PYAUTO_DOC_URL) | 5147 'Ref: %s' % (pyauto_tests_file, _PYAUTO_DOC_URL) |
5149 sys.exit(not successful) | 5148 sys.exit(not successful) |
5150 | 5149 |
5151 | 5150 |
5152 if __name__ == '__main__': | 5151 if __name__ == '__main__': |
5153 Main() | 5152 Main() |
OLD | NEW |