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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 # https://bugs.chromium.org/p/chromedriver/issues/detail?id=1503 | 66 # https://bugs.chromium.org/p/chromedriver/issues/detail?id=1503 |
67 'ChromeDriverTest.testShadowDomHover', | 67 'ChromeDriverTest.testShadowDomHover', |
68 'ChromeDriverTest.testMouseMoveTo', | 68 'ChromeDriverTest.testMouseMoveTo', |
69 'ChromeDriverTest.testHoverOverElement', | 69 'ChromeDriverTest.testHoverOverElement', |
70 # https://bugs.chromium.org/p/chromedriver/issues/detail?id=833 | 70 # https://bugs.chromium.org/p/chromedriver/issues/detail?id=833 |
71 'ChromeDriverTest.testAlertOnNewWindow', | 71 'ChromeDriverTest.testAlertOnNewWindow', |
72 ] | 72 ] |
73 | 73 |
74 _VERSION_SPECIFIC_FILTER = {} | 74 _VERSION_SPECIFIC_FILTER = {} |
75 _VERSION_SPECIFIC_FILTER['HEAD'] = [ | 75 _VERSION_SPECIFIC_FILTER['HEAD'] = [ |
| 76 # https://bugs.chromium.org/p/chromedriver/issues/detail?id=1819 |
| 77 'ChromeExtensionsCapabilityTest.testIFrameWithExtensionsSource', |
76 ] | 78 ] |
77 _VERSION_SPECIFIC_FILTER['58'] = [ | 79 _VERSION_SPECIFIC_FILTER['58'] = [ |
78 # https://bugs.chromium.org/p/chromedriver/issues/detail?id=1673 | 80 # https://bugs.chromium.org/p/chromedriver/issues/detail?id=1673 |
79 'ChromeDriverPageLoadTimeoutTest.testPageLoadTimeoutCrossDomain', | 81 'ChromeDriverPageLoadTimeoutTest.testPageLoadTimeoutCrossDomain', |
80 ] | 82 ] |
81 _VERSION_SPECIFIC_FILTER['57'] = [ | 83 _VERSION_SPECIFIC_FILTER['57'] = [ |
82 # https://bugs.chromium.org/p/chromedriver/issues/detail?id=1625 | 84 # https://bugs.chromium.org/p/chromedriver/issues/detail?id=1625 |
83 'ChromeDriverTest.testWindowMaximize', | 85 'ChromeDriverTest.testWindowMaximize', |
84 'ChromeDriverTest.testWindowPosition', | 86 'ChromeDriverTest.testWindowPosition', |
85 'ChromeDriverTest.testWindowSize', | 87 'ChromeDriverTest.testWindowSize', |
(...skipping 2399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2485 | 2487 |
2486 all_tests_suite = unittest.defaultTestLoader.loadTestsFromModule( | 2488 all_tests_suite = unittest.defaultTestLoader.loadTestsFromModule( |
2487 sys.modules[__name__]) | 2489 sys.modules[__name__]) |
2488 tests = unittest_util.FilterTestSuite(all_tests_suite, options.filter) | 2490 tests = unittest_util.FilterTestSuite(all_tests_suite, options.filter) |
2489 ChromeDriverTest.GlobalSetUp() | 2491 ChromeDriverTest.GlobalSetUp() |
2490 MobileEmulationCapabilityTest.GlobalSetUp() | 2492 MobileEmulationCapabilityTest.GlobalSetUp() |
2491 result = unittest.TextTestRunner(stream=sys.stdout, verbosity=2).run(tests) | 2493 result = unittest.TextTestRunner(stream=sys.stdout, verbosity=2).run(tests) |
2492 ChromeDriverTest.GlobalTearDown() | 2494 ChromeDriverTest.GlobalTearDown() |
2493 MobileEmulationCapabilityTest.GlobalTearDown() | 2495 MobileEmulationCapabilityTest.GlobalTearDown() |
2494 sys.exit(len(result.failures) + len(result.errors)) | 2496 sys.exit(len(result.failures) + len(result.errors)) |
OLD | NEW |