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

Side by Side Diff: chrome/test/functional/sync.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
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 # Copyright (c) 2010 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2011 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 import pyauto_functional # Must be imported before pyauto 6 import pyauto_functional # Must be imported before pyauto
7 import pyauto 7 import pyauto
8 8
9 9
10 class SyncTest(pyauto.PyUITest): 10 class SyncTest(pyauto.PyUITest):
11 """Tests for sync.""" 11 """Tests for sync."""
12 12
(...skipping 26 matching lines...) Expand all
39 creds = self.GetPrivateInfo()['test_google_account'] 39 creds = self.GetPrivateInfo()['test_google_account']
40 username = creds['username'] 40 username = creds['username']
41 password = creds['password'] 41 password = creds['password']
42 self.assertTrue(self.SignInToSync(username, password)) 42 self.assertTrue(self.SignInToSync(username, password))
43 self.assertTrue(self.GetSyncInfo()['summary'] == 'READY') 43 self.assertTrue(self.GetSyncInfo()['summary'] == 'READY')
44 self.assertTrue(self.GetSyncInfo()['last synced'] == 'Just now') 44 self.assertTrue(self.GetSyncInfo()['last synced'] == 'Just now')
45 self.RestartBrowser(clear_profile=False) 45 self.RestartBrowser(clear_profile=False)
46 self.assertTrue(self.AwaitSyncCycleCompletion()) 46 self.assertTrue(self.AwaitSyncCycleCompletion())
47 self.assertTrue(self.GetSyncInfo()['summary'] == 'READY') 47 self.assertTrue(self.GetSyncInfo()['summary'] == 'READY')
48 self.assertTrue(self.GetSyncInfo()['last synced'] == 'Just now') 48 self.assertTrue(self.GetSyncInfo()['last synced'] == 'Just now')
49 # TODO(rsimha): Enable this check after http://crbug.com/78548 is fixed.
50 # self.assertTrue(self.GetSyncInfo()['updates received'] == 0)
49 51
50 52
51 if __name__ == '__main__': 53 if __name__ == '__main__':
52 pyauto_functional.Main() 54 pyauto_functional.Main()
OLDNEW
« no previous file with comments | « chrome/browser/automation/testing_automation_provider.cc ('k') | chrome/test/pyautolib/pyauto.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698