| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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=15), |
| 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=2), |
| 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', |
| 72 test_rect=[0, 0, 300, 300], | 72 test_rect=[0, 0, 300, 300], |
| 73 revision=1), | 73 revision=2), |
| 74 | 74 |
| 75 PixelTestPage( | 75 PixelTestPage( |
| 76 'pixel_webgl_aa_noalpha.html', | 76 'pixel_webgl_aa_noalpha.html', |
| 77 base_name + '_WebGLGreenTriangle_AA_NoAlpha', | 77 base_name + '_WebGLGreenTriangle_AA_NoAlpha', |
| 78 test_rect=[0, 0, 300, 300], | 78 test_rect=[0, 0, 300, 300], |
| 79 revision=1), | 79 revision=2), |
| 80 | 80 |
| 81 PixelTestPage( | 81 PixelTestPage( |
| 82 'pixel_webgl_noaa_noalpha.html', | 82 'pixel_webgl_noaa_noalpha.html', |
| 83 base_name + '_WebGLGreenTriangle_NoAA_NoAlpha', | 83 base_name + '_WebGLGreenTriangle_NoAA_NoAlpha', |
| 84 test_rect=[0, 0, 300, 300], | 84 test_rect=[0, 0, 300, 300], |
| 85 revision=1), | 85 revision=2), |
| 86 | 86 |
| 87 PixelTestPage( | 87 PixelTestPage( |
| 88 'pixel_webgl_noalpha_implicit_clear.html', | 88 'pixel_webgl_noalpha_implicit_clear.html', |
| 89 base_name + '_WebGLTransparentGreenTriangle_NoAlpha_ImplicitClear', | 89 base_name + '_WebGLTransparentGreenTriangle_NoAlpha_ImplicitClear', |
| 90 test_rect=[0, 0, 300, 300], | 90 test_rect=[0, 0, 300, 300], |
| 91 revision=1), | 91 revision=1), |
| 92 | 92 |
| 93 PixelTestPage( | 93 PixelTestPage( |
| 94 'pixel_scissor.html', | 94 'pixel_scissor.html', |
| 95 base_name + '_ScissorTestWithPreserveDrawingBuffer', | 95 base_name + '_ScissorTestWithPreserveDrawingBuffer', |
| (...skipping 20 matching lines...) Expand all Loading... |
| 116 'size': [188, 8], | 116 'size': [188, 8], |
| 117 'color': [255, 0, 0], | 117 'color': [255, 0, 0], |
| 118 'tolerance': 3 | 118 'tolerance': 3 |
| 119 } | 119 } |
| 120 ]), | 120 ]), |
| 121 | 121 |
| 122 PixelTestPage( | 122 PixelTestPage( |
| 123 'pixel_canvas2d_webgl.html', | 123 'pixel_canvas2d_webgl.html', |
| 124 base_name + '_2DCanvasWebGL', | 124 base_name + '_2DCanvasWebGL', |
| 125 test_rect=[0, 0, 300, 300], | 125 test_rect=[0, 0, 300, 300], |
| 126 revision=3), | 126 revision=4), |
| 127 | 127 |
| 128 PixelTestPage( | 128 PixelTestPage( |
| 129 'pixel_background.html', | 129 'pixel_background.html', |
| 130 base_name + '_SolidColorBackground', | 130 base_name + '_SolidColorBackground', |
| 131 test_rect=[500, 500, 100, 100], | 131 test_rect=[500, 500, 100, 100], |
| 132 revision=1), | 132 revision=1), |
| 133 ] | 133 ] |
| 134 | 134 |
| 135 | 135 |
| 136 # Pages that should be run with experimental canvas features. | 136 # Pages that should be run with experimental canvas features. |
| (...skipping 15 matching lines...) Expand all Loading... |
| 152 'pixel_offscreenCanvas_transferToImageBitmap_worker.html', | 152 'pixel_offscreenCanvas_transferToImageBitmap_worker.html', |
| 153 base_name + '_OffscreenCanvasTransferToImageBitmapWorker', | 153 base_name + '_OffscreenCanvasTransferToImageBitmapWorker', |
| 154 test_rect=[0, 0, 300, 300], | 154 test_rect=[0, 0, 300, 300], |
| 155 revision=1, | 155 revision=1, |
| 156 browser_args=browser_args), | 156 browser_args=browser_args), |
| 157 | 157 |
| 158 PixelTestPage( | 158 PixelTestPage( |
| 159 'pixel_offscreenCanvas_webgl_commit_main.html', | 159 'pixel_offscreenCanvas_webgl_commit_main.html', |
| 160 base_name + '_OffscreenCanvasWebGLDefault', | 160 base_name + '_OffscreenCanvasWebGLDefault', |
| 161 test_rect=[0, 0, 350, 350], | 161 test_rect=[0, 0, 350, 350], |
| 162 revision=1, | 162 revision=2, |
| 163 browser_args=browser_args), | 163 browser_args=browser_args), |
| 164 | 164 |
| 165 PixelTestPage( | 165 PixelTestPage( |
| 166 'pixel_offscreenCanvas_webgl_commit_worker.html', | 166 'pixel_offscreenCanvas_webgl_commit_worker.html', |
| 167 base_name + '_OffscreenCanvasWebGLDefaultWorker', | 167 base_name + '_OffscreenCanvasWebGLDefaultWorker', |
| 168 test_rect=[0, 0, 350, 350], | 168 test_rect=[0, 0, 350, 350], |
| 169 revision=1, | 169 revision=2, |
| 170 browser_args=browser_args), | 170 browser_args=browser_args), |
| 171 | 171 |
| 172 PixelTestPage( | 172 PixelTestPage( |
| 173 'pixel_offscreenCanvas_webgl_commit_main.html', | 173 'pixel_offscreenCanvas_webgl_commit_main.html', |
| 174 base_name + '_OffscreenCanvasWebGLSoftwareCompositing', | 174 base_name + '_OffscreenCanvasWebGLSoftwareCompositing', |
| 175 test_rect=[0, 0, 350, 350], | 175 test_rect=[0, 0, 350, 350], |
| 176 revision=2, | 176 revision=2, |
| 177 browser_args=browser_args + ['--disable-gpu-compositing']), | 177 browser_args=browser_args + ['--disable-gpu-compositing']), |
| 178 | 178 |
| 179 PixelTestPage( | 179 PixelTestPage( |
| (...skipping 125 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 |