| 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 tolerance=2, browser_args=None, expected_colors=None): | 10 tolerance=2, browser_args=None, expected_colors=None): |
| (...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 'pixel_offscreenCanvas_transfer_before_style_resize.html', | 299 'pixel_offscreenCanvas_transfer_before_style_resize.html', |
| 300 base_name + '_OffscreenCanvasTransferBeforeStyleResize', | 300 base_name + '_OffscreenCanvasTransferBeforeStyleResize', |
| 301 test_rect=[0, 0, 350, 350], | 301 test_rect=[0, 0, 350, 350], |
| 302 revision=1, | 302 revision=1, |
| 303 browser_args=browser_args), | 303 browser_args=browser_args), |
| 304 | 304 |
| 305 PixelTestPage( | 305 PixelTestPage( |
| 306 'pixel_offscreenCanvas_transferToImageBitmap_main.html', | 306 'pixel_offscreenCanvas_transferToImageBitmap_main.html', |
| 307 base_name + '_OffscreenCanvasTransferToImageBitmap', | 307 base_name + '_OffscreenCanvasTransferToImageBitmap', |
| 308 test_rect=[0, 0, 300, 300], | 308 test_rect=[0, 0, 300, 300], |
| 309 revision=1, | 309 revision=2, |
| 310 browser_args=browser_args), | 310 browser_args=browser_args), |
| 311 | 311 |
| 312 PixelTestPage( | 312 PixelTestPage( |
| 313 'pixel_offscreenCanvas_transferToImageBitmap_worker.html', | 313 'pixel_offscreenCanvas_transferToImageBitmap_worker.html', |
| 314 base_name + '_OffscreenCanvasTransferToImageBitmapWorker', | 314 base_name + '_OffscreenCanvasTransferToImageBitmapWorker', |
| 315 test_rect=[0, 0, 300, 300], | 315 test_rect=[0, 0, 300, 300], |
| 316 revision=1, | 316 revision=2, |
| 317 browser_args=browser_args), | 317 browser_args=browser_args), |
| 318 | 318 |
| 319 PixelTestPage( | 319 PixelTestPage( |
| 320 'pixel_offscreenCanvas_webgl_commit_main.html', | 320 'pixel_offscreenCanvas_webgl_commit_main.html', |
| 321 base_name + '_OffscreenCanvasWebGLDefault', | 321 base_name + '_OffscreenCanvasWebGLDefault', |
| 322 test_rect=[0, 0, 400, 200], | 322 test_rect=[0, 0, 400, 200], |
| 323 revision=3, | 323 revision=3, |
| 324 browser_args=browser_args), | 324 browser_args=browser_args), |
| 325 | 325 |
| 326 PixelTestPage( | 326 PixelTestPage( |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 480 test_rect=[0, 0, 300, 300], | 480 test_rect=[0, 0, 300, 300], |
| 481 revision=4), | 481 revision=4), |
| 482 PixelTestPage( | 482 PixelTestPage( |
| 483 'filter_effects.html', | 483 'filter_effects.html', |
| 484 base_name + '_CSSFilterEffects_NoOverlays', | 484 base_name + '_CSSFilterEffects_NoOverlays', |
| 485 test_rect=[0, 0, 300, 300], | 485 test_rect=[0, 0, 300, 300], |
| 486 revision=4, | 486 revision=4, |
| 487 tolerance=10, | 487 tolerance=10, |
| 488 browser_args=['--disable-mac-overlays']), | 488 browser_args=['--disable-mac-overlays']), |
| 489 ] | 489 ] |
| OLD | NEW |