| 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 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 300 PixelTestPage( | 300 PixelTestPage( |
| 301 'pixel_offscreenCanvas_transferToImageBitmap_worker.html', | 301 'pixel_offscreenCanvas_transferToImageBitmap_worker.html', |
| 302 base_name + '_OffscreenCanvasTransferToImageBitmapWorker', | 302 base_name + '_OffscreenCanvasTransferToImageBitmapWorker', |
| 303 test_rect=[0, 0, 300, 300], | 303 test_rect=[0, 0, 300, 300], |
| 304 revision=1, | 304 revision=1, |
| 305 browser_args=browser_args), | 305 browser_args=browser_args), |
| 306 | 306 |
| 307 PixelTestPage( | 307 PixelTestPage( |
| 308 'pixel_offscreenCanvas_webgl_commit_main.html', | 308 'pixel_offscreenCanvas_webgl_commit_main.html', |
| 309 base_name + '_OffscreenCanvasWebGLDefault', | 309 base_name + '_OffscreenCanvasWebGLDefault', |
| 310 test_rect=[0, 0, 600, 300], | 310 test_rect=[0, 0, 400, 200], |
| 311 revision=2, | 311 revision=3, |
| 312 browser_args=browser_args), | 312 browser_args=browser_args), |
| 313 | 313 |
| 314 PixelTestPage( | 314 PixelTestPage( |
| 315 'pixel_offscreenCanvas_webgl_commit_worker.html', | 315 'pixel_offscreenCanvas_webgl_commit_worker.html', |
| 316 base_name + '_OffscreenCanvasWebGLDefaultWorker', | 316 base_name + '_OffscreenCanvasWebGLDefaultWorker', |
| 317 test_rect=[0, 0, 600, 300], | 317 test_rect=[0, 0, 400, 200], |
| 318 revision=2, | 318 revision=3, |
| 319 browser_args=browser_args), | 319 browser_args=browser_args), |
| 320 | 320 |
| 321 PixelTestPage( | 321 PixelTestPage( |
| 322 'pixel_offscreenCanvas_webgl_commit_main.html', | 322 'pixel_offscreenCanvas_webgl_commit_main.html', |
| 323 base_name + '_OffscreenCanvasWebGLSoftwareCompositing', | 323 base_name + '_OffscreenCanvasWebGLSoftwareCompositing', |
| 324 test_rect=[0, 0, 600, 300], | 324 test_rect=[0, 0, 400, 200], |
| 325 revision=3, | 325 revision=4, |
| 326 browser_args=browser_args + ['--disable-gpu-compositing']), | 326 browser_args=browser_args + ['--disable-gpu-compositing']), |
| 327 | 327 |
| 328 PixelTestPage( | 328 PixelTestPage( |
| 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, 600, 300], | 331 test_rect=[0, 0, 400, 200], |
| 332 revision=3, | 332 revision=4, |
| 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, 600, 300], | 338 test_rect=[0, 0, 400, 200], |
| 339 revision=4, | 339 revision=5, |
| 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, 600, 300], | 345 test_rect=[0, 0, 400, 200], |
| 346 revision=4, | 346 revision=5, |
| 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, 600, 300], | 352 test_rect=[0, 0, 400, 200], |
| 353 revision=3, | 353 revision=4, |
| 354 browser_args=browser_args + unaccelerated_args), | 354 browser_args=browser_args + unaccelerated_args), |
| 355 | 355 |
| 356 PixelTestPage( | 356 PixelTestPage( |
| 357 'pixel_offscreenCanvas_2d_commit_worker.html', | 357 'pixel_offscreenCanvas_2d_commit_worker.html', |
| 358 base_name + '_OffscreenCanvasUnaccelerated2DWorker', | 358 base_name + '_OffscreenCanvasUnaccelerated2DWorker', |
| 359 test_rect=[0, 0, 600, 300], | 359 test_rect=[0, 0, 400, 200], |
| 360 revision=3, | 360 revision=4, |
| 361 browser_args=browser_args + unaccelerated_args), | 361 browser_args=browser_args + unaccelerated_args), |
| 362 | 362 |
| 363 PixelTestPage( | 363 PixelTestPage( |
| 364 'pixel_offscreenCanvas_2d_commit_main.html', | 364 'pixel_offscreenCanvas_2d_commit_main.html', |
| 365 base_name + '_OffscreenCanvasUnaccelerated2DGPUCompositing', | 365 base_name + '_OffscreenCanvasUnaccelerated2DGPUCompositing', |
| 366 test_rect=[0, 0, 600, 300], | 366 test_rect=[0, 0, 400, 200], |
| 367 revision=5, | 367 revision=6, |
| 368 browser_args=browser_args + ['--disable-accelerated-2d-canvas']), | 368 browser_args=browser_args + ['--disable-accelerated-2d-canvas']), |
| 369 | 369 |
| 370 PixelTestPage( | 370 PixelTestPage( |
| 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, 600, 300], | 373 test_rect=[0, 0, 400, 200], |
| 374 revision=5, | 374 revision=6, |
| 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=2, | 381 revision=2, |
| 382 browser_args=browser_args), | 382 browser_args=browser_args), |
| 383 | 383 |
| 384 PixelTestPage( | 384 PixelTestPage( |
| (...skipping 83 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 |