OLD | NEW |
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 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 """Test expectation list for WebDriver Java acceptance tests. | 5 """Test expectation list for WebDriver Java acceptance tests. |
6 | 6 |
7 It is evaluated through Python. | 7 It is evaluated through Python. |
8 """ | 8 """ |
9 | 9 |
10 import fnmatch | 10 import fnmatch |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 'SelectElementTest.shouldAllowUserToDeselectOptionsByVisibleText', | 154 'SelectElementTest.shouldAllowUserToDeselectOptionsByVisibleText', |
155 'SessionHandlingTest.callingAnyOperationAfterClosingTheLastWindowShouldThrow
AnException', | 155 'SessionHandlingTest.callingAnyOperationAfterClosingTheLastWindowShouldThrow
AnException', |
156 'TakesScreenshotTest.testCaptureToBase64', | 156 'TakesScreenshotTest.testCaptureToBase64', |
157 'TakesScreenshotTest.testSaveScreenshotAsFile', | 157 'TakesScreenshotTest.testSaveScreenshotAsFile', |
158 'TextHandlingTest.testShouldBeAbleToEnterDatesAfterFillingInOtherValuesFirst
', | 158 'TextHandlingTest.testShouldBeAbleToEnterDatesAfterFillingInOtherValuesFirst
', |
159 'TextHandlingTest.testShouldBeAbleToSetMoreThanOneLineOfTextInATextArea', | 159 'TextHandlingTest.testShouldBeAbleToSetMoreThanOneLineOfTextInATextArea', |
160 'TextHandlingTest.testTextOfATextAreaShouldBeEqualToItsDefaultTextEvenAfterT
yping', | 160 'TextHandlingTest.testTextOfATextAreaShouldBeEqualToItsDefaultTextEvenAfterT
yping', |
161 'TouchFlickTest.*', | 161 'TouchFlickTest.*', |
162 'TouchScrollTest.*', | 162 'TouchScrollTest.*', |
163 'TouchSingleTapTest.*', | 163 'TouchSingleTapTest.*', |
| 164 # Passes locally but not on bots?? |
| 165 'TypingTest.testShouldFireKeyDownEvents', |
164 # Test is written using local files; doesn't work on Android. | 166 # Test is written using local files; doesn't work on Android. |
165 'UploadTest.testFileUploading', | 167 'UploadTest.testFileUploading', |
166 # Not applicable on Android. | 168 # Not applicable on Android. |
167 'WindowSwitchingTest.*', | 169 'WindowSwitchingTest.*', |
168 ] | 170 ] |
169 | 171 |
170 def GetPassedJavaTestFilter(operating_system, chrome_version): | 172 def GetPassedJavaTestFilter(operating_system, chrome_version): |
171 """Returns the test filter for running all passing tests. | 173 """Returns the test filter for running all passing tests. |
172 | 174 |
173 Args: | 175 Args: |
(...skipping 18 matching lines...) Expand all Loading... |
192 | 194 |
193 Returns: | 195 Returns: |
194 Set of passed test names. | 196 Set of passed test names. |
195 """ | 197 """ |
196 filters = (_OS_NEGATIVE_FILTER[operating_system] + | 198 filters = (_OS_NEGATIVE_FILTER[operating_system] + |
197 _REVISION_NEGATIVE_FILTER[chrome_version]) | 199 _REVISION_NEGATIVE_FILTER[chrome_version]) |
198 passed = set(tests) | 200 passed = set(tests) |
199 for f in filters: | 201 for f in filters: |
200 passed.difference_update(set(t for t in tests if fnmatch.fnmatch(t, f))) | 202 passed.difference_update(set(t for t in tests if fnmatch.fnmatch(t, f))) |
201 return passed | 203 return passed |
OLD | NEW |