OLD | NEW |
1 # Copyright (C) 2010 Google Inc. All rights reserved. | 1 # Copyright (C) 2010 Google Inc. All rights reserved. |
2 # | 2 # |
3 # Redistribution and use in source and binary forms, with or without | 3 # Redistribution and use in source and binary forms, with or without |
4 # modification, are permitted provided that the following conditions are | 4 # modification, are permitted provided that the following conditions are |
5 # met: | 5 # met: |
6 # | 6 # |
7 # * Redistributions of source code must retain the above copyright | 7 # * Redistributions of source code must retain the above copyright |
8 # notice, this list of conditions and the following disclaimer. | 8 # notice, this list of conditions and the following disclaimer. |
9 # * Redistributions in binary form must reproduce the above | 9 # * Redistributions in binary form must reproduce the above |
10 # copyright notice, this list of conditions and the following disclaimer | 10 # copyright notice, this list of conditions and the following disclaimer |
(...skipping 1569 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1580 def look_for_new_samples(self, unresponsive_processes, start_time): | 1580 def look_for_new_samples(self, unresponsive_processes, start_time): |
1581 pass | 1581 pass |
1582 | 1582 |
1583 def sample_process(self, name, pid): | 1583 def sample_process(self, name, pid): |
1584 pass | 1584 pass |
1585 | 1585 |
1586 def physical_test_suites(self): | 1586 def physical_test_suites(self): |
1587 return [ | 1587 return [ |
1588 # For example, to turn on force-compositing-mode in the svg/ directo
ry: | 1588 # For example, to turn on force-compositing-mode in the svg/ directo
ry: |
1589 # PhysicalTestSuite('svg', ['--force-compositing-mode']), | 1589 # PhysicalTestSuite('svg', ['--force-compositing-mode']), |
1590 PhysicalTestSuite('fast/text', ["--enable-direct-write", "--enable-f
ont-antialiasing"]), | 1590 PhysicalTestSuite('fast/text', ["--always-use-complex-text", "--enab
le-direct-write", "--enable-font-antialiasing"]), |
1591 ] | 1591 ] |
1592 | 1592 |
1593 def virtual_test_suites(self): | 1593 def virtual_test_suites(self): |
1594 if self._virtual_test_suites is None: | 1594 if self._virtual_test_suites is None: |
1595 path_to_virtual_test_suites = self._filesystem.join(self.layout_test
s_dir(), 'VirtualTestSuites') | 1595 path_to_virtual_test_suites = self._filesystem.join(self.layout_test
s_dir(), 'VirtualTestSuites') |
1596 assert self._filesystem.exists(path_to_virtual_test_suites), 'Layout
Tests/VirtualTestSuites not found' | 1596 assert self._filesystem.exists(path_to_virtual_test_suites), 'Layout
Tests/VirtualTestSuites not found' |
1597 try: | 1597 try: |
1598 test_suite_json = json.loads(self._filesystem.read_text_file(pat
h_to_virtual_test_suites)) | 1598 test_suite_json = json.loads(self._filesystem.read_text_file(pat
h_to_virtual_test_suites)) |
1599 self._virtual_test_suites = [VirtualTestSuite(**d) for d in test
_suite_json] | 1599 self._virtual_test_suites = [VirtualTestSuite(**d) for d in test
_suite_json] |
1600 except ValueError as e: | 1600 except ValueError as e: |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1788 class PhysicalTestSuite(object): | 1788 class PhysicalTestSuite(object): |
1789 def __init__(self, base, args, reference_args=None): | 1789 def __init__(self, base, args, reference_args=None): |
1790 self.name = base | 1790 self.name = base |
1791 self.base = base | 1791 self.base = base |
1792 self.args = args | 1792 self.args = args |
1793 self.reference_args = args if reference_args is None else reference_args | 1793 self.reference_args = args if reference_args is None else reference_args |
1794 self.tests = set() | 1794 self.tests = set() |
1795 | 1795 |
1796 def __repr__(self): | 1796 def __repr__(self): |
1797 return "PhysicalTestSuite('%s', '%s', %s, %s)" % (self.name, self.base,
self.args, self.reference_args) | 1797 return "PhysicalTestSuite('%s', '%s', %s, %s)" % (self.name, self.base,
self.args, self.reference_args) |
OLD | NEW |