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

Side by Side Diff: tools/testing/perf_testing/run_perf_tests.py

Issue 10458061: Run dart2js browser tests. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 6 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 | « no previous file | 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 #!/usr/bin/python 1 #!/usr/bin/python
2 2
3 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 3 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
4 # for details. All rights reserved. Use of this source code is governed by a 4 # for details. All rights reserved. Use of this source code is governed by a
5 # BSD-style license that can be found in the LICENSE file. 5 # BSD-style license that can be found in the LICENSE file.
6 6
7 import datetime 7 import datetime
8 import math 8 import math
9 try: 9 try:
10 from matplotlib.font_manager import FontProperties 10 from matplotlib.font_manager import FontProperties
(...skipping 637 matching lines...) Expand 10 before | Expand all | Expand 10 after
648 648
649 class CommonBrowserTest(RuntimePerformanceTest): 649 class CommonBrowserTest(RuntimePerformanceTest):
650 """Runs this basic performance tests (Benchpress, some V8 benchmarks) in the 650 """Runs this basic performance tests (Benchpress, some V8 benchmarks) in the
651 browser.""" 651 browser."""
652 652
653 def __init__(self, test_runner): 653 def __init__(self, test_runner):
654 """Args: 654 """Args:
655 test_runner: Reference to the object that notifies us when to run.""" 655 test_runner: Reference to the object that notifies us when to run."""
656 super(CommonBrowserTest, self).__init__( 656 super(CommonBrowserTest, self).__init__(
657 self.name(), BrowserTester.get_browsers(False), 657 self.name(), BrowserTester.get_browsers(False),
658 'browser', ['js', 'frog'], 658 'browser', ['js', 'frog', 'dart2js'],
659 self.get_standalone_benchmarks(), test_runner, 659 self.get_standalone_benchmarks(), test_runner,
660 self.CommonBrowserTester(self), 660 self.CommonBrowserTester(self),
661 self.CommonBrowserFileProcessor(self)) 661 self.CommonBrowserFileProcessor(self))
662 662
663 @staticmethod 663 @staticmethod
664 def name(): 664 def name():
665 return 'browser-perf' 665 return 'browser-perf'
666 666
667 @staticmethod 667 @staticmethod
668 def get_standalone_benchmarks(): 668 def get_standalone_benchmarks():
(...skipping 648 matching lines...) Expand 10 before | Expand all | Expand 10 after
1317 while True: 1317 while True:
1318 if runner.has_new_code(): 1318 if runner.has_new_code():
1319 runner.run_test_sequence() 1319 runner.run_test_sequence()
1320 else: 1320 else:
1321 time.sleep(200) 1321 time.sleep(200)
1322 else: 1322 else:
1323 runner.run_test_sequence() 1323 runner.run_test_sequence()
1324 1324
1325 if __name__ == '__main__': 1325 if __name__ == '__main__':
1326 main() 1326 main()
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698