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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 _DESKTOP_NEGATIVE_FILTER = {} | 55 _DESKTOP_NEGATIVE_FILTER = {} |
56 _DESKTOP_NEGATIVE_FILTER['HEAD'] = ( | 56 _DESKTOP_NEGATIVE_FILTER['HEAD'] = ( |
57 _DESKTOP_OS_SPECIFIC_FILTER + [ | 57 _DESKTOP_OS_SPECIFIC_FILTER + [ |
58 # https://code.google.com/p/chromedriver/issues/detail?id=213 | 58 # https://code.google.com/p/chromedriver/issues/detail?id=213 |
59 'ChromeDriverTest.testClickElementInSubFrame', | 59 'ChromeDriverTest.testClickElementInSubFrame', |
60 # This test is flaky since it uses setTimeout. | 60 # This test is flaky since it uses setTimeout. |
61 # 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. |
62 'ChromeDriverTest.testAlert', | 62 'ChromeDriverTest.testAlert', |
63 ] | 63 ] |
64 ) | 64 ) |
| 65 _DESKTOP_NEGATIVE_FILTER['27'] = ( |
| 66 _DESKTOP_NEGATIVE_FILTER['HEAD'] + [] |
| 67 ) |
65 _DESKTOP_NEGATIVE_FILTER['26'] = ( | 68 _DESKTOP_NEGATIVE_FILTER['26'] = ( |
66 _DESKTOP_NEGATIVE_FILTER['HEAD'] + [] | 69 _DESKTOP_NEGATIVE_FILTER['HEAD'] + [] |
67 ) | 70 ) |
68 | 71 |
69 | 72 |
70 _ANDROID_NEGATIVE_FILTER = {} | 73 _ANDROID_NEGATIVE_FILTER = {} |
71 _ANDROID_NEGATIVE_FILTER['com.google.android.apps.chrome'] = ( | 74 _ANDROID_NEGATIVE_FILTER['com.google.android.apps.chrome'] = ( |
72 _DESKTOP_NEGATIVE_FILTER['HEAD'] + [ | 75 _DESKTOP_NEGATIVE_FILTER['HEAD'] + [ |
73 # Android doesn't support switches and extensions. | 76 # Android doesn't support switches and extensions. |
74 'ChromeSwitchesCapabilityTest.*', | 77 'ChromeSwitchesCapabilityTest.*', |
(...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
628 negative_filter = _DESKTOP_NEGATIVE_FILTER[options.chrome_version] | 631 negative_filter = _DESKTOP_NEGATIVE_FILTER[options.chrome_version] |
629 options.filter = '*-' + ':__main__.'.join([''] + negative_filter) | 632 options.filter = '*-' + ':__main__.'.join([''] + negative_filter) |
630 | 633 |
631 all_tests_suite = unittest.defaultTestLoader.loadTestsFromModule( | 634 all_tests_suite = unittest.defaultTestLoader.loadTestsFromModule( |
632 sys.modules[__name__]) | 635 sys.modules[__name__]) |
633 tests = unittest_util.FilterTestSuite(all_tests_suite, options.filter) | 636 tests = unittest_util.FilterTestSuite(all_tests_suite, options.filter) |
634 ChromeDriverTest.GlobalSetUp() | 637 ChromeDriverTest.GlobalSetUp() |
635 result = unittest.TextTestRunner(stream=sys.stdout, verbosity=2).run(tests) | 638 result = unittest.TextTestRunner(stream=sys.stdout, verbosity=2).run(tests) |
636 ChromeDriverTest.GlobalTearDown() | 639 ChromeDriverTest.GlobalTearDown() |
637 sys.exit(len(result.failures) + len(result.errors)) | 640 sys.exit(len(result.failures) + len(result.errors)) |
OLD | NEW |