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

Unified Diff: content/test/gpu/gpu_tests/pixel_integration_test.py

Issue 2944733002: Force sRGB color profile on Mac for pixel tests (Closed)
Patch Set: Include maps, dont enable color correction 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 side-by-side diff with in-line comments
Download patch
Index: content/test/gpu/gpu_tests/pixel_integration_test.py
diff --git a/content/test/gpu/gpu_tests/pixel_integration_test.py b/content/test/gpu/gpu_tests/pixel_integration_test.py
index cbeca3d32596231e7d7749908a4b25ab743c194c..92fdba6f4a437cb9c2ed89cdd6a6a3ee81d00dd1 100644
--- a/content/test/gpu/gpu_tests/pixel_integration_test.py
+++ b/content/test/gpu/gpu_tests/pixel_integration_test.py
@@ -11,6 +11,7 @@ from gpu_tests import cloud_storage_integration_test_base
from gpu_tests import path_util
from gpu_tests import pixel_expectations
from gpu_tests import pixel_test_pages
+from gpu_tests import color_profile_manager
from py_utils import cloud_storage
from telemetry.util import image_util
@@ -55,17 +56,25 @@ class PixelIntegrationTest(
@classmethod
def SetUpProcess(cls):
+ cls._color_profile_manager = color_profile_manager.ColorProfileManager()
+ cls._color_profile_manager.ForceSRGB()
super(PixelIntegrationTest, cls).SetUpProcess()
cls.CustomizeBrowserArgs(cls._AddDefaultArgs([]))
cls.StartBrowser()
cls.SetStaticServerDirs(test_data_dirs)
+ @classmethod
+ def TearDownProcess(cls):
+ super(PixelIntegrationTest, cls).TearDownProcess()
+ cls._color_profile_manager.Restore()
+
@staticmethod
def _AddDefaultArgs(browser_args):
if not browser_args:
browser_args = []
# All tests receive the following options.
return [
+ '--force-color-profile=srgb',
'--enable-gpu-benchmarking',
'--test-type=gpu'] + browser_args

Powered by Google App Engine
This is Rietveld 408576698