OLD | NEW |
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 | 106 |
107 _OS_NEGATIVE_FILTER = {} | 107 _OS_NEGATIVE_FILTER = {} |
108 _OS_NEGATIVE_FILTER['win'] = [ | 108 _OS_NEGATIVE_FILTER['win'] = [ |
109 # Flaky: https://code.google.com/p/chromedriver/issues/detail?id=282 | 109 # Flaky: https://code.google.com/p/chromedriver/issues/detail?id=282 |
110 'PageLoadingTest.testShouldNotHangIfDocumentOpenCallIsNeverFollowedByDocumen
tCloseCall', | 110 'PageLoadingTest.testShouldNotHangIfDocumentOpenCallIsNeverFollowedByDocumen
tCloseCall', |
111 # Flaky: https://code.google.com/p/chromedriver/issues/detail?id=373 | 111 # Flaky: https://code.google.com/p/chromedriver/issues/detail?id=373 |
112 'RenderedWebElementTest.testHoverPersists', | 112 'RenderedWebElementTest.testHoverPersists', |
113 'RenderedWebElementTest.canClickOnASuckerFishStyleMenu', | 113 'RenderedWebElementTest.canClickOnASuckerFishStyleMenu', |
114 # Flaky: https://code.google.com/p/chromedriver/issues/detail?id=416 | 114 # Flaky: https://code.google.com/p/chromedriver/issues/detail?id=416 |
115 'TakesScreenshotTest.testShouldCaptureScreenshotAtIFramePageAfterSwitching', | 115 'TakesScreenshotTest.testShouldCaptureScreenshotAtIFramePageAfterSwitching', |
| 116 'TakesScreenshotTest.testShouldCaptureScreenshotAtFramePage', |
116 ] | 117 ] |
117 _OS_NEGATIVE_FILTER['linux'] = [] | 118 _OS_NEGATIVE_FILTER['linux'] = [] |
118 _OS_NEGATIVE_FILTER['mac'] = [ | 119 _OS_NEGATIVE_FILTER['mac'] = [ |
119 # https://code.google.com/p/chromedriver/issues/detail?id=26 | 120 # https://code.google.com/p/chromedriver/issues/detail?id=26 |
120 'AlertsTest.testAlertShouldNotAllowAdditionalCommandsIfDismissed', | 121 'AlertsTest.testAlertShouldNotAllowAdditionalCommandsIfDismissed', |
121 'AlertsTest.testShouldAllowUsersToDismissAnAlertManually', | 122 'AlertsTest.testShouldAllowUsersToDismissAnAlertManually', |
122 'FormHandlingTest.handleFormWithJavascriptAction', | 123 'FormHandlingTest.handleFormWithJavascriptAction', |
123 # Flaky: https://code.google.com/p/chromedriver/issues/detail?id=354 | 124 # Flaky: https://code.google.com/p/chromedriver/issues/detail?id=354 |
124 'AlertsTest.testShouldAllowUsersToAcceptAnAlertInAFrame', | 125 'AlertsTest.testShouldAllowUsersToAcceptAnAlertInAFrame', |
125 # Flaky: https://code.google.com/p/chromedriver/issues/detail?id=375 | 126 # Flaky: https://code.google.com/p/chromedriver/issues/detail?id=375 |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 | 214 |
214 Returns: | 215 Returns: |
215 Set of passed test names. | 216 Set of passed test names. |
216 """ | 217 """ |
217 filters = (_OS_NEGATIVE_FILTER[operating_system] + | 218 filters = (_OS_NEGATIVE_FILTER[operating_system] + |
218 _GetRevisionNegativeFilter(chrome_version)) | 219 _GetRevisionNegativeFilter(chrome_version)) |
219 passed = set(tests) | 220 passed = set(tests) |
220 for f in filters: | 221 for f in filters: |
221 passed.difference_update(set(t for t in tests if fnmatch.fnmatch(t, f))) | 222 passed.difference_update(set(t for t in tests if fnmatch.fnmatch(t, f))) |
222 return passed | 223 return passed |
OLD | NEW |