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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 PixelTestPage( | 51 PixelTestPage( |
52 'pixel_canvas2d.html', | 52 'pixel_canvas2d.html', |
53 base_name + '_Canvas2DRedBox', | 53 base_name + '_Canvas2DRedBox', |
54 test_rect=[0, 0, 300, 300], | 54 test_rect=[0, 0, 300, 300], |
55 revision=7), | 55 revision=7), |
56 | 56 |
57 PixelTestPage( | 57 PixelTestPage( |
58 'pixel_css3d.html', | 58 'pixel_css3d.html', |
59 base_name + '_CSS3DBlueBox', | 59 base_name + '_CSS3DBlueBox', |
60 test_rect=[0, 0, 300, 300], | 60 test_rect=[0, 0, 300, 300], |
61 revision=15), | 61 revision=16), |
62 | 62 |
63 PixelTestPage( | 63 PixelTestPage( |
64 'pixel_webgl_aa_alpha.html', | 64 'pixel_webgl_aa_alpha.html', |
65 base_name + '_WebGLGreenTriangle_AA_Alpha', | 65 base_name + '_WebGLGreenTriangle_AA_Alpha', |
66 test_rect=[0, 0, 300, 300], | 66 test_rect=[0, 0, 300, 300], |
67 revision=1), | 67 revision=1), |
68 | 68 |
69 PixelTestPage( | 69 PixelTestPage( |
70 'pixel_webgl_noaa_alpha.html', | 70 'pixel_webgl_noaa_alpha.html', |
71 base_name + '_WebGLGreenTriangle_NoAA_Alpha', | 71 base_name + '_WebGLGreenTriangle_NoAA_Alpha', |
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
305 test_rect=[0, 0, 300, 300], | 305 test_rect=[0, 0, 300, 300], |
306 revision=3), | 306 revision=3), |
307 PixelTestPage( | 307 PixelTestPage( |
308 'filter_effects.html', | 308 'filter_effects.html', |
309 base_name + '_CSSFilterEffects_NoOverlays', | 309 base_name + '_CSSFilterEffects_NoOverlays', |
310 test_rect=[0, 0, 300, 300], | 310 test_rect=[0, 0, 300, 300], |
311 revision=3, | 311 revision=3, |
312 tolerance=10, | 312 tolerance=10, |
313 browser_args=['--disable-mac-overlays']), | 313 browser_args=['--disable-mac-overlays']), |
314 ] | 314 ] |
OLD | NEW |