Chromium Code Reviews| 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 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 284 base_name + '_WebGLGreenTriangle_NonChromiumImage_AA_NoAlpha', | 284 base_name + '_WebGLGreenTriangle_NonChromiumImage_AA_NoAlpha', |
| 285 test_rect=[0, 0, 300, 300], | 285 test_rect=[0, 0, 300, 300], |
| 286 revision=1, | 286 revision=1, |
| 287 browser_args=non_chromium_image_args), | 287 browser_args=non_chromium_image_args), |
| 288 PixelTestPage( | 288 PixelTestPage( |
| 289 'pixel_webgl_noaa_noalpha.html', | 289 'pixel_webgl_noaa_noalpha.html', |
| 290 base_name + '_WebGLGreenTriangle_NonChromiumImage_NoAA_NoAlpha', | 290 base_name + '_WebGLGreenTriangle_NonChromiumImage_NoAA_NoAlpha', |
| 291 test_rect=[0, 0, 300, 300], | 291 test_rect=[0, 0, 300, 300], |
| 292 revision=1, | 292 revision=1, |
| 293 browser_args=non_chromium_image_args), | 293 browser_args=non_chromium_image_args), |
| 294 PixelTestPage( | |
| 295 'pixel_webgl_noalpha_implicit_clear.html', | |
| 296 base_name + '_WebGLGreenTriangle_NonChromiumImage_ImplicitClear', | |
| 297 test_rect=[0, 0, 300, 300], | |
| 298 revision=1, | |
| 299 browser_args=non_chromium_image_args), | |
|
Ken Russell (switch to Gerrit)
2016/12/01 07:20:43
Please add the new page to the set of DefaultPages
Kai Ninomiya
2016/12/01 23:30:19
Done.
| |
| 294 | 300 |
| 295 # On macOS, test CSS filter effects with and without the CA compositor. | 301 # On macOS, test CSS filter effects with and without the CA compositor. |
| 296 PixelTestPage( | 302 PixelTestPage( |
| 297 'filter_effects.html', | 303 'filter_effects.html', |
| 298 base_name + '_CSSFilterEffects', | 304 base_name + '_CSSFilterEffects', |
| 299 test_rect=[0, 0, 300, 300], | 305 test_rect=[0, 0, 300, 300], |
| 300 revision=3), | 306 revision=3), |
| 301 PixelTestPage( | 307 PixelTestPage( |
| 302 'filter_effects.html', | 308 'filter_effects.html', |
| 303 base_name + '_CSSFilterEffects_NoOverlays', | 309 base_name + '_CSSFilterEffects_NoOverlays', |
| 304 test_rect=[0, 0, 300, 300], | 310 test_rect=[0, 0, 300, 300], |
| 305 revision=3, | 311 revision=3, |
| 306 tolerance=10, | 312 tolerance=10, |
| 307 browser_args=['--disable-mac-overlays']), | 313 browser_args=['--disable-mac-overlays']), |
| 308 ] | 314 ] |
| OLD | NEW |