Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(332)

Side by Side Diff: Tools/Scripts/webkitpy/layout_tests/port/base.py

Issue 1195953002: Enable slimming paint for all layout tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: NeedsRebaseline Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 self._test_configuration = None 217 self._test_configuration = None
218 self._reftest_list = {} 218 self._reftest_list = {}
219 self._results_directory = None 219 self._results_directory = None
220 self._virtual_test_suites = None 220 self._virtual_test_suites = None
221 221
222 def buildbot_archives_baselines(self): 222 def buildbot_archives_baselines(self):
223 return True 223 return True
224 224
225 def additional_driver_flag(self): 225 def additional_driver_flag(self):
226 if self.driver_name() == self.CONTENT_SHELL_NAME: 226 if self.driver_name() == self.CONTENT_SHELL_NAME:
227 return ['--run-layout-test', '--disable-slimming-paint'] 227 # TODO(wangxianzhu): Remove --enable-slimming-paint when we enable
228 # it by default.
229 return ['--run-layout-test', '--enable-slimming-paint']
228 return [] 230 return []
229 231
230 def supports_per_test_timeout(self): 232 def supports_per_test_timeout(self):
231 return False 233 return False
232 234
233 def default_pixel_tests(self): 235 def default_pixel_tests(self):
234 return True 236 return True
235 237
236 def default_smoke_test_only(self): 238 def default_smoke_test_only(self):
237 return False 239 return False
(...skipping 1324 matching lines...) Expand 10 before | Expand all | Expand 10 after
1562 1564
1563 def look_for_new_samples(self, unresponsive_processes, start_time): 1565 def look_for_new_samples(self, unresponsive_processes, start_time):
1564 pass 1566 pass
1565 1567
1566 def sample_process(self, name, pid): 1568 def sample_process(self, name, pid):
1567 pass 1569 pass
1568 1570
1569 def physical_test_suites(self): 1571 def physical_test_suites(self):
1570 return [ 1572 return [
1571 # For example, to turn on force-compositing-mode in the svg/ directo ry: 1573 # For example, to turn on force-compositing-mode in the svg/ directo ry:
1572 # PhysicalTestSuite('svg', 1574 # PhysicalTestSuite('svg', ['--force-compositing-mode']),
1573 # ['--force-compositing-mode']),
1574 PhysicalTestSuite('compositing', ['--enable-slimming-paint']),
1575 PhysicalTestSuite('css1', ['--enable-slimming-paint']),
1576 PhysicalTestSuite('css2.1', ['--enable-slimming-paint']),
1577 PhysicalTestSuite('css3', ['--enable-slimming-paint']),
1578 PhysicalTestSuite('editing', ['--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']),
1586 PhysicalTestSuite('svg', ['--enable-slimming-paint']),
1587 PhysicalTestSuite('tables', ['--enable-slimming-paint']),
1588 PhysicalTestSuite('transforms', ['--enable-slimming-paint']),
1589 ] 1575 ]
1590 1576
1591 def virtual_test_suites(self): 1577 def virtual_test_suites(self):
1592 if self._virtual_test_suites is None: 1578 if self._virtual_test_suites is None:
1593 path_to_virtual_test_suites = self._filesystem.join(self.layout_test s_dir(), 'VirtualTestSuites') 1579 path_to_virtual_test_suites = self._filesystem.join(self.layout_test s_dir(), 'VirtualTestSuites')
1594 assert self._filesystem.exists(path_to_virtual_test_suites), 'Layout Tests/VirtualTestSuites not found' 1580 assert self._filesystem.exists(path_to_virtual_test_suites), 'Layout Tests/VirtualTestSuites not found'
1595 try: 1581 try:
1596 test_suite_json = json.loads(self._filesystem.read_text_file(pat h_to_virtual_test_suites)) 1582 test_suite_json = json.loads(self._filesystem.read_text_file(pat h_to_virtual_test_suites))
1597 self._virtual_test_suites = [VirtualTestSuite(**d) for d in test _suite_json] 1583 self._virtual_test_suites = [VirtualTestSuite(**d) for d in test _suite_json]
1598 except ValueError as e: 1584 except ValueError as e:
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
1783 class PhysicalTestSuite(object): 1769 class PhysicalTestSuite(object):
1784 def __init__(self, base, args, reference_args=None): 1770 def __init__(self, base, args, reference_args=None):
1785 self.name = base 1771 self.name = base
1786 self.base = base 1772 self.base = base
1787 self.args = args 1773 self.args = args
1788 self.reference_args = args if reference_args is None else reference_args 1774 self.reference_args = args if reference_args is None else reference_args
1789 self.tests = set() 1775 self.tests = set()
1790 1776
1791 def __repr__(self): 1777 def __repr__(self):
1792 return "PhysicalTestSuite('%s', '%s', %s, %s)" % (self.name, self.base, self.args, self.reference_args) 1778 return "PhysicalTestSuite('%s', '%s', %s, %s)" % (self.name, self.base, self.args, self.reference_args)
OLDNEW
« no previous file with comments | « Tools/Scripts/webkitpy/layout_tests/port/android.py ('k') | Tools/Scripts/webkitpy/layout_tests/port/driver_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698