| OLD | NEW |
| 1 # Copyright 2017 The Chromium Authors. All rights reserved. | 1 # Copyright 2017 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 | 4 |
| 5 import json | 5 import json |
| 6 import os | 6 import os |
| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 return 'maps' | 57 return 'maps' |
| 58 | 58 |
| 59 @classmethod | 59 @classmethod |
| 60 def _CreateExpectations(cls): | 60 def _CreateExpectations(cls): |
| 61 return maps_expectations.MapsExpectations() | 61 return maps_expectations.MapsExpectations() |
| 62 | 62 |
| 63 @classmethod | 63 @classmethod |
| 64 def SetUpProcess(cls): | 64 def SetUpProcess(cls): |
| 65 color_profile_manager.ForceUntilExitSRGB() | 65 color_profile_manager.ForceUntilExitSRGB() |
| 66 super(MapsIntegrationTest, cls).SetUpProcess() | 66 super(MapsIntegrationTest, cls).SetUpProcess() |
| 67 cls.CustomizeBrowserArgs(['--force-color-profile=srgb']) | 67 browser_args = [ |
| 68 '--force-color-profile=srgb', |
| 69 '--enable-features=ColorCorrectRendering'] |
| 70 cls.CustomizeBrowserArgs(browser_args) |
| 68 cls.StartWPRServer(os.path.join(data_path, 'maps_004.wpr.updated'), | 71 cls.StartWPRServer(os.path.join(data_path, 'maps_004.wpr.updated'), |
| 69 cloud_storage.PUBLIC_BUCKET) | 72 cloud_storage.PUBLIC_BUCKET) |
| 70 cls.StartBrowser() | 73 cls.StartBrowser() |
| 71 | 74 |
| 72 @classmethod | 75 @classmethod |
| 73 def TearDownProcess(cls): | 76 def TearDownProcess(cls): |
| 74 super(cls, MapsIntegrationTest).TearDownProcess() | 77 super(cls, MapsIntegrationTest).TearDownProcess() |
| 75 cls.StopWPRServer() | 78 cls.StopWPRServer() |
| 76 | 79 |
| 77 @classmethod | 80 @classmethod |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 # screenshot are observed. Hack around this by specifying a scale | 136 # screenshot are observed. Hack around this by specifying a scale |
| 134 # factor for these bots in the test expectations. This relies on | 137 # factor for these bots in the test expectations. This relies on |
| 135 # the test-machine-name argument being specified on the command | 138 # the test-machine-name argument being specified on the command |
| 136 # line. | 139 # line. |
| 137 expected = self._ReadPixelExpectations(pixel_expectations_file) | 140 expected = self._ReadPixelExpectations(pixel_expectations_file) |
| 138 self._ValidateScreenshotSamples(tab, url, screenshot, expected, dpr) | 141 self._ValidateScreenshotSamples(tab, url, screenshot, expected, dpr) |
| 139 | 142 |
| 140 def load_tests(loader, tests, pattern): | 143 def load_tests(loader, tests, pattern): |
| 141 del loader, tests, pattern # Unused. | 144 del loader, tests, pattern # Unused. |
| 142 return gpu_integration_test.LoadAllTestsInModule(sys.modules[__name__]) | 145 return gpu_integration_test.LoadAllTestsInModule(sys.modules[__name__]) |
| OLD | NEW |