OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 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 optparse | 9 import optparse |
10 import os | 10 import os |
(...skipping 28 matching lines...) Expand all Loading... |
39 _DESKTOP_OS_SPECIFIC_FILTER = [ | 39 _DESKTOP_OS_SPECIFIC_FILTER = [ |
40 # https://code.google.com/p/chromedriver/issues/detail?id=214 | 40 # https://code.google.com/p/chromedriver/issues/detail?id=214 |
41 'ChromeDriverTest.testCloseWindow', | 41 'ChromeDriverTest.testCloseWindow', |
42 # https://code.google.com/p/chromedriver/issues/detail?id=299 | 42 # https://code.google.com/p/chromedriver/issues/detail?id=299 |
43 'ChromeLogPathCapabilityTest.testChromeLogPath', | 43 'ChromeLogPathCapabilityTest.testChromeLogPath', |
44 ] | 44 ] |
45 elif util.IsLinux(): | 45 elif util.IsLinux(): |
46 _DESKTOP_OS_SPECIFIC_FILTER = [ | 46 _DESKTOP_OS_SPECIFIC_FILTER = [ |
47 # Xvfb doesn't support maximization. | 47 # Xvfb doesn't support maximization. |
48 'ChromeDriverTest.testWindowMaximize', | 48 'ChromeDriverTest.testWindowMaximize', |
| 49 # https://code.google.com/p/chromedriver/issues/detail?id=302 |
| 50 'ChromeDriverTest.testWindowPosition', |
| 51 'ChromeDriverTest.testWindowSize', |
49 ] | 52 ] |
50 | 53 |
51 | 54 |
52 _DESKTOP_NEGATIVE_FILTER = {} | 55 _DESKTOP_NEGATIVE_FILTER = {} |
53 _DESKTOP_NEGATIVE_FILTER['HEAD'] = ( | 56 _DESKTOP_NEGATIVE_FILTER['HEAD'] = ( |
54 _DESKTOP_OS_SPECIFIC_FILTER + [ | 57 _DESKTOP_OS_SPECIFIC_FILTER + [ |
55 # https://code.google.com/p/chromedriver/issues/detail?id=213 | 58 # https://code.google.com/p/chromedriver/issues/detail?id=213 |
56 'ChromeDriverTest.testClickElementInSubFrame', | 59 'ChromeDriverTest.testClickElementInSubFrame', |
57 # This test is flaky since it uses setTimeout. | 60 # This test is flaky since it uses setTimeout. |
58 # Re-enable once crbug.com/177511 is fixed and we can remove setTimeout. | 61 # Re-enable once crbug.com/177511 is fixed and we can remove setTimeout. |
(...skipping 566 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
625 negative_filter = _DESKTOP_NEGATIVE_FILTER[options.chrome_version] | 628 negative_filter = _DESKTOP_NEGATIVE_FILTER[options.chrome_version] |
626 options.filter = '*-' + ':__main__.'.join([''] + negative_filter) | 629 options.filter = '*-' + ':__main__.'.join([''] + negative_filter) |
627 | 630 |
628 all_tests_suite = unittest.defaultTestLoader.loadTestsFromModule( | 631 all_tests_suite = unittest.defaultTestLoader.loadTestsFromModule( |
629 sys.modules[__name__]) | 632 sys.modules[__name__]) |
630 tests = unittest_util.FilterTestSuite(all_tests_suite, options.filter) | 633 tests = unittest_util.FilterTestSuite(all_tests_suite, options.filter) |
631 ChromeDriverTest.GlobalSetUp() | 634 ChromeDriverTest.GlobalSetUp() |
632 result = unittest.TextTestRunner(stream=sys.stdout, verbosity=2).run(tests) | 635 result = unittest.TextTestRunner(stream=sys.stdout, verbosity=2).run(tests) |
633 ChromeDriverTest.GlobalTearDown() | 636 ChromeDriverTest.GlobalTearDown() |
634 sys.exit(len(result.failures) + len(result.errors)) | 637 sys.exit(len(result.failures) + len(result.errors)) |
OLD | NEW |