OLD | NEW |
---|---|
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 """Annotations for python-driven tests.""" | 5 """Annotations for python-driven tests.""" |
6 | 6 |
7 import os | 7 import os |
8 | 8 |
9 | 9 |
10 class AnnotatedFunctions(object): | 10 class AnnotatedFunctions(object): |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
66 | 66 |
67 | 67 |
68 def MediumTest(function): | 68 def MediumTest(function): |
69 return AnnotatedFunctions._AddFunction('MediumTest', function) | 69 return AnnotatedFunctions._AddFunction('MediumTest', function) |
70 | 70 |
71 | 71 |
72 def LargeTest(function): | 72 def LargeTest(function): |
73 return AnnotatedFunctions._AddFunction('LargeTest', function) | 73 return AnnotatedFunctions._AddFunction('LargeTest', function) |
74 | 74 |
75 | 75 |
76 def EnormousTest(function): | |
Lei Zhang
2013/01/18 02:41:20
Should this be part of the CL that actually add th
| |
77 return AnnotatedFunctions._AddFunction('EnormousTest', function) | |
78 | |
79 | |
76 def FlakyTest(function): | 80 def FlakyTest(function): |
77 return AnnotatedFunctions._AddFunction('FlakyTest', function) | 81 return AnnotatedFunctions._AddFunction('FlakyTest', function) |
78 | 82 |
79 | 83 |
80 def DisabledTest(function): | 84 def DisabledTest(function): |
81 return AnnotatedFunctions._AddFunction('DisabledTest', function) | 85 return AnnotatedFunctions._AddFunction('DisabledTest', function) |
82 | 86 |
83 | 87 |
84 def Feature(feature_list): | 88 def Feature(feature_list): |
85 def _AddFeatures(function): | 89 def _AddFeatures(function): |
86 for feature in feature_list: | 90 for feature in feature_list: |
87 AnnotatedFunctions._AddFunction('Feature' + feature, function) | 91 AnnotatedFunctions._AddFunction('Feature' + feature, function) |
88 return AnnotatedFunctions._AddFunction('Feature', function) | 92 return AnnotatedFunctions._AddFunction('Feature', function) |
89 return _AddFeatures | 93 return _AddFeatures |
OLD | NEW |