OLD | NEW |
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 | 4 |
5 class PixelTestPage(object): | 5 class PixelTestPage(object): |
6 """A wrapper class mimicking the functionality of the PixelTestsStorySet | 6 """A wrapper class mimicking the functionality of the PixelTestsStorySet |
7 from the old-style GPU tests. | 7 from the old-style GPU tests. |
8 """ | 8 """ |
9 def __init__(self, url, name, test_rect, revision, | 9 def __init__(self, url, name, test_rect, revision, |
10 expected_colors=None, tolerance=2, browser_args=None): | 10 expected_colors=None, tolerance=2, browser_args=None): |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 'pixel_offscreenCanvas_webgl_commit_main.html', | 153 'pixel_offscreenCanvas_webgl_commit_main.html', |
154 base_name + '_OffscreenCanvasWebGLDefault', | 154 base_name + '_OffscreenCanvasWebGLDefault', |
155 test_rect=[0, 0, 350, 350], | 155 test_rect=[0, 0, 350, 350], |
156 revision=1, | 156 revision=1, |
157 browser_args=browser_args), | 157 browser_args=browser_args), |
158 | 158 |
159 PixelTestPage( | 159 PixelTestPage( |
160 'pixel_offscreenCanvas_webgl_commit_worker.html', | 160 'pixel_offscreenCanvas_webgl_commit_worker.html', |
161 base_name + '_OffscreenCanvasWebGLDefaultWorker', | 161 base_name + '_OffscreenCanvasWebGLDefaultWorker', |
162 test_rect=[0, 0, 350, 350], | 162 test_rect=[0, 0, 350, 350], |
163 revision=1, | 163 revision=2, |
164 browser_args=browser_args), | 164 browser_args=browser_args), |
165 | 165 |
166 PixelTestPage( | 166 PixelTestPage( |
167 'pixel_offscreenCanvas_webgl_commit_main.html', | 167 'pixel_offscreenCanvas_webgl_commit_main.html', |
168 base_name + '_OffscreenCanvasWebGLSoftwareCompositing', | 168 base_name + '_OffscreenCanvasWebGLSoftwareCompositing', |
169 test_rect=[0, 0, 350, 350], | 169 test_rect=[0, 0, 350, 350], |
170 revision=2, | 170 revision=2, |
171 browser_args=browser_args + ['--disable-gpu-compositing']), | 171 browser_args=browser_args + ['--disable-gpu-compositing']), |
172 | 172 |
173 PixelTestPage( | 173 PixelTestPage( |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
299 test_rect=[0, 0, 300, 300], | 299 test_rect=[0, 0, 300, 300], |
300 revision=3), | 300 revision=3), |
301 PixelTestPage( | 301 PixelTestPage( |
302 'filter_effects.html', | 302 'filter_effects.html', |
303 base_name + '_CSSFilterEffects_NoOverlays', | 303 base_name + '_CSSFilterEffects_NoOverlays', |
304 test_rect=[0, 0, 300, 300], | 304 test_rect=[0, 0, 300, 300], |
305 revision=3, | 305 revision=3, |
306 tolerance=10, | 306 tolerance=10, |
307 browser_args=['--disable-mac-overlays']), | 307 browser_args=['--disable-mac-overlays']), |
308 ] | 308 ] |
OLD | NEW |