| 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.*', | |
| 106 # https://bugs.chromium.org/p/chromedriver/issues/detail?id=1674 | 103 # https://bugs.chromium.org/p/chromedriver/issues/detail?id=1674 |
| 107 'WindowSwitchingTest.testShouldBeAbleToIterateOverAllOpenWindows', | 104 'WindowSwitchingTest.testShouldBeAbleToIterateOverAllOpenWindows', |
| 108 ] | 105 ] |
| 109 _REVISION_NEGATIVE_FILTER['57'] = ( | 106 _REVISION_NEGATIVE_FILTER['57'] = ( |
| 110 _REVISION_NEGATIVE_FILTER['HEAD'] + [ | 107 _REVISION_NEGATIVE_FILTER['HEAD'] + [ |
| 111 # https://bugs.chromium.org/p/chromedriver/issues/detail?id=1625 | 108 # https://bugs.chromium.org/p/chromedriver/issues/detail?id=1625 |
| 112 'TakesScreenshotTest.*', | 109 'TakesScreenshotTest.*', |
| 113 'WindowTest.*', | 110 'WindowTest.*', |
| 114 ] | 111 ] |
| 115 ) | 112 ) |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 319 Set of passed test names. | 316 Set of passed test names. |
| 320 """ | 317 """ |
| 321 filters = (_OS_NEGATIVE_FILTER[operating_system] + | 318 filters = (_OS_NEGATIVE_FILTER[operating_system] + |
| 322 _GetRevisionNegativeFilter(chrome_version) + | 319 _GetRevisionNegativeFilter(chrome_version) + |
| 323 _GetSpecificOsRevisionNegativeFilter(operating_system, | 320 _GetSpecificOsRevisionNegativeFilter(operating_system, |
| 324 chrome_version)) | 321 chrome_version)) |
| 325 passed = set(tests) | 322 passed = set(tests) |
| 326 for f in filters: | 323 for f in filters: |
| 327 passed.difference_update(set(t for t in tests if fnmatch.fnmatch(t, f))) | 324 passed.difference_update(set(t for t in tests if fnmatch.fnmatch(t, f))) |
| 328 return passed | 325 return passed |
| OLD | NEW |