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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 'FrameSwitchingTest.testShouldNotSwitchMagicallyToTheTopWindow', | 94 'FrameSwitchingTest.testShouldNotSwitchMagicallyToTheTopWindow', |
95 # Flaky: https://bugs.chromium.org/p/chromedriver/issues/detail?id=1151 | 95 # Flaky: https://bugs.chromium.org/p/chromedriver/issues/detail?id=1151 |
96 'DragAndDropTest.testDragAndDrop', | 96 'DragAndDropTest.testDragAndDrop', |
97 'DragAndDropTest.testShouldAllowUsersToDragAndDropToElementsOffTheCurrentVie
wPort', | 97 'DragAndDropTest.testShouldAllowUsersToDragAndDropToElementsOffTheCurrentVie
wPort', |
98 'DragAndDropTest.testElementInDiv', | 98 'DragAndDropTest.testElementInDiv', |
99 # https://bugs.chromium.org/p/chromedriver/issues/detail?id=1503 | 99 # https://bugs.chromium.org/p/chromedriver/issues/detail?id=1503 |
100 'BasicMouseInterfaceTest.testDraggingElementWithMouseFiresEvents', | 100 'BasicMouseInterfaceTest.testDraggingElementWithMouseFiresEvents', |
101 'BasicMouseInterfaceTest.testDraggingElementWithMouseMovesItToAnotherList', | 101 'BasicMouseInterfaceTest.testDraggingElementWithMouseMovesItToAnotherList', |
102 # https://bugs.chromium.org/p/chromedriver/issues/detail?id=1674 | 102 # https://bugs.chromium.org/p/chromedriver/issues/detail?id=1674 |
103 'WindowSwitchingTest.testShouldBeAbleToIterateOverAllOpenWindows', | 103 'WindowSwitchingTest.testShouldBeAbleToIterateOverAllOpenWindows', |
104 # https://bugs.chromium.org/p/chromedriver/issues/detail?id=1792 | |
105 'AlertsTest.testPromptShouldUseDefaultValueIfNoKeysSent', | |
106 'UnexpectedAlertBehaviorTest.canAcceptUnhandledAlert', | |
107 'UnexpectedAlertBehaviorTest.canSpecifyUnhandledAlertBehaviourUsingCapabilit
ies', | |
108 ] | 104 ] |
109 _REVISION_NEGATIVE_FILTER['58'] = ( | 105 _REVISION_NEGATIVE_FILTER['58'] = ( |
110 _REVISION_NEGATIVE_FILTER['HEAD'] + [ | 106 _REVISION_NEGATIVE_FILTER['HEAD'] + [ |
111 # https://bugs.chromium.org/p/chromedriver/issues/detail?id=1674 | 107 # https://bugs.chromium.org/p/chromedriver/issues/detail?id=1674 |
112 'WindowSwitchingTest.testShouldBeAbleToIterateOverAllOpenWindows', | 108 'WindowSwitchingTest.testShouldBeAbleToIterateOverAllOpenWindows', |
113 ] | 109 ] |
114 ) | 110 ) |
115 _REVISION_NEGATIVE_FILTER['57'] = ( | 111 _REVISION_NEGATIVE_FILTER['57'] = ( |
116 _REVISION_NEGATIVE_FILTER['HEAD'] + [ | 112 _REVISION_NEGATIVE_FILTER['HEAD'] + [ |
117 # https://bugs.chromium.org/p/chromedriver/issues/detail?id=1625 | 113 # https://bugs.chromium.org/p/chromedriver/issues/detail?id=1625 |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
330 Set of passed test names. | 326 Set of passed test names. |
331 """ | 327 """ |
332 filters = (_OS_NEGATIVE_FILTER[operating_system] + | 328 filters = (_OS_NEGATIVE_FILTER[operating_system] + |
333 _GetRevisionNegativeFilter(chrome_version) + | 329 _GetRevisionNegativeFilter(chrome_version) + |
334 _GetSpecificOsRevisionNegativeFilter(operating_system, | 330 _GetSpecificOsRevisionNegativeFilter(operating_system, |
335 chrome_version)) | 331 chrome_version)) |
336 passed = set(tests) | 332 passed = set(tests) |
337 for f in filters: | 333 for f in filters: |
338 passed.difference_update(set(t for t in tests if fnmatch.fnmatch(t, f))) | 334 passed.difference_update(set(t for t in tests if fnmatch.fnmatch(t, f))) |
339 return passed | 335 return passed |
OLD | NEW |