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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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=3), |
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 |
| 134 PixelTestPage( |
| 135 'pixel_video_mp4.html', |
| 136 base_name + '_Video_MP4', |
| 137 test_rect=[0, 0, 400, 300], |
| 138 revision=1), |
| 139 |
| 140 PixelTestPage( |
| 141 'pixel_video_vp9.html', |
| 142 base_name + '_Video_VP9', |
| 143 test_rect=[0, 0, 400, 300], |
| 144 revision=1), |
133 ] | 145 ] |
134 | 146 |
135 | 147 |
136 # Pages that should be run with GPU rasterization enabled. | 148 # Pages that should be run with GPU rasterization enabled. |
137 def GpuRasterizationPages(base_name): | 149 def GpuRasterizationPages(base_name): |
138 browser_args = ['--force-gpu-rasterization'] | 150 browser_args = ['--force-gpu-rasterization'] |
139 return [ | 151 return [ |
140 PixelTestPage( | 152 PixelTestPage( |
141 'pixel_background.html', | 153 'pixel_background.html', |
142 base_name + '_GpuRasterization_BlueBox', | 154 base_name + '_GpuRasterization_BlueBox', |
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
468 test_rect=[0, 0, 300, 300], | 480 test_rect=[0, 0, 300, 300], |
469 revision=4), | 481 revision=4), |
470 PixelTestPage( | 482 PixelTestPage( |
471 'filter_effects.html', | 483 'filter_effects.html', |
472 base_name + '_CSSFilterEffects_NoOverlays', | 484 base_name + '_CSSFilterEffects_NoOverlays', |
473 test_rect=[0, 0, 300, 300], | 485 test_rect=[0, 0, 300, 300], |
474 revision=4, | 486 revision=4, |
475 tolerance=10, | 487 tolerance=10, |
476 browser_args=['--disable-mac-overlays']), | 488 browser_args=['--disable-mac-overlays']), |
477 ] | 489 ] |
OLD | NEW |