| 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 ] | 66 ] |
| 67 | 67 |
| 68 _VERSION_SPECIFIC_FILTER = {} | 68 _VERSION_SPECIFIC_FILTER = {} |
| 69 _VERSION_SPECIFIC_FILTER['HEAD'] = [ | 69 _VERSION_SPECIFIC_FILTER['HEAD'] = [ |
| 70 # https://code.google.com/p/chromedriver/issues/detail?id=992 | 70 # https://code.google.com/p/chromedriver/issues/detail?id=992 |
| 71 'ChromeDownloadDirTest.testDownloadDirectoryOverridesExistingPreferences', | 71 'ChromeDownloadDirTest.testDownloadDirectoryOverridesExistingPreferences', |
| 72 # https://bugs.chromium.org/p/chromedriver/issues/detail?id=1503 | 72 # https://bugs.chromium.org/p/chromedriver/issues/detail?id=1503 |
| 73 'ChromeDriverTest.testShadowDomHover', | 73 'ChromeDriverTest.testShadowDomHover', |
| 74 'ChromeDriverTest.testMouseMoveTo', | 74 'ChromeDriverTest.testMouseMoveTo', |
| 75 'ChromeDriverTest.testHoverOverElement', | 75 'ChromeDriverTest.testHoverOverElement', |
| 76 # https://bugs.chromium.org/p/chromedriver/issues/detail?id=1625 |
| 77 'ChromeDriverTest.testWindowMaximize', |
| 78 'ChromeDriverTest.testWindowPosition', |
| 79 'ChromeDriverTest.testWindowSize', |
| 80 'ChromeExtensionsCapabilityTest.testCanInspectBackgroundPage', |
| 81 'ChromeExtensionsCapabilityTest.testCanLaunchApp', |
| 82 'MobileEmulationCapabilityTest.testDeviceMetricsWithStandardWidth', |
| 76 ] | 83 ] |
| 77 _VERSION_SPECIFIC_FILTER['55'] = [ | 84 _VERSION_SPECIFIC_FILTER['55'] = [ |
| 78 # https://bugs.chromium.org/p/chromedriver/issues/detail?id=1503 | 85 # https://bugs.chromium.org/p/chromedriver/issues/detail?id=1503 |
| 79 'ChromeDriverTest.testShadowDomHover', | 86 'ChromeDriverTest.testShadowDomHover', |
| 80 'ChromeDriverTest.testMouseMoveTo', | 87 'ChromeDriverTest.testMouseMoveTo', |
| 81 'ChromeDriverTest.testHoverOverElement', | 88 'ChromeDriverTest.testHoverOverElement', |
| 82 ] | 89 ] |
| 83 | 90 |
| 84 _OS_SPECIFIC_FILTER = {} | 91 _OS_SPECIFIC_FILTER = {} |
| 85 _OS_SPECIFIC_FILTER['win'] = [ | 92 _OS_SPECIFIC_FILTER['win'] = [ |
| (...skipping 2295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2381 | 2388 |
| 2382 all_tests_suite = unittest.defaultTestLoader.loadTestsFromModule( | 2389 all_tests_suite = unittest.defaultTestLoader.loadTestsFromModule( |
| 2383 sys.modules[__name__]) | 2390 sys.modules[__name__]) |
| 2384 tests = unittest_util.FilterTestSuite(all_tests_suite, options.filter) | 2391 tests = unittest_util.FilterTestSuite(all_tests_suite, options.filter) |
| 2385 ChromeDriverTest.GlobalSetUp() | 2392 ChromeDriverTest.GlobalSetUp() |
| 2386 MobileEmulationCapabilityTest.GlobalSetUp() | 2393 MobileEmulationCapabilityTest.GlobalSetUp() |
| 2387 result = unittest.TextTestRunner(stream=sys.stdout, verbosity=2).run(tests) | 2394 result = unittest.TextTestRunner(stream=sys.stdout, verbosity=2).run(tests) |
| 2388 ChromeDriverTest.GlobalTearDown() | 2395 ChromeDriverTest.GlobalTearDown() |
| 2389 MobileEmulationCapabilityTest.GlobalTearDown() | 2396 MobileEmulationCapabilityTest.GlobalTearDown() |
| 2390 sys.exit(len(result.failures) + len(result.errors)) | 2397 sys.exit(len(result.failures) + len(result.errors)) |
| OLD | NEW |