Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(647)

Side by Side Diff: chrome/test/chromedriver/run_py_tests.py

Issue 13827002: [chromedriver] Run tests against 27. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Disable a failed test on Win7. Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/test/chromedriver/run_all_tests.py ('k') | chrome/test/chromedriver/test_expectations » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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))
OLDNEW
« no previous file with comments | « chrome/test/chromedriver/run_all_tests.py ('k') | chrome/test/chromedriver/test_expectations » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698