| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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() |
| OLD | NEW |