OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright 2013 The Chromium Authors. All rights reserved. | 2 # Copyright 2013 The Chromium Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 """End to end tests for ChromeDriver.""" | 6 """End to end tests for ChromeDriver.""" |
7 | 7 |
8 import base64 | 8 import base64 |
9 import json | 9 import json |
10 import math | 10 import math |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 # This test is flaky since it uses setTimeout. | 50 # This test is flaky since it uses setTimeout. |
51 # Re-enable once crbug.com/177511 is fixed and we can remove setTimeout. | 51 # Re-enable once crbug.com/177511 is fixed and we can remove setTimeout. |
52 'ChromeDriverTest.testAlert', | 52 'ChromeDriverTest.testAlert', |
53 ] | 53 ] |
54 | 54 |
55 _VERSION_SPECIFIC_FILTER = {} | 55 _VERSION_SPECIFIC_FILTER = {} |
56 _VERSION_SPECIFIC_FILTER['HEAD'] = [ | 56 _VERSION_SPECIFIC_FILTER['HEAD'] = [ |
57 # https://code.google.com/p/chromedriver/issues/detail?id=913 | 57 # https://code.google.com/p/chromedriver/issues/detail?id=913 |
58 'ChromeDriverTest.testChromeDriverReceiveAndSendLargeData', | 58 'ChromeDriverTest.testChromeDriverReceiveAndSendLargeData', |
59 ] | 59 ] |
| 60 _VERSION_SPECIFIC_FILTER['37'] = [ |
| 61 # https://code.google.com/p/chromedriver/issues/detail?id=954 |
| 62 'MobileEmulationCapabilityTest.testClickElement', |
| 63 'MobileEmulationCapabilityTest.testHoverOverElement', |
| 64 'MobileEmulationCapabilityTest.testSingleTapElement', |
| 65 ] |
| 66 _VERSION_SPECIFIC_FILTER['36'] = [ |
| 67 # https://code.google.com/p/chromedriver/issues/detail?id=954 |
| 68 'MobileEmulationCapabilityTest.testClickElement', |
| 69 'MobileEmulationCapabilityTest.testHoverOverElement', |
| 70 'MobileEmulationCapabilityTest.testSingleTapElement', |
| 71 ] |
60 | 72 |
61 _OS_SPECIFIC_FILTER = {} | 73 _OS_SPECIFIC_FILTER = {} |
62 _OS_SPECIFIC_FILTER['win'] = [ | 74 _OS_SPECIFIC_FILTER['win'] = [ |
63 # https://code.google.com/p/chromedriver/issues/detail?id=214 | 75 # https://code.google.com/p/chromedriver/issues/detail?id=214 |
64 'ChromeDriverTest.testCloseWindow', | 76 'ChromeDriverTest.testCloseWindow', |
65 # https://code.google.com/p/chromedriver/issues/detail?id=299 | 77 # https://code.google.com/p/chromedriver/issues/detail?id=299 |
66 'ChromeLogPathCapabilityTest.testChromeLogPath', | 78 'ChromeLogPathCapabilityTest.testChromeLogPath', |
67 ] | 79 ] |
68 _OS_SPECIFIC_FILTER['linux'] = [ | 80 _OS_SPECIFIC_FILTER['linux'] = [ |
69 # Xvfb doesn't support maximization. | 81 # Xvfb doesn't support maximization. |
(...skipping 1217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1287 | 1299 |
1288 all_tests_suite = unittest.defaultTestLoader.loadTestsFromModule( | 1300 all_tests_suite = unittest.defaultTestLoader.loadTestsFromModule( |
1289 sys.modules[__name__]) | 1301 sys.modules[__name__]) |
1290 tests = unittest_util.FilterTestSuite(all_tests_suite, options.filter) | 1302 tests = unittest_util.FilterTestSuite(all_tests_suite, options.filter) |
1291 ChromeDriverTest.GlobalSetUp() | 1303 ChromeDriverTest.GlobalSetUp() |
1292 MobileEmulationCapabilityTest.GlobalSetUp() | 1304 MobileEmulationCapabilityTest.GlobalSetUp() |
1293 result = unittest.TextTestRunner(stream=sys.stdout, verbosity=2).run(tests) | 1305 result = unittest.TextTestRunner(stream=sys.stdout, verbosity=2).run(tests) |
1294 ChromeDriverTest.GlobalTearDown() | 1306 ChromeDriverTest.GlobalTearDown() |
1295 MobileEmulationCapabilityTest.GlobalTearDown() | 1307 MobileEmulationCapabilityTest.GlobalTearDown() |
1296 sys.exit(len(result.failures) + len(result.errors)) | 1308 sys.exit(len(result.failures) + len(result.errors)) |
OLD | NEW |