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

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

Issue 2889313002: color: Enable color correct rendering for images layout tests (Closed)
Patch Set: Rebaseline everything Created 3 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
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 1466 matching lines...) Expand 10 before | Expand all | Expand 10 after
1477 def look_for_new_crash_logs(self, crashed_processes, start_time): 1477 def look_for_new_crash_logs(self, crashed_processes, start_time):
1478 pass 1478 pass
1479 1479
1480 def look_for_new_samples(self, unresponsive_processes, start_time): 1480 def look_for_new_samples(self, unresponsive_processes, start_time):
1481 pass 1481 pass
1482 1482
1483 def sample_process(self, name, pid): 1483 def sample_process(self, name, pid):
1484 pass 1484 pass
1485 1485
1486 def physical_test_suites(self): 1486 def physical_test_suites(self):
1487 color_correct_rendering_flags = ['--enable-color-correct-rendering', '-- force-color-profile=srgb']
1487 return [ 1488 return [
1488 # For example, to turn on force-compositing-mode in the svg/ directo ry: 1489 # For example, to turn on force-compositing-mode in the svg/ directo ry:
1489 # PhysicalTestSuite('svg', ['--force-compositing-mode']), 1490 # PhysicalTestSuite('svg', ['--force-compositing-mode']),
1490 PhysicalTestSuite('fast/text', ['--enable-direct-write', '--enable-f ont-antialiasing']), 1491 PhysicalTestSuite('fast/text', ['--enable-direct-write', '--enable-f ont-antialiasing']),
1492 PhysicalTestSuite('images', color_correct_rendering_flags),
1491 ] 1493 ]
1492 1494
1493 def virtual_test_suites(self): 1495 def virtual_test_suites(self):
1494 if self._virtual_test_suites is None: 1496 if self._virtual_test_suites is None:
1495 path_to_virtual_test_suites = self._filesystem.join(self.layout_test s_dir(), 'VirtualTestSuites') 1497 path_to_virtual_test_suites = self._filesystem.join(self.layout_test s_dir(), 'VirtualTestSuites')
1496 assert self._filesystem.exists(path_to_virtual_test_suites), 'Layout Tests/VirtualTestSuites not found' 1498 assert self._filesystem.exists(path_to_virtual_test_suites), 'Layout Tests/VirtualTestSuites not found'
1497 try: 1499 try:
1498 test_suite_json = json.loads(self._filesystem.read_text_file(pat h_to_virtual_test_suites)) 1500 test_suite_json = json.loads(self._filesystem.read_text_file(pat h_to_virtual_test_suites))
1499 self._virtual_test_suites = [] 1501 self._virtual_test_suites = []
1500 for json_config in test_suite_json: 1502 for json_config in test_suite_json:
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
1649 1651
1650 def __init__(self, base, args, reference_args=None): 1652 def __init__(self, base, args, reference_args=None):
1651 self.name = base 1653 self.name = base
1652 self.base = base 1654 self.base = base
1653 self.args = args 1655 self.args = args
1654 self.reference_args = args if reference_args is None else reference_args 1656 self.reference_args = args if reference_args is None else reference_args
1655 self.tests = set() 1657 self.tests = set()
1656 1658
1657 def __repr__(self): 1659 def __repr__(self):
1658 return "PhysicalTestSuite('%s', '%s', %s, %s)" % (self.name, self.base, self.args, self.reference_args) 1660 return "PhysicalTestSuite('%s', '%s', %s, %s)" % (self.name, self.base, self.args, self.reference_args)
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/virtual/gpu-rasterization/images/paletted-png-with-color-profile-expected.png ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698