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

Unified Diff: content/test/gpu/gpu_tests/maps_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/maps_integration_test.py
diff --git a/content/test/gpu/gpu_tests/maps_integration_test.py b/content/test/gpu/gpu_tests/maps_integration_test.py
index e540cd72acc7f1b41b4cc775cd6e489c0cad527f..1e68456d9105a96ab03531cbe98552c1799f3d2d 100644
--- a/content/test/gpu/gpu_tests/maps_integration_test.py
+++ b/content/test/gpu/gpu_tests/maps_integration_test.py
@@ -10,6 +10,7 @@ from gpu_tests import gpu_integration_test
from gpu_tests import cloud_storage_integration_test_base
from gpu_tests import maps_expectations
from gpu_tests import path_util
+from gpu_tests import color_profile_manager
from py_utils import cloud_storage
@@ -61,8 +62,10 @@ class MapsIntegrationTest(
@classmethod
def SetUpProcess(cls):
+ cls._color_profile_manager = color_profile_manager.ColorProfileManager()
+ cls._color_profile_manager.ForceSRGB()
super(MapsIntegrationTest, cls).SetUpProcess()
- cls.CustomizeBrowserArgs([])
+ cls.CustomizeBrowserArgs(['--force-color-profile=srgb'])
cls.StartWPRServer(os.path.join(data_path, 'maps_004.wpr.updated'),
cloud_storage.PUBLIC_BUCKET)
cls.StartBrowser()
@@ -71,6 +74,7 @@ class MapsIntegrationTest(
def TearDownProcess(cls):
super(cls, MapsIntegrationTest).TearDownProcess()
cls.StopWPRServer()
+ cls._color_profile_manager.Restore()
Ken Russell (switch to Gerrit) 2017/06/20 22:55:02 See above comment about whether this class should
ccameron 2017/06/21 06:45:42 Done -- this (and the whole method for pixel) are
@classmethod
def GenerateGpuTests(cls, options):

Powered by Google App Engine
This is Rietveld 408576698