| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 | 2 |
| 3 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 3 # 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 | 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
| 6 | 6 |
| 7 """PyAuto: Python Interface to Chromium's Automation Proxy. | 7 """PyAuto: Python Interface to Chromium's Automation Proxy. |
| 8 | 8 |
| 9 PyAuto uses swig to expose Automation Proxy interfaces to Python. | 9 PyAuto uses swig to expose Automation Proxy interfaces to Python. |
| 10 For complete documentation on the functionality available, | 10 For complete documentation on the functionality available, |
| (...skipping 1843 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1854 | 1854 |
| 1855 Returns: | 1855 Returns: |
| 1856 A dictionary of info about sync. | 1856 A dictionary of info about sync. |
| 1857 Example dictionaries: | 1857 Example dictionaries: |
| 1858 {u'summary': u'SYNC DISABLED'} | 1858 {u'summary': u'SYNC DISABLED'} |
| 1859 | 1859 |
| 1860 { u'authenticated': True, | 1860 { u'authenticated': True, |
| 1861 u'last synced': u'Just now', | 1861 u'last synced': u'Just now', |
| 1862 u'summary': u'READY', | 1862 u'summary': u'READY', |
| 1863 u'sync url': u'clients4.google.com', | 1863 u'sync url': u'clients4.google.com', |
| 1864 u'updates received': 42, |
| 1864 u'synced datatypes': [ u'Bookmarks', | 1865 u'synced datatypes': [ u'Bookmarks', |
| 1865 u'Preferences', | 1866 u'Preferences', |
| 1866 u'Passwords', | 1867 u'Passwords', |
| 1867 u'Autofill', | 1868 u'Autofill', |
| 1868 u'Themes', | 1869 u'Themes', |
| 1869 u'Extensions', | 1870 u'Extensions', |
| 1870 u'Apps']} | 1871 u'Apps']} |
| 1871 | 1872 |
| 1872 Raises: | 1873 Raises: |
| 1873 pyauto_errors.JSONInterfaceError if the automation call returns an error. | 1874 pyauto_errors.JSONInterfaceError if the automation call returns an error. |
| (...skipping 1165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3039 if self._options.verbose: | 3040 if self._options.verbose: |
| 3040 verbosity = 2 | 3041 verbosity = 2 |
| 3041 result = PyAutoTextTestRuner(verbosity=verbosity).run(pyauto_suite) | 3042 result = PyAutoTextTestRuner(verbosity=verbosity).run(pyauto_suite) |
| 3042 del loaded_tests # Need to destroy test cases before the suite | 3043 del loaded_tests # Need to destroy test cases before the suite |
| 3043 del pyauto_suite | 3044 del pyauto_suite |
| 3044 sys.exit(not result.wasSuccessful()) | 3045 sys.exit(not result.wasSuccessful()) |
| 3045 | 3046 |
| 3046 | 3047 |
| 3047 if __name__ == '__main__': | 3048 if __name__ == '__main__': |
| 3048 Main() | 3049 Main() |
| OLD | NEW |