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

Side by Side Diff: tools/testing/test_configuration.py

Issue 8469016: Adding in-browser correctness testing via selenium. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years, 1 month 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
« tools/testing/run_selenium.py ('K') | « tools/testing/test_case.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 # for details. All rights reserved. Use of this source code is governed by a 2 # for details. All rights reserved. Use of this source code is governed by a
3 # BSD-style license that can be found in the LICENSE file. 3 # BSD-style license that can be found in the LICENSE file.
4 4
5 """Common Testconfiguration subclasses used to define a class of tests.""" 5 """Common Testconfiguration subclasses used to define a class of tests."""
6 6
7 import atexit 7 import atexit
8 import fileinput 8 import fileinput
9 import os 9 import os
10 import re 10 import re
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 # Look for VM specified as comments in the source file. If 59 # Look for VM specified as comments in the source file. If
60 # several sets of VM options are specified create a separate 60 # several sets of VM options are specified create a separate
61 # test for each set. 61 # test for each set.
62 source = file(filename).read() 62 source = file(filename).read()
63 vm_options_list = utils.ParseTestOptionsMultiple(VM_OPTIONS_PATTERN, 63 vm_options_list = utils.ParseTestOptionsMultiple(VM_OPTIONS_PATTERN,
64 source, 64 source,
65 test_path) 65 test_path)
66 tags = {} 66 tags = {}
67 if filename.endswith('.dart'): 67 if filename.endswith('.dart'):
68 tags = self.SplitMultiTest(test_path, filename) 68 tags = self.SplitMultiTest(test_path, filename)
69 if component in ['dartium', 'chromium']: 69 if component in ['dartium', 'chromium', 'webdriver']:
70 if tags: 70 if tags:
71 return [] 71 return []
72 else: 72 else:
73 if vm_options_list: 73 if vm_options_list:
74 tests = [] 74 tests = []
75 for options in vm_options_list: 75 for options in vm_options_list:
76 tests.append(test_case.BrowserTestCase( 76 tests.append(test_case.BrowserTestCase(
77 self.context, test_path, filename, False, mode, arch, component, 77 self.context, test_path, filename, False, mode, arch, component,
78 options + self.flags)) 78 options + self.flags))
79 return tests 79 return tests
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 305
306 def GetTestStatus(self, sections, defs): 306 def GetTestStatus(self, sections, defs):
307 status = os.path.join(self.root, 'dartc.status') 307 status = os.path.join(self.root, 'dartc.status')
308 if os.path.exists(status): 308 if os.path.exists(status):
309 test.ReadConfigurationInto(status, sections, defs) 309 test.ReadConfigurationInto(status, sections, defs)
310 310
311 def _Cleanup(self, tests): 311 def _Cleanup(self, tests):
312 if not utils.Daemonize(): return 312 if not utils.Daemonize(): return
313 os.execlp('rm', *(['rm', '-rf'] + [t.temp_dir for t in tests])) 313 os.execlp('rm', *(['rm', '-rf'] + [t.temp_dir for t in tests]))
314 raise 314 raise
OLDNEW
« tools/testing/run_selenium.py ('K') | « tools/testing/test_case.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698