Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(80)

Side by Side Diff: chrome/test/pyautolib/pyauto.py

Issue 6800028: Verify that sync updates_received is 0 on browser restart (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: "" Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/test/functional/sync.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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()
OLDNEW
« no previous file with comments | « chrome/test/functional/sync.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698