| 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 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 329 'pixel_offscreenCanvas_webgl_commit_worker.html', | 329 'pixel_offscreenCanvas_webgl_commit_worker.html', |
| 330 base_name + '_OffscreenCanvasWebGLSoftwareCompositingWorker', | 330 base_name + '_OffscreenCanvasWebGLSoftwareCompositingWorker', |
| 331 test_rect=[0, 0, 350, 350], | 331 test_rect=[0, 0, 350, 350], |
| 332 revision=2, | 332 revision=2, |
| 333 browser_args=browser_args + ['--disable-gpu-compositing']), | 333 browser_args=browser_args + ['--disable-gpu-compositing']), |
| 334 | 334 |
| 335 PixelTestPage( | 335 PixelTestPage( |
| 336 'pixel_offscreenCanvas_2d_commit_main.html', | 336 'pixel_offscreenCanvas_2d_commit_main.html', |
| 337 base_name + '_OffscreenCanvasAccelerated2D', | 337 base_name + '_OffscreenCanvasAccelerated2D', |
| 338 test_rect=[0, 0, 300, 300], | 338 test_rect=[0, 0, 300, 300], |
| 339 revision=2, | 339 revision=3, |
| 340 browser_args=browser_args), | 340 browser_args=browser_args), |
| 341 | 341 |
| 342 PixelTestPage( | 342 PixelTestPage( |
| 343 'pixel_offscreenCanvas_2d_commit_worker.html', | 343 'pixel_offscreenCanvas_2d_commit_worker.html', |
| 344 base_name + '_OffscreenCanvasAccelerated2DWorker', | 344 base_name + '_OffscreenCanvasAccelerated2DWorker', |
| 345 test_rect=[0, 0, 300, 300], | 345 test_rect=[0, 0, 300, 300], |
| 346 revision=2, | 346 revision=3, |
| 347 browser_args=browser_args), | 347 browser_args=browser_args), |
| 348 | 348 |
| 349 PixelTestPage( | 349 PixelTestPage( |
| 350 'pixel_offscreenCanvas_2d_commit_main.html', | 350 'pixel_offscreenCanvas_2d_commit_main.html', |
| 351 base_name + '_OffscreenCanvasUnaccelerated2D', | 351 base_name + '_OffscreenCanvasUnaccelerated2D', |
| 352 test_rect=[0, 0, 300, 300], | 352 test_rect=[0, 0, 300, 300], |
| 353 revision=2, | 353 revision=2, |
| 354 browser_args=browser_args + unaccelerated_args), | 354 browser_args=browser_args + unaccelerated_args), |
| 355 | 355 |
| 356 PixelTestPage( | 356 PixelTestPage( |
| (...skipping 14 matching lines...) Expand all Loading... |
| 371 'pixel_offscreenCanvas_2d_commit_worker.html', | 371 'pixel_offscreenCanvas_2d_commit_worker.html', |
| 372 base_name + '_OffscreenCanvasUnaccelerated2DGPUCompositingWorker', | 372 base_name + '_OffscreenCanvasUnaccelerated2DGPUCompositingWorker', |
| 373 test_rect=[0, 0, 300, 300], | 373 test_rect=[0, 0, 300, 300], |
| 374 revision=4, | 374 revision=4, |
| 375 browser_args=browser_args + ['--disable-accelerated-2d-canvas']), | 375 browser_args=browser_args + ['--disable-accelerated-2d-canvas']), |
| 376 | 376 |
| 377 PixelTestPage( | 377 PixelTestPage( |
| 378 'pixel_offscreenCanvas_2d_resize_on_worker.html', | 378 'pixel_offscreenCanvas_2d_resize_on_worker.html', |
| 379 base_name + '_OffscreenCanvas2DResizeOnWorker', | 379 base_name + '_OffscreenCanvas2DResizeOnWorker', |
| 380 test_rect=[0, 0, 200, 200], | 380 test_rect=[0, 0, 200, 200], |
| 381 revision=1, | 381 revision=2, |
| 382 browser_args=browser_args), | 382 browser_args=browser_args), |
| 383 | 383 |
| 384 PixelTestPage( | 384 PixelTestPage( |
| 385 'pixel_offscreenCanvas_webgl_resize_on_worker.html', | 385 'pixel_offscreenCanvas_webgl_resize_on_worker.html', |
| 386 base_name + '_OffscreenCanvasWebglResizeOnWorker', | 386 base_name + '_OffscreenCanvasWebglResizeOnWorker', |
| 387 test_rect=[0, 0, 200, 200], | 387 test_rect=[0, 0, 200, 200], |
| 388 revision=1, | 388 revision=1, |
| 389 browser_args=browser_args), | 389 browser_args=browser_args), |
| 390 | 390 |
| 391 PixelTestPage( | 391 PixelTestPage( |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 468 test_rect=[0, 0, 300, 300], | 468 test_rect=[0, 0, 300, 300], |
| 469 revision=4), | 469 revision=4), |
| 470 PixelTestPage( | 470 PixelTestPage( |
| 471 'filter_effects.html', | 471 'filter_effects.html', |
| 472 base_name + '_CSSFilterEffects_NoOverlays', | 472 base_name + '_CSSFilterEffects_NoOverlays', |
| 473 test_rect=[0, 0, 300, 300], | 473 test_rect=[0, 0, 300, 300], |
| 474 revision=4, | 474 revision=4, |
| 475 tolerance=10, | 475 tolerance=10, |
| 476 browser_args=['--disable-mac-overlays']), | 476 browser_args=['--disable-mac-overlays']), |
| 477 ] | 477 ] |
| OLD | NEW |