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

Side by Side Diff: content/test/gpu/gpu_tests/pixel_integration_test.py

Issue 2962433002: color: Run GPU pixel tests with ColorCorrectRendering feature (Closed)
Patch Set: Update tests that fail w/new flag Created 3 years, 5 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 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 import glob 4 import glob
5 import os 5 import os
6 import re 6 import re
7 import sys 7 import sys
8 8
9 from gpu_tests import gpu_integration_test 9 from gpu_tests import gpu_integration_test
10 from gpu_tests import cloud_storage_integration_test_base 10 from gpu_tests import cloud_storage_integration_test_base
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 cls.StartBrowser() 62 cls.StartBrowser()
63 cls.SetStaticServerDirs(test_data_dirs) 63 cls.SetStaticServerDirs(test_data_dirs)
64 64
65 @staticmethod 65 @staticmethod
66 def _AddDefaultArgs(browser_args): 66 def _AddDefaultArgs(browser_args):
67 if not browser_args: 67 if not browser_args:
68 browser_args = [] 68 browser_args = []
69 # All tests receive the following options. 69 # All tests receive the following options.
70 return [ 70 return [
71 '--force-color-profile=srgb', 71 '--force-color-profile=srgb',
72 '--enable-features=ColorCorrectRendering',
72 '--enable-gpu-benchmarking', 73 '--enable-gpu-benchmarking',
73 '--test-type=gpu'] + browser_args 74 '--test-type=gpu'] + browser_args
74 75
75 @classmethod 76 @classmethod
76 def StopBrowser(cls): 77 def StopBrowser(cls):
77 super(PixelIntegrationTest, cls).StopBrowser() 78 super(PixelIntegrationTest, cls).StopBrowser()
78 cls.ResetGpuInfo() 79 cls.ResetGpuInfo()
79 80
80 @classmethod 81 @classmethod
81 def AddCommandlineArgs(cls, parser): 82 def AddCommandlineArgs(cls, parser):
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 210
210 print ('Reference image not found. Writing tab contents as reference to: ' + 211 print ('Reference image not found. Writing tab contents as reference to: ' +
211 image_path) 212 image_path)
212 213
213 self._WriteImage(image_path, screenshot) 214 self._WriteImage(image_path, screenshot)
214 return screenshot 215 return screenshot
215 216
216 def load_tests(loader, tests, pattern): 217 def load_tests(loader, tests, pattern):
217 del loader, tests, pattern # Unused. 218 del loader, tests, pattern # Unused.
218 return gpu_integration_test.LoadAllTestsInModule(sys.modules[__name__]) 219 return gpu_integration_test.LoadAllTestsInModule(sys.modules[__name__])
OLDNEW
« no previous file with comments | « content/test/gpu/gpu_tests/pixel_expectations.py ('k') | content/test/gpu/gpu_tests/pixel_test_pages.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698