| 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 1534 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1545 pass | 1545 pass |
| 1546 | 1546 |
| 1547 def sample_process(self, name, pid): | 1547 def sample_process(self, name, pid): |
| 1548 pass | 1548 pass |
| 1549 | 1549 |
| 1550 def physical_test_suites(self): | 1550 def physical_test_suites(self): |
| 1551 return [ | 1551 return [ |
| 1552 # For example, to turn on force-compositing-mode in the svg/ directo
ry: | 1552 # For example, to turn on force-compositing-mode in the svg/ directo
ry: |
| 1553 # PhysicalTestSuite('svg', | 1553 # PhysicalTestSuite('svg', |
| 1554 # ['--force-compositing-mode']), | 1554 # ['--force-compositing-mode']), |
| 1555 PhysicalTestSuite('fast', ['--enable-impl-side-painting']), |
| 1555 ] | 1556 ] |
| 1556 | 1557 |
| 1557 def virtual_test_suites(self): | 1558 def virtual_test_suites(self): |
| 1558 if self._virtual_test_suites is None: | 1559 if self._virtual_test_suites is None: |
| 1559 path_to_virtual_test_suites = self._filesystem.join(self.layout_test
s_dir(), 'VirtualTestSuites') | 1560 path_to_virtual_test_suites = self._filesystem.join(self.layout_test
s_dir(), 'VirtualTestSuites') |
| 1560 assert self._filesystem.exists(path_to_virtual_test_suites), 'Layout
Tests/VirtualTestSuites not found' | 1561 assert self._filesystem.exists(path_to_virtual_test_suites), 'Layout
Tests/VirtualTestSuites not found' |
| 1561 try: | 1562 try: |
| 1562 test_suite_json = json.loads(self._filesystem.read_text_file(pat
h_to_virtual_test_suites)) | 1563 test_suite_json = json.loads(self._filesystem.read_text_file(pat
h_to_virtual_test_suites)) |
| 1563 self._virtual_test_suites = [VirtualTestSuite(**d) for d in test
_suite_json] | 1564 self._virtual_test_suites = [VirtualTestSuite(**d) for d in test
_suite_json] |
| 1564 except ValueError as e: | 1565 except ValueError as e: |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1734 | 1735 |
| 1735 class PhysicalTestSuite(object): | 1736 class PhysicalTestSuite(object): |
| 1736 def __init__(self, base, args): | 1737 def __init__(self, base, args): |
| 1737 self.name = base | 1738 self.name = base |
| 1738 self.base = base | 1739 self.base = base |
| 1739 self.args = args | 1740 self.args = args |
| 1740 self.tests = set() | 1741 self.tests = set() |
| 1741 | 1742 |
| 1742 def __repr__(self): | 1743 def __repr__(self): |
| 1743 return "PhysicalTestSuite('%s', '%s', %s)" % (self.name, self.base, self
.args) | 1744 return "PhysicalTestSuite('%s', '%s', %s)" % (self.name, self.base, self
.args) |
| OLD | NEW |