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 1618 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1629 pass | 1629 pass |
1630 | 1630 |
1631 def sample_process(self, name, pid): | 1631 def sample_process(self, name, pid): |
1632 pass | 1632 pass |
1633 | 1633 |
1634 def physical_test_suites(self): | 1634 def physical_test_suites(self): |
1635 return [ | 1635 return [ |
1636 # For example, to turn on force-compositing-mode in the svg/ directo
ry: | 1636 # For example, to turn on force-compositing-mode in the svg/ directo
ry: |
1637 # PhysicalTestSuite('svg', ['--force-compositing-mode']), | 1637 # PhysicalTestSuite('svg', ['--force-compositing-mode']), |
1638 PhysicalTestSuite('fast/text', ["--enable-direct-write", "--enable-f
ont-antialiasing"]), | 1638 PhysicalTestSuite('fast/text', ["--enable-direct-write", "--enable-f
ont-antialiasing"]), |
| 1639 # Run paint/invalidation with SlimmingPaintInvalidation disabled to
ensure |
| 1640 # test coverage of the non-SlimmingPaintInvalidation path when Slimm
ingPaintInvalidation |
| 1641 # is enabled for virtual/spinvalidation/paint/invalidation and all o
ther layout tests. |
| 1642 PhysicalTestSuite('paint/invalidation', ['--disable-slimming-paint-i
nvalidation']), |
1639 ] | 1643 ] |
1640 | 1644 |
1641 def virtual_test_suites(self): | 1645 def virtual_test_suites(self): |
1642 if self._virtual_test_suites is None: | 1646 if self._virtual_test_suites is None: |
1643 path_to_virtual_test_suites = self._filesystem.join(self.layout_test
s_dir(), 'VirtualTestSuites') | 1647 path_to_virtual_test_suites = self._filesystem.join(self.layout_test
s_dir(), 'VirtualTestSuites') |
1644 assert self._filesystem.exists(path_to_virtual_test_suites), 'Layout
Tests/VirtualTestSuites not found' | 1648 assert self._filesystem.exists(path_to_virtual_test_suites), 'Layout
Tests/VirtualTestSuites not found' |
1645 try: | 1649 try: |
1646 test_suite_json = json.loads(self._filesystem.read_text_file(pat
h_to_virtual_test_suites)) | 1650 test_suite_json = json.loads(self._filesystem.read_text_file(pat
h_to_virtual_test_suites)) |
1647 self._virtual_test_suites = [VirtualTestSuite(**d) for d in test
_suite_json] | 1651 self._virtual_test_suites = [VirtualTestSuite(**d) for d in test
_suite_json] |
1648 except ValueError as error: | 1652 except ValueError as error: |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1794 | 1798 |
1795 def __init__(self, base, args, reference_args=None): | 1799 def __init__(self, base, args, reference_args=None): |
1796 self.name = base | 1800 self.name = base |
1797 self.base = base | 1801 self.base = base |
1798 self.args = args | 1802 self.args = args |
1799 self.reference_args = args if reference_args is None else reference_args | 1803 self.reference_args = args if reference_args is None else reference_args |
1800 self.tests = set() | 1804 self.tests = set() |
1801 | 1805 |
1802 def __repr__(self): | 1806 def __repr__(self): |
1803 return "PhysicalTestSuite('%s', '%s', %s, %s)" % (self.name, self.base,
self.args, self.reference_args) | 1807 return "PhysicalTestSuite('%s', '%s', %s, %s)" % (self.name, self.base,
self.args, self.reference_args) |
OLD | NEW |