| 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 'PageLoadingTest.testShouldBeAbleToAccessPagesWithAnInsecureSslCertificate', | 93 'PageLoadingTest.testShouldBeAbleToAccessPagesWithAnInsecureSslCertificate', |
| 94 # Flaky: https://code.google.com/p/chromedriver/issues/detail?id=1113 | 94 # Flaky: https://code.google.com/p/chromedriver/issues/detail?id=1113 |
| 95 'FrameSwitchingTest.testShouldNotSwitchMagicallyToTheTopWindow', | 95 'FrameSwitchingTest.testShouldNotSwitchMagicallyToTheTopWindow', |
| 96 # Flaky: https://code.google.com/p/chromedriver/issues/detail?id=1151 | 96 # Flaky: https://code.google.com/p/chromedriver/issues/detail?id=1151 |
| 97 'DragAndDropTest.testDragAndDrop', | 97 'DragAndDropTest.testDragAndDrop', |
| 98 'DragAndDropTest.testShouldAllowUsersToDragAndDropToElementsOffTheCurrentVie
wPort', | 98 'DragAndDropTest.testShouldAllowUsersToDragAndDropToElementsOffTheCurrentVie
wPort', |
| 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 |
| 104 'TakesScreenshotTest.*', |
| 105 'WindowTest.*', |
| 103 ] | 106 ] |
| 104 | 107 |
| 105 _OS_NEGATIVE_FILTER = {} | 108 _OS_NEGATIVE_FILTER = {} |
| 106 _OS_NEGATIVE_FILTER['win'] = [ | 109 _OS_NEGATIVE_FILTER['win'] = [ |
| 107 # Flaky: https://code.google.com/p/chromedriver/issues/detail?id=373 | 110 # Flaky: https://code.google.com/p/chromedriver/issues/detail?id=373 |
| 108 'RenderedWebElementTest.testHoverPersists', | 111 'RenderedWebElementTest.testHoverPersists', |
| 109 'RenderedWebElementTest.canClickOnASuckerFishStyleMenu', | 112 'RenderedWebElementTest.canClickOnASuckerFishStyleMenu', |
| 110 # Flaky: https://code.google.com/p/chromedriver/issues/detail?id=416 | 113 # Flaky: https://code.google.com/p/chromedriver/issues/detail?id=416 |
| 111 'TakesScreenshotTest.testShouldCaptureScreenshotAtFramePageAfterSwitching', | 114 'TakesScreenshotTest.testShouldCaptureScreenshotAtFramePageAfterSwitching', |
| 112 'TakesScreenshotTest.testShouldCaptureScreenshotAtFramePage', | 115 'TakesScreenshotTest.testShouldCaptureScreenshotAtFramePage', |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 310 Set of passed test names. | 313 Set of passed test names. |
| 311 """ | 314 """ |
| 312 filters = (_OS_NEGATIVE_FILTER[operating_system] + | 315 filters = (_OS_NEGATIVE_FILTER[operating_system] + |
| 313 _GetRevisionNegativeFilter(chrome_version) + | 316 _GetRevisionNegativeFilter(chrome_version) + |
| 314 _GetSpecificOsRevisionNegativeFilter(operating_system, | 317 _GetSpecificOsRevisionNegativeFilter(operating_system, |
| 315 chrome_version)) | 318 chrome_version)) |
| 316 passed = set(tests) | 319 passed = set(tests) |
| 317 for f in filters: | 320 for f in filters: |
| 318 passed.difference_update(set(t for t in tests if fnmatch.fnmatch(t, f))) | 321 passed.difference_update(set(t for t in tests if fnmatch.fnmatch(t, f))) |
| 319 return passed | 322 return passed |
| OLD | NEW |