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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
178 browser_args=browser_args), | 178 browser_args=browser_args), |
179 | 179 |
180 PixelTestPage( | 180 PixelTestPage( |
181 'pixel_offscreenCanvas_2d_commit_main.html', | 181 'pixel_offscreenCanvas_2d_commit_main.html', |
182 base_name + '_OffscreenCanvasUnaccelerated2D', | 182 base_name + '_OffscreenCanvasUnaccelerated2D', |
183 test_rect=[0, 0, 350, 350], | 183 test_rect=[0, 0, 350, 350], |
184 revision=1, | 184 revision=1, |
185 browser_args=browser_args + [ | 185 browser_args=browser_args + [ |
186 '--disable-accelerated-2d-canvas', | 186 '--disable-accelerated-2d-canvas', |
187 '--disable-gpu-compositing']), | 187 '--disable-gpu-compositing']), |
188 | |
189 PixelTestPage( | |
190 'pixel_offscreenCanvas_2d_commit_worker.html', | |
191 base_name + '_OffscreenCanvasUnaccelerated2DWorker', | |
192 test_rect=[0, 0, 350, 350], | |
193 revision=1, | |
194 browser_args=browser_args + [ | |
195 '--disable-accelerated-2d-canvas', | |
196 '--disable-gpu-compositing']), | |
Ken Russell (switch to Gerrit)
2016/09/30 23:04:40
At this point you could declare something like
| |
188 ] | 197 ] |
189 | 198 |
190 | 199 |
191 # Pages that should be run with various macOS specific command line | 200 # Pages that should be run with various macOS specific command line |
192 # arguments. | 201 # arguments. |
193 def MacSpecificPages(base_name): | 202 def MacSpecificPages(base_name): |
194 iosurface_2d_canvas_args = [ | 203 iosurface_2d_canvas_args = [ |
195 '--enable-accelerated-2d-canvas', | 204 '--enable-accelerated-2d-canvas', |
196 '--disable-display-list-2d-canvas'] | 205 '--disable-display-list-2d-canvas'] |
197 | 206 |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
245 test_rect=[0, 0, 300, 300], | 254 test_rect=[0, 0, 300, 300], |
246 revision=2), | 255 revision=2), |
247 PixelTestPage( | 256 PixelTestPage( |
248 'filter_effects.html', | 257 'filter_effects.html', |
249 base_name + '_CSSFilterEffects_NoOverlays', | 258 base_name + '_CSSFilterEffects_NoOverlays', |
250 test_rect=[0, 0, 300, 300], | 259 test_rect=[0, 0, 300, 300], |
251 revision=2, | 260 revision=2, |
252 tolerance=10, | 261 tolerance=10, |
253 browser_args=['--disable-mac-overlays']), | 262 browser_args=['--disable-mac-overlays']), |
254 ] | 263 ] |
OLD | NEW |