| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/env python |
| 2 | |
| 3 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 4 # 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 |
| 5 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 6 | 5 |
| 7 """PyAuto: Python Interface to Chromium's Automation Proxy. | 6 """PyAuto: Python Interface to Chromium's Automation Proxy. |
| 8 | 7 |
| 9 PyAuto uses swig to expose Automation Proxy interfaces to Python. | 8 PyAuto uses swig to expose Automation Proxy interfaces to Python. |
| 10 For complete documentation on the functionality available, | 9 For complete documentation on the functionality available, |
| 11 run pydoc on this file. | 10 run pydoc on this file. |
| 12 | 11 |
| (...skipping 4769 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4782 successful = result.wasSuccessful() | 4781 successful = result.wasSuccessful() |
| 4783 if not successful: | 4782 if not successful: |
| 4784 pyauto_tests_file = os.path.join(self.TestsDir(), self._tests_filename) | 4783 pyauto_tests_file = os.path.join(self.TestsDir(), self._tests_filename) |
| 4785 print >>sys.stderr, 'Tests can be disabled by editing %s. ' \ | 4784 print >>sys.stderr, 'Tests can be disabled by editing %s. ' \ |
| 4786 'Ref: %s' % (pyauto_tests_file, _PYAUTO_DOC_URL) | 4785 'Ref: %s' % (pyauto_tests_file, _PYAUTO_DOC_URL) |
| 4787 sys.exit(not successful) | 4786 sys.exit(not successful) |
| 4788 | 4787 |
| 4789 | 4788 |
| 4790 if __name__ == '__main__': | 4789 if __name__ == '__main__': |
| 4791 Main() | 4790 Main() |
| OLD | NEW |