| OLD | NEW |
| 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 Loading... |
| 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() |
| OLD | NEW |