| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 PixelTestPage( | 60 PixelTestPage( |
| 61 'pixel_css3d.html', | 61 'pixel_css3d.html', |
| 62 base_name + '_CSS3DBlueBox', | 62 base_name + '_CSS3DBlueBox', |
| 63 test_rect=[0, 0, 300, 300], | 63 test_rect=[0, 0, 300, 300], |
| 64 revision=15), | 64 revision=15), |
| 65 | 65 |
| 66 PixelTestPage( | 66 PixelTestPage( |
| 67 'pixel_webgl_aa_alpha.html', | 67 'pixel_webgl_aa_alpha.html', |
| 68 base_name + '_WebGLGreenTriangle_AA_Alpha', | 68 base_name + '_WebGLGreenTriangle_AA_Alpha', |
| 69 test_rect=[0, 0, 300, 300], | 69 test_rect=[0, 0, 300, 300], |
| 70 revision=2), | 70 revision=1), |
| 71 | 71 |
| 72 PixelTestPage( | 72 PixelTestPage( |
| 73 'pixel_webgl_noaa_alpha.html', | 73 'pixel_webgl_noaa_alpha.html', |
| 74 base_name + '_WebGLGreenTriangle_NoAA_Alpha', | 74 base_name + '_WebGLGreenTriangle_NoAA_Alpha', |
| 75 test_rect=[0, 0, 300, 300], | 75 test_rect=[0, 0, 300, 300], |
| 76 revision=2), | 76 revision=1), |
| 77 | 77 |
| 78 PixelTestPage( | 78 PixelTestPage( |
| 79 'pixel_webgl_aa_noalpha.html', | 79 'pixel_webgl_aa_noalpha.html', |
| 80 base_name + '_WebGLGreenTriangle_AA_NoAlpha', | 80 base_name + '_WebGLGreenTriangle_AA_NoAlpha', |
| 81 test_rect=[0, 0, 300, 300], | 81 test_rect=[0, 0, 300, 300], |
| 82 revision=2), | 82 revision=1), |
| 83 | 83 |
| 84 PixelTestPage( | 84 PixelTestPage( |
| 85 'pixel_webgl_noaa_noalpha.html', | 85 'pixel_webgl_noaa_noalpha.html', |
| 86 base_name + '_WebGLGreenTriangle_NoAA_NoAlpha', | 86 base_name + '_WebGLGreenTriangle_NoAA_NoAlpha', |
| 87 test_rect=[0, 0, 300, 300], | 87 test_rect=[0, 0, 300, 300], |
| 88 revision=2), | 88 revision=1), |
| 89 | 89 |
| 90 PixelTestPage( | 90 PixelTestPage( |
| 91 'pixel_scissor.html', | 91 'pixel_scissor.html', |
| 92 base_name + '_ScissorTestWithPreserveDrawingBuffer', | 92 base_name + '_ScissorTestWithPreserveDrawingBuffer', |
| 93 test_rect=[0, 0, 300, 300], | 93 test_rect=[0, 0, 300, 300], |
| 94 revision=0, # This is not used. | 94 revision=0, # This is not used. |
| 95 expected_colors=[ | 95 expected_colors=[ |
| 96 { | 96 { |
| 97 'comment': 'red top', | 97 'comment': 'red top', |
| 98 'location': [1, 1], | 98 'location': [1, 1], |
| (...skipping 14 matching lines...) Expand all Loading... |
| 113 'size': [188, 8], | 113 'size': [188, 8], |
| 114 'color': [255, 0, 0], | 114 'color': [255, 0, 0], |
| 115 'tolerance': 3 | 115 'tolerance': 3 |
| 116 } | 116 } |
| 117 ]), | 117 ]), |
| 118 | 118 |
| 119 PixelTestPage( | 119 PixelTestPage( |
| 120 'pixel_canvas2d_webgl.html', | 120 'pixel_canvas2d_webgl.html', |
| 121 base_name + '_2DCanvasWebGL', | 121 base_name + '_2DCanvasWebGL', |
| 122 test_rect=[0, 0, 300, 300], | 122 test_rect=[0, 0, 300, 300], |
| 123 revision=4), | 123 revision=3), |
| 124 | 124 |
| 125 PixelTestPage( | 125 PixelTestPage( |
| 126 'pixel_background.html', | 126 'pixel_background.html', |
| 127 base_name + '_SolidColorBackground', | 127 base_name + '_SolidColorBackground', |
| 128 test_rect=[500, 500, 100, 100], | 128 test_rect=[500, 500, 100, 100], |
| 129 revision=1), | 129 revision=1), |
| 130 ] | 130 ] |
| 131 | 131 |
| 132 | 132 |
| 133 # Pages that should be run with experimental canvas features. | 133 # Pages that should be run with experimental canvas features. |
| (...skipping 15 matching lines...) Expand all Loading... |
| 149 'pixel_offscreenCanvas_transferToImageBitmap_worker.html', | 149 'pixel_offscreenCanvas_transferToImageBitmap_worker.html', |
| 150 base_name + '_OffscreenCanvasTransferToImageBitmapWorker', | 150 base_name + '_OffscreenCanvasTransferToImageBitmapWorker', |
| 151 test_rect=[0, 0, 300, 300], | 151 test_rect=[0, 0, 300, 300], |
| 152 revision=1, | 152 revision=1, |
| 153 browser_args=browser_args), | 153 browser_args=browser_args), |
| 154 | 154 |
| 155 PixelTestPage( | 155 PixelTestPage( |
| 156 'pixel_offscreenCanvas_webgl_commit_main.html', | 156 'pixel_offscreenCanvas_webgl_commit_main.html', |
| 157 base_name + '_OffscreenCanvasWebGLDefault', | 157 base_name + '_OffscreenCanvasWebGLDefault', |
| 158 test_rect=[0, 0, 350, 350], | 158 test_rect=[0, 0, 350, 350], |
| 159 revision=2, | 159 revision=1, |
| 160 browser_args=browser_args), | 160 browser_args=browser_args), |
| 161 | 161 |
| 162 PixelTestPage( | 162 PixelTestPage( |
| 163 'pixel_offscreenCanvas_webgl_commit_worker.html', | 163 'pixel_offscreenCanvas_webgl_commit_worker.html', |
| 164 base_name + '_OffscreenCanvasWebGLDefaultWorker', | 164 base_name + '_OffscreenCanvasWebGLDefaultWorker', |
| 165 test_rect=[0, 0, 350, 350], | 165 test_rect=[0, 0, 350, 350], |
| 166 revision=2, | 166 revision=1, |
| 167 browser_args=browser_args), | 167 browser_args=browser_args), |
| 168 | 168 |
| 169 PixelTestPage( | 169 PixelTestPage( |
| 170 'pixel_offscreenCanvas_webgl_commit_main.html', | 170 'pixel_offscreenCanvas_webgl_commit_main.html', |
| 171 base_name + '_OffscreenCanvasWebGLSoftwareCompositing', | 171 base_name + '_OffscreenCanvasWebGLSoftwareCompositing', |
| 172 test_rect=[0, 0, 350, 350], | 172 test_rect=[0, 0, 350, 350], |
| 173 revision=2, | 173 revision=2, |
| 174 browser_args=browser_args + ['--disable-gpu-compositing']), | 174 browser_args=browser_args + ['--disable-gpu-compositing']), |
| 175 | 175 |
| 176 PixelTestPage( | 176 PixelTestPage( |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 302 test_rect=[0, 0, 300, 300], | 302 test_rect=[0, 0, 300, 300], |
| 303 revision=3), | 303 revision=3), |
| 304 PixelTestPage( | 304 PixelTestPage( |
| 305 'filter_effects.html', | 305 'filter_effects.html', |
| 306 base_name + '_CSSFilterEffects_NoOverlays', | 306 base_name + '_CSSFilterEffects_NoOverlays', |
| 307 test_rect=[0, 0, 300, 300], | 307 test_rect=[0, 0, 300, 300], |
| 308 revision=3, | 308 revision=3, |
| 309 tolerance=10, | 309 tolerance=10, |
| 310 browser_args=['--disable-mac-overlays']), | 310 browser_args=['--disable-mac-overlays']), |
| 311 ] | 311 ] |
| OLD | NEW |