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 1472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1483 def look_for_new_crash_logs(self, crashed_processes, start_time): | 1483 def look_for_new_crash_logs(self, crashed_processes, start_time): |
1484 pass | 1484 pass |
1485 | 1485 |
1486 def look_for_new_samples(self, unresponsive_processes, start_time): | 1486 def look_for_new_samples(self, unresponsive_processes, start_time): |
1487 pass | 1487 pass |
1488 | 1488 |
1489 def sample_process(self, name, pid): | 1489 def sample_process(self, name, pid): |
1490 pass | 1490 pass |
1491 | 1491 |
1492 def physical_test_suites(self): | 1492 def physical_test_suites(self): |
1493 color_correct_rendering_flags = ['--enable-color-correct-rendering', '--
force-color-profile=srgb'] | |
1494 return [ | 1493 return [ |
1495 # For example, to turn on force-compositing-mode in the svg/ directo
ry: | 1494 # For example, to turn on force-compositing-mode in the svg/ directo
ry: |
1496 # PhysicalTestSuite('svg', ['--force-compositing-mode']), | 1495 # PhysicalTestSuite('svg', ['--force-compositing-mode']), |
1497 PhysicalTestSuite('fast/text', ['--enable-direct-write', '--enable-f
ont-antialiasing']), | 1496 PhysicalTestSuite('fast/text', ['--enable-direct-write', '--enable-f
ont-antialiasing']), |
1498 PhysicalTestSuite('images', color_correct_rendering_flags), | |
1499 ] | 1497 ] |
1500 | 1498 |
1501 def virtual_test_suites(self): | 1499 def virtual_test_suites(self): |
1502 if self._virtual_test_suites is None: | 1500 if self._virtual_test_suites is None: |
1503 path_to_virtual_test_suites = self._filesystem.join(self.layout_test
s_dir(), 'VirtualTestSuites') | 1501 path_to_virtual_test_suites = self._filesystem.join(self.layout_test
s_dir(), 'VirtualTestSuites') |
1504 assert self._filesystem.exists(path_to_virtual_test_suites), 'Layout
Tests/VirtualTestSuites not found' | 1502 assert self._filesystem.exists(path_to_virtual_test_suites), 'Layout
Tests/VirtualTestSuites not found' |
1505 try: | 1503 try: |
1506 test_suite_json = json.loads(self._filesystem.read_text_file(pat
h_to_virtual_test_suites)) | 1504 test_suite_json = json.loads(self._filesystem.read_text_file(pat
h_to_virtual_test_suites)) |
1507 self._virtual_test_suites = [] | 1505 self._virtual_test_suites = [] |
1508 for json_config in test_suite_json: | 1506 for json_config in test_suite_json: |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1657 | 1655 |
1658 def __init__(self, base, args, reference_args=None): | 1656 def __init__(self, base, args, reference_args=None): |
1659 self.name = base | 1657 self.name = base |
1660 self.base = base | 1658 self.base = base |
1661 self.args = args | 1659 self.args = args |
1662 self.reference_args = args if reference_args is None else reference_args | 1660 self.reference_args = args if reference_args is None else reference_args |
1663 self.tests = set() | 1661 self.tests = set() |
1664 | 1662 |
1665 def __repr__(self): | 1663 def __repr__(self): |
1666 return "PhysicalTestSuite('%s', '%s', %s, %s)" % (self.name, self.base,
self.args, self.reference_args) | 1664 return "PhysicalTestSuite('%s', '%s', %s, %s)" % (self.name, self.base,
self.args, self.reference_args) |
OLD | NEW |