| OLD | NEW |
| 1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 _OS_NEGATIVE_FILTER['android:chrome'] + [ | 202 _OS_NEGATIVE_FILTER['android:chrome'] + [ |
| 203 # https://bugs.chromium.org/p/chromedriver/issues/detail?id=998 | 203 # https://bugs.chromium.org/p/chromedriver/issues/detail?id=998 |
| 204 'ImplicitWaitTest.testShouldImplicitlyWaitForASingleElement', | 204 'ImplicitWaitTest.testShouldImplicitlyWaitForASingleElement', |
| 205 ] | 205 ] |
| 206 ) | 206 ) |
| 207 | 207 |
| 208 _OS_NEGATIVE_FILTER['android:chromium'] = ( | 208 _OS_NEGATIVE_FILTER['android:chromium'] = ( |
| 209 _OS_NEGATIVE_FILTER['android:chrome'] + [ | 209 _OS_NEGATIVE_FILTER['android:chrome'] + [ |
| 210 'CorrectEventFiringTest.testShouldFireClickEventWhenClicking', | 210 'CorrectEventFiringTest.testShouldFireClickEventWhenClicking', |
| 211 'CorrectEventFiringTest.testShouldFireMouseDownEventWhenClicking', | 211 'CorrectEventFiringTest.testShouldFireMouseDownEventWhenClicking', |
| 212 # https://bugs.chromium.org/p/chromedriver/issues/detail?id=998 |
| 213 'ImplicitWaitTest.testShouldImplicitlyWaitForASingleElement', |
| 212 ] | 214 ] |
| 213 ) | 215 ) |
| 214 _OS_NEGATIVE_FILTER['android:chrome_beta'] = ( | 216 _OS_NEGATIVE_FILTER['android:chrome_beta'] = ( |
| 215 _OS_NEGATIVE_FILTER['android:chrome'] + [ | 217 _OS_NEGATIVE_FILTER['android:chrome'] + [ |
| 216 # https://code.google.com/p/chromedriver/issues/detail?id=1220 | 218 # https://code.google.com/p/chromedriver/issues/detail?id=1220 |
| 217 'BasicMouseInterfaceTest.testDragAndDrop', | 219 'BasicMouseInterfaceTest.testDragAndDrop', |
| 218 'BasicMouseInterfaceTest.testDraggingElementWithMouseFiresEvents', | 220 'BasicMouseInterfaceTest.testDraggingElementWithMouseFiresEvents', |
| 219 'BasicMouseInterfaceTest.testDraggingElementWithMouseMovesItToAnotherLis
t', | 221 'BasicMouseInterfaceTest.testDraggingElementWithMouseMovesItToAnotherLis
t', |
| 220 # https://bugs.chromium.org/p/chromedriver/issues/detail?id=998 | 222 # https://bugs.chromium.org/p/chromedriver/issues/detail?id=998 |
| 221 'ImplicitWaitTest.testShouldImplicitlyWaitForASingleElement', | 223 'ImplicitWaitTest.testShouldImplicitlyWaitForASingleElement', |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 | 273 |
| 272 Returns: | 274 Returns: |
| 273 Set of passed test names. | 275 Set of passed test names. |
| 274 """ | 276 """ |
| 275 filters = (_OS_NEGATIVE_FILTER[operating_system] + | 277 filters = (_OS_NEGATIVE_FILTER[operating_system] + |
| 276 _GetRevisionNegativeFilter(chrome_version)) | 278 _GetRevisionNegativeFilter(chrome_version)) |
| 277 passed = set(tests) | 279 passed = set(tests) |
| 278 for f in filters: | 280 for f in filters: |
| 279 passed.difference_update(set(t for t in tests if fnmatch.fnmatch(t, f))) | 281 passed.difference_update(set(t for t in tests if fnmatch.fnmatch(t, f))) |
| 280 return passed | 282 return passed |
| OLD | NEW |