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 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
276 use a custom set of Chrome flags. | 276 use a custom set of Chrome flags. |
277 """ | 277 """ |
278 auth_ext_path = ('/usr/local/autotest/deps/pyauto_dep/' + | 278 auth_ext_path = ('/usr/local/autotest/deps/pyauto_dep/' + |
279 'test_src/chrome/browser/resources/gaia_auth') | 279 'test_src/chrome/browser/resources/gaia_auth') |
280 if self.IsChromeOS(): | 280 if self.IsChromeOS(): |
281 return [ | 281 return [ |
282 '--homepage=about:blank', | 282 '--homepage=about:blank', |
283 '--allow-file-access', | 283 '--allow-file-access', |
284 '--allow-file-access-from-files', | 284 '--allow-file-access-from-files', |
285 '--enable-file-cookies', | 285 '--enable-file-cookies', |
286 '--disable-default-apps', | |
dpolukhin
2012/11/08 02:25:34
Unfortunately it looks like it won't help because
zel
2012/11/08 04:37:46
Can we change chromeos-specific install to start o
Dmitry Polukhin
2012/11/08 13:34:43
The code is in ExternalProviderImpl::CreateExterna
Dmitry Polukhin
2012/11/08 16:28:14
CL is here https://codereview.chromium.org/1135910
| |
286 '--dom-automation', | 287 '--dom-automation', |
287 '--skip-oauth-login', | 288 '--skip-oauth-login', |
288 # Enables injection of test content script for webui login automation | 289 # Enables injection of test content script for webui login automation |
289 '--auth-ext-path=%s' % auth_ext_path, | 290 '--auth-ext-path=%s' % auth_ext_path, |
290 # Enable automation provider and chromeos net logs | 291 # Enable automation provider and chromeos net logs |
291 '--vmodule=*/browser/automation/*=2,*/chromeos/net/*=2', | 292 '--vmodule=*/browser/automation/*=2,*/chromeos/net/*=2', |
292 ] | 293 ] |
293 else: | 294 else: |
294 return [] | 295 return [] |
295 | 296 |
(...skipping 6247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
6543 successful = result.wasSuccessful() | 6544 successful = result.wasSuccessful() |
6544 if not successful: | 6545 if not successful: |
6545 pyauto_tests_file = os.path.join(self.TestsDir(), self._tests_filename) | 6546 pyauto_tests_file = os.path.join(self.TestsDir(), self._tests_filename) |
6546 print >>sys.stderr, 'Tests can be disabled by editing %s. ' \ | 6547 print >>sys.stderr, 'Tests can be disabled by editing %s. ' \ |
6547 'Ref: %s' % (pyauto_tests_file, _PYAUTO_DOC_URL) | 6548 'Ref: %s' % (pyauto_tests_file, _PYAUTO_DOC_URL) |
6548 sys.exit(not successful) | 6549 sys.exit(not successful) |
6549 | 6550 |
6550 | 6551 |
6551 if __name__ == '__main__': | 6552 if __name__ == '__main__': |
6552 Main() | 6553 Main() |
OLD | NEW |