| 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 1553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1564 | 1564 |
| 1565 def sample_process(self, name, pid): | 1565 def sample_process(self, name, pid): |
| 1566 pass | 1566 pass |
| 1567 | 1567 |
| 1568 def physical_test_suites(self): | 1568 def physical_test_suites(self): |
| 1569 return [ | 1569 return [ |
| 1570 # For example, to turn on force-compositing-mode in the svg/ directo
ry: | 1570 # For example, to turn on force-compositing-mode in the svg/ directo
ry: |
| 1571 # PhysicalTestSuite('svg', | 1571 # PhysicalTestSuite('svg', |
| 1572 # ['--force-compositing-mode']), | 1572 # ['--force-compositing-mode']), |
| 1573 PhysicalTestSuite('compositing', ['--enable-slimming-paint']), | 1573 PhysicalTestSuite('compositing', ['--enable-slimming-paint']), |
| 1574 PhysicalTestSuite('css1', ['--enable-slimming-paint']), |
| 1575 PhysicalTestSuite('css2.1', ['--enable-slimming-paint']), |
| 1576 PhysicalTestSuite('css3', ['--enable-slimming-paint']), |
| 1574 PhysicalTestSuite('fast', ['--enable-slimming-paint']), | 1577 PhysicalTestSuite('fast', ['--enable-slimming-paint']), |
| 1575 ] | 1578 ] |
| 1576 | 1579 |
| 1577 def virtual_test_suites(self): | 1580 def virtual_test_suites(self): |
| 1578 if self._virtual_test_suites is None: | 1581 if self._virtual_test_suites is None: |
| 1579 path_to_virtual_test_suites = self._filesystem.join(self.layout_test
s_dir(), 'VirtualTestSuites') | 1582 path_to_virtual_test_suites = self._filesystem.join(self.layout_test
s_dir(), 'VirtualTestSuites') |
| 1580 assert self._filesystem.exists(path_to_virtual_test_suites), 'Layout
Tests/VirtualTestSuites not found' | 1583 assert self._filesystem.exists(path_to_virtual_test_suites), 'Layout
Tests/VirtualTestSuites not found' |
| 1581 try: | 1584 try: |
| 1582 test_suite_json = json.loads(self._filesystem.read_text_file(pat
h_to_virtual_test_suites)) | 1585 test_suite_json = json.loads(self._filesystem.read_text_file(pat
h_to_virtual_test_suites)) |
| 1583 self._virtual_test_suites = [VirtualTestSuite(**d) for d in test
_suite_json] | 1586 self._virtual_test_suites = [VirtualTestSuite(**d) for d in test
_suite_json] |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1769 class PhysicalTestSuite(object): | 1772 class PhysicalTestSuite(object): |
| 1770 def __init__(self, base, args, reference_args=None): | 1773 def __init__(self, base, args, reference_args=None): |
| 1771 self.name = base | 1774 self.name = base |
| 1772 self.base = base | 1775 self.base = base |
| 1773 self.args = args | 1776 self.args = args |
| 1774 self.reference_args = args if reference_args is None else reference_args | 1777 self.reference_args = args if reference_args is None else reference_args |
| 1775 self.tests = set() | 1778 self.tests = set() |
| 1776 | 1779 |
| 1777 def __repr__(self): | 1780 def __repr__(self): |
| 1778 return "PhysicalTestSuite('%s', '%s', %s, %s)" % (self.name, self.base,
self.args, self.reference_args) | 1781 return "PhysicalTestSuite('%s', '%s', %s, %s)" % (self.name, self.base,
self.args, self.reference_args) |
| OLD | NEW |