| 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 1557 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1568 | 1568 |
| 1569 def physical_test_suites(self): | 1569 def physical_test_suites(self): |
| 1570 return [ | 1570 return [ |
| 1571 # For example, to turn on force-compositing-mode in the svg/ directo
ry: | 1571 # For example, to turn on force-compositing-mode in the svg/ directo
ry: |
| 1572 # PhysicalTestSuite('svg', | 1572 # PhysicalTestSuite('svg', |
| 1573 # ['--force-compositing-mode']), | 1573 # ['--force-compositing-mode']), |
| 1574 PhysicalTestSuite('compositing', ['--enable-slimming-paint']), | 1574 PhysicalTestSuite('compositing', ['--enable-slimming-paint']), |
| 1575 PhysicalTestSuite('css1', ['--enable-slimming-paint']), | 1575 PhysicalTestSuite('css1', ['--enable-slimming-paint']), |
| 1576 PhysicalTestSuite('css2.1', ['--enable-slimming-paint']), | 1576 PhysicalTestSuite('css2.1', ['--enable-slimming-paint']), |
| 1577 PhysicalTestSuite('css3', ['--enable-slimming-paint']), | 1577 PhysicalTestSuite('css3', ['--enable-slimming-paint']), |
| 1578 PhysicalTestSuite('editing', ['--enable-slimming-paint']), |
| 1578 PhysicalTestSuite('fast', ['--enable-slimming-paint']), | 1579 PhysicalTestSuite('fast', ['--enable-slimming-paint']), |
| 1580 PhysicalTestSuite('media', ['--enable-slimming-paint']), |
| 1581 PhysicalTestSuite('paint', ['--enable-slimming-paint']), |
| 1582 PhysicalTestSuite('plugins', ['--enable-slimming-paint']), |
| 1583 PhysicalTestSuite('printing', ['--enable-slimming-paint']), |
| 1584 PhysicalTestSuite('scrollbars', ['--enable-slimming-paint']), |
| 1585 PhysicalTestSuite('selection', ['--enable-slimming-paint']), |
| 1579 PhysicalTestSuite('svg', ['--enable-slimming-paint']), | 1586 PhysicalTestSuite('svg', ['--enable-slimming-paint']), |
| 1587 PhysicalTestSuite('transforms', ['--enable-slimming-paint']), |
| 1580 ] | 1588 ] |
| 1581 | 1589 |
| 1582 def virtual_test_suites(self): | 1590 def virtual_test_suites(self): |
| 1583 if self._virtual_test_suites is None: | 1591 if self._virtual_test_suites is None: |
| 1584 path_to_virtual_test_suites = self._filesystem.join(self.layout_test
s_dir(), 'VirtualTestSuites') | 1592 path_to_virtual_test_suites = self._filesystem.join(self.layout_test
s_dir(), 'VirtualTestSuites') |
| 1585 assert self._filesystem.exists(path_to_virtual_test_suites), 'Layout
Tests/VirtualTestSuites not found' | 1593 assert self._filesystem.exists(path_to_virtual_test_suites), 'Layout
Tests/VirtualTestSuites not found' |
| 1586 try: | 1594 try: |
| 1587 test_suite_json = json.loads(self._filesystem.read_text_file(pat
h_to_virtual_test_suites)) | 1595 test_suite_json = json.loads(self._filesystem.read_text_file(pat
h_to_virtual_test_suites)) |
| 1588 self._virtual_test_suites = [VirtualTestSuite(**d) for d in test
_suite_json] | 1596 self._virtual_test_suites = [VirtualTestSuite(**d) for d in test
_suite_json] |
| 1589 except ValueError as e: | 1597 except ValueError as e: |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1774 class PhysicalTestSuite(object): | 1782 class PhysicalTestSuite(object): |
| 1775 def __init__(self, base, args, reference_args=None): | 1783 def __init__(self, base, args, reference_args=None): |
| 1776 self.name = base | 1784 self.name = base |
| 1777 self.base = base | 1785 self.base = base |
| 1778 self.args = args | 1786 self.args = args |
| 1779 self.reference_args = args if reference_args is None else reference_args | 1787 self.reference_args = args if reference_args is None else reference_args |
| 1780 self.tests = set() | 1788 self.tests = set() |
| 1781 | 1789 |
| 1782 def __repr__(self): | 1790 def __repr__(self): |
| 1783 return "PhysicalTestSuite('%s', '%s', %s, %s)" % (self.name, self.base,
self.args, self.reference_args) | 1791 return "PhysicalTestSuite('%s', '%s', %s, %s)" % (self.name, self.base,
self.args, self.reference_args) |
| OLD | NEW |