| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 # Copyright 2013 The Chromium Authors. All rights reserved. | 2 # Copyright 2013 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 """Host-driven Java tests which exercise sync functionality.""" | 6 """Host-driven Java tests which exercise sync functionality.""" |
| 7 | 7 |
| 8 from pylib import constants | 8 from pylib import constants |
| 9 from pylib.host_driven import test_case | 9 from pylib.host_driven import test_case |
| 10 from pylib.host_driven import test_server | 10 from pylib.host_driven import test_server |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 def TearDown(self): | 36 def TearDown(self): |
| 37 super(SyncTest, self).TearDown() | 37 super(SyncTest, self).TearDown() |
| 38 self.test_server.TearDown() | 38 self.test_server.TearDown() |
| 39 | 39 |
| 40 def _RunSyncTests(self, test_names): | 40 def _RunSyncTests(self, test_names): |
| 41 full_names = [] | 41 full_names = [] |
| 42 for test_name in test_names: | 42 for test_name in test_names: |
| 43 full_names.append('SyncTest.' + test_name) | 43 full_names.append('SyncTest.' + test_name) |
| 44 return self._RunJavaTestFilters(full_names, self.additional_flags) | 44 return self._RunJavaTestFilters(full_names, self.additional_flags) |
| 45 | 45 |
| 46 @tests_annotations.Feature(['Sync']) | 46 # http://crbug.com/348951 |
| 47 @tests_annotations.EnormousTest | 47 # @tests_annotations.Feature(['Sync']) |
| 48 # @tests_annotations.EnormousTest |
| 49 @tests_annotations.DisabledTest |
| 48 def testGetAboutSyncInfoYieldsValidData(self): | 50 def testGetAboutSyncInfoYieldsValidData(self): |
| 49 java_tests = ['testGetAboutSyncInfoYieldsValidData'] | 51 java_tests = ['testGetAboutSyncInfoYieldsValidData'] |
| 50 return self._RunSyncTests(java_tests) | 52 return self._RunSyncTests(java_tests) |
| 51 | 53 |
| 52 # http://crbug.com/348117 | 54 # http://crbug.com/348117 |
| 53 # @tests_annotations.Feature(['Sync']) | 55 # @tests_annotations.Feature(['Sync']) |
| 54 # @tests_annotations.EnormousTest | 56 # @tests_annotations.EnormousTest |
| 55 @tests_annotations.DisabledTest | 57 @tests_annotations.DisabledTest |
| 56 def testAboutSyncPageDisplaysCurrentSyncStatus(self): | 58 def testAboutSyncPageDisplaysCurrentSyncStatus(self): |
| 57 java_tests = ['testAboutSyncPageDisplaysCurrentSyncStatus'] | 59 java_tests = ['testAboutSyncPageDisplaysCurrentSyncStatus'] |
| 58 return self._RunSyncTests(java_tests) | 60 return self._RunSyncTests(java_tests) |
| 59 | 61 |
| 60 @tests_annotations.Feature(['Sync']) | 62 # http://crbug.com/348951 |
| 61 @tests_annotations.EnormousTest | 63 # @tests_annotations.Feature(['Sync']) |
| 64 # @tests_annotations.EnormousTest |
| 65 @tests_annotations.DisabledTest |
| 62 def testDisableAndEnableSync(self): | 66 def testDisableAndEnableSync(self): |
| 63 java_tests = ['testDisableAndEnableSync'] | 67 java_tests = ['testDisableAndEnableSync'] |
| 64 return self._RunSyncTests(java_tests) | 68 return self._RunSyncTests(java_tests) |
| OLD | NEW |