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 24 matching lines...) Expand all Loading... |
35 def TearDown(self): | 35 def TearDown(self): |
36 super(SyncTest, self).TearDown() | 36 super(SyncTest, self).TearDown() |
37 self.test_server.TearDown() | 37 self.test_server.TearDown() |
38 | 38 |
39 def _RunSyncTests(self, test_names): | 39 def _RunSyncTests(self, test_names): |
40 full_names = [] | 40 full_names = [] |
41 for test_name in test_names: | 41 for test_name in test_names: |
42 full_names.append('SyncTest.' + test_name) | 42 full_names.append('SyncTest.' + test_name) |
43 return self._RunJavaTestFilters(full_names, self.additional_flags) | 43 return self._RunJavaTestFilters(full_names, self.additional_flags) |
44 | 44 |
45 # Disabled for http://crbug.com/329757 | 45 @tests_annotations.Feature(['Sync']) |
46 # @tests_annotations.Feature(['Sync']) | 46 @tests_annotations.EnormousTest |
47 # @tests_annotations.EnormousTest | |
48 @tests_annotations.DisabledTest | |
49 def testGetAboutSyncInfoYieldsValidData(self): | 47 def testGetAboutSyncInfoYieldsValidData(self): |
50 java_tests = ['testGetAboutSyncInfoYieldsValidData'] | 48 java_tests = ['testGetAboutSyncInfoYieldsValidData'] |
51 return self._RunSyncTests(java_tests) | 49 return self._RunSyncTests(java_tests) |
52 | 50 |
53 # Disabled for http://crbug.com/309997 | 51 @tests_annotations.Feature(['Sync']) |
54 # @tests_annotations.Feature(['Sync']) | 52 @tests_annotations.EnormousTest |
55 # @tests_annotations.EnormousTest | |
56 @tests_annotations.DisabledTest | |
57 def testAboutSyncPageDisplaysCurrentSyncStatus(self): | 53 def testAboutSyncPageDisplaysCurrentSyncStatus(self): |
58 java_tests = ['testAboutSyncPageDisplaysCurrentSyncStatus'] | 54 java_tests = ['testAboutSyncPageDisplaysCurrentSyncStatus'] |
59 return self._RunSyncTests(java_tests) | 55 return self._RunSyncTests(java_tests) |
60 | 56 |
61 # Disabled for http://crbug.com/311091 | 57 @tests_annotations.Feature(['Sync']) |
62 # @tests_annotations.Feature(['Sync']) | 58 @tests_annotations.EnormousTest |
63 # @tests_annotations.EnormousTest | |
64 @tests_annotations.DisabledTest | |
65 def testDisableAndEnableSync(self): | 59 def testDisableAndEnableSync(self): |
66 java_tests = ['testDisableAndEnableSync'] | 60 java_tests = ['testDisableAndEnableSync'] |
67 return self._RunSyncTests(java_tests) | 61 return self._RunSyncTests(java_tests) |
OLD | NEW |