| 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 'DragAndDropTest.testElementInDiv', | 99 'DragAndDropTest.testElementInDiv', |
| 100 # https://bugs.chromium.org/p/chromedriver/issues/detail?id=1503 | 100 # https://bugs.chromium.org/p/chromedriver/issues/detail?id=1503 |
| 101 'BasicMouseInterfaceTest.testDraggingElementWithMouseFiresEvents', | 101 'BasicMouseInterfaceTest.testDraggingElementWithMouseFiresEvents', |
| 102 'BasicMouseInterfaceTest.testDraggingElementWithMouseMovesItToAnotherList', | 102 'BasicMouseInterfaceTest.testDraggingElementWithMouseMovesItToAnotherList', |
| 103 # https://bugs.chromium.org/p/chromedriver/issues/detail?id=1625 | 103 # https://bugs.chromium.org/p/chromedriver/issues/detail?id=1625 |
| 104 'TakesScreenshotTest.*', | 104 'TakesScreenshotTest.*', |
| 105 'WindowTest.*', | 105 'WindowTest.*', |
| 106 # https://bugs.chromium.org/p/chromedriver/issues/detail?id=1674 | 106 # https://bugs.chromium.org/p/chromedriver/issues/detail?id=1674 |
| 107 'WindowSwitchingTest.testShouldBeAbleToIterateOverAllOpenWindows', | 107 'WindowSwitchingTest.testShouldBeAbleToIterateOverAllOpenWindows', |
| 108 ] | 108 ] |
| 109 _REVISION_NEGATIVE_FILTER['57'] = [ |
| 110 # https://bugs.chromium.org/p/chromedriver/issues/detail?id=1625 |
| 111 'TakesScreenshotTest.*', |
| 112 'WindowTest.*', |
| 113 ] |
| 109 | 114 |
| 110 _OS_NEGATIVE_FILTER = {} | 115 _OS_NEGATIVE_FILTER = {} |
| 111 _OS_NEGATIVE_FILTER['win'] = [ | 116 _OS_NEGATIVE_FILTER['win'] = [ |
| 112 # Flaky: https://code.google.com/p/chromedriver/issues/detail?id=373 | 117 # Flaky: https://code.google.com/p/chromedriver/issues/detail?id=373 |
| 113 'RenderedWebElementTest.testHoverPersists', | 118 'RenderedWebElementTest.testHoverPersists', |
| 114 'RenderedWebElementTest.canClickOnASuckerFishStyleMenu', | 119 'RenderedWebElementTest.canClickOnASuckerFishStyleMenu', |
| 115 # Flaky: https://code.google.com/p/chromedriver/issues/detail?id=416 | 120 # Flaky: https://code.google.com/p/chromedriver/issues/detail?id=416 |
| 116 'TakesScreenshotTest.testShouldCaptureScreenshotAtFramePageAfterSwitching', | 121 'TakesScreenshotTest.testShouldCaptureScreenshotAtFramePageAfterSwitching', |
| 117 'TakesScreenshotTest.testShouldCaptureScreenshotAtFramePage', | 122 'TakesScreenshotTest.testShouldCaptureScreenshotAtFramePage', |
| 118 ] | 123 ] |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 322 Set of passed test names. | 327 Set of passed test names. |
| 323 """ | 328 """ |
| 324 filters = (_OS_NEGATIVE_FILTER[operating_system] + | 329 filters = (_OS_NEGATIVE_FILTER[operating_system] + |
| 325 _GetRevisionNegativeFilter(chrome_version) + | 330 _GetRevisionNegativeFilter(chrome_version) + |
| 326 _GetSpecificOsRevisionNegativeFilter(operating_system, | 331 _GetSpecificOsRevisionNegativeFilter(operating_system, |
| 327 chrome_version)) | 332 chrome_version)) |
| 328 passed = set(tests) | 333 passed = set(tests) |
| 329 for f in filters: | 334 for f in filters: |
| 330 passed.difference_update(set(t for t in tests if fnmatch.fnmatch(t, f))) | 335 passed.difference_update(set(t for t in tests if fnmatch.fnmatch(t, f))) |
| 331 return passed | 336 return passed |
| OLD | NEW |