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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 'TypingTest.testShouldNotTypeIntoElementsThatPreventKeyDownEvents', | 82 'TypingTest.testShouldNotTypeIntoElementsThatPreventKeyDownEvents', |
83 'TypingTest.testTypingIntoAnIFrameWithContentEditableOrDesignModeSet', | 83 'TypingTest.testTypingIntoAnIFrameWithContentEditableOrDesignModeSet', |
84 'UnexpectedAlertBehaviorTest.*', | 84 'UnexpectedAlertBehaviorTest.*', |
85 'VisibilityTest.testElementHiddenByOverflowXIsNotVisible', | 85 'VisibilityTest.testElementHiddenByOverflowXIsNotVisible', |
86 'VisibilityTest.testElementHiddenByOverflowYIsNotVisible', | 86 'VisibilityTest.testElementHiddenByOverflowYIsNotVisible', |
87 'VisibilityTest.tooSmallAWindowWithOverflowHiddenIsNotAProblem', | 87 'VisibilityTest.tooSmallAWindowWithOverflowHiddenIsNotAProblem', |
88 'WindowTest.*', | 88 'WindowTest.*', |
89 ] | 89 ] |
90 _REVISION_NEGATIVE_FILTER['28'] = [] + _REVISION_NEGATIVE_FILTER['HEAD'] | 90 _REVISION_NEGATIVE_FILTER['28'] = [] + _REVISION_NEGATIVE_FILTER['HEAD'] |
91 _REVISION_NEGATIVE_FILTER['27'] = [] + _REVISION_NEGATIVE_FILTER['HEAD'] | 91 _REVISION_NEGATIVE_FILTER['27'] = [] + _REVISION_NEGATIVE_FILTER['HEAD'] |
92 _REVISION_NEGATIVE_FILTER['26'] = [ | |
93 'AlertsTest.testHandlesTwoAlertsFromOneInteraction', | |
94 'AlertsTest.testShouldAllowAUserToSetTheValueOfAPrompt', | |
95 'UploadTest.testFileUploading', | |
96 'CorrectEventFiringTest.testUploadingFileShouldFireOnChangeEvent', | |
97 'FormHandlingTest.testShouldBeAbleToAlterTheContentsOfAFileUploadInputElemen
t', | |
98 'FormHandlingTest.testShouldBeAbleToUploadTheSameFileTwice', | |
99 'FormHandlingTest.testShouldBeAbleToSendKeysToAFileUploadInputElementInAnXht
mlDocument', | |
100 ] + _REVISION_NEGATIVE_FILTER['HEAD'] | |
101 | 92 |
102 _OS_NEGATIVE_FILTER = {} | 93 _OS_NEGATIVE_FILTER = {} |
103 _OS_NEGATIVE_FILTER['win'] = [ | 94 _OS_NEGATIVE_FILTER['win'] = [ |
104 # Flaky: https://code.google.com/p/chromedriver/issues/detail?id=282 | 95 # Flaky: https://code.google.com/p/chromedriver/issues/detail?id=282 |
105 'PageLoadingTest.testShouldNotHangIfDocumentOpenCallIsNeverFollowedByDocumen
tCloseCall', | 96 'PageLoadingTest.testShouldNotHangIfDocumentOpenCallIsNeverFollowedByDocumen
tCloseCall', |
106 ] | 97 ] |
107 _OS_NEGATIVE_FILTER['linux'] = [] | 98 _OS_NEGATIVE_FILTER['linux'] = [] |
108 _OS_NEGATIVE_FILTER['mac'] = [ | 99 _OS_NEGATIVE_FILTER['mac'] = [ |
109 # https://code.google.com/p/chromedriver/issues/detail?id=26 | 100 # https://code.google.com/p/chromedriver/issues/detail?id=26 |
110 'AlertsTest.testAlertShouldNotAllowAdditionalCommandsIfDismissed', | 101 'AlertsTest.testAlertShouldNotAllowAdditionalCommandsIfDismissed', |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 | 218 |
228 Returns: | 219 Returns: |
229 Set of passed test names. | 220 Set of passed test names. |
230 """ | 221 """ |
231 filters = (_OS_NEGATIVE_FILTER[operating_system] + | 222 filters = (_OS_NEGATIVE_FILTER[operating_system] + |
232 _REVISION_NEGATIVE_FILTER[chrome_version]) | 223 _REVISION_NEGATIVE_FILTER[chrome_version]) |
233 passed = set(tests) | 224 passed = set(tests) |
234 for f in filters: | 225 for f in filters: |
235 passed.difference_update(set(t for t in tests if fnmatch.fnmatch(t, f))) | 226 passed.difference_update(set(t for t in tests if fnmatch.fnmatch(t, f))) |
236 return passed | 227 return passed |
OLD | NEW |