OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 from telemetry.story import story_set as story_set_module | 5 from telemetry.story import story_set as story_set_module |
6 | 6 |
7 import sys | 7 import sys |
8 | 8 |
9 from gpu_tests import gpu_test_base | 9 from gpu_tests import gpu_test_base |
10 | 10 |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 | 160 |
161 def _AddAllPages(self, expectations, base_name, use_es3): | 161 def _AddAllPages(self, expectations, base_name, use_es3): |
162 if use_es3: | 162 if use_es3: |
163 es3_suffix = 'ES3' | 163 es3_suffix = 'ES3' |
164 shared_page_state_class = PixelTestsES3SharedPageState | 164 shared_page_state_class = PixelTestsES3SharedPageState |
165 else: | 165 else: |
166 es3_suffix = '' | 166 es3_suffix = '' |
167 shared_page_state_class = gpu_test_base.GpuSharedPageState | 167 shared_page_state_class = gpu_test_base.GpuSharedPageState |
168 | 168 |
169 self.AddStory(PixelTestsPage( | 169 self.AddStory(PixelTestsPage( |
| 170 url='file://../../data/gpu/pixel_offscreenCanvas_webgl_commit_main.html', |
| 171 name=base_name + '.OffscreenCanvasWebGLGreenBox' + es3_suffix, |
| 172 test_rect=[0, 0, 300, 300], |
| 173 revision=1, |
| 174 story_set=self, |
| 175 shared_page_state_class=shared_page_state_class, |
| 176 expectations=expectations)) |
| 177 |
| 178 self.AddStory(PixelTestsPage( |
170 url='file://../../data/gpu/pixel_canvas2d.html', | 179 url='file://../../data/gpu/pixel_canvas2d.html', |
171 name=base_name + '.Canvas2DRedBox' + es3_suffix, | 180 name=base_name + '.Canvas2DRedBox' + es3_suffix, |
172 test_rect=[0, 0, 300, 300], | 181 test_rect=[0, 0, 300, 300], |
173 revision=7, | 182 revision=7, |
174 story_set=self, | 183 story_set=self, |
175 shared_page_state_class=shared_page_state_class, | 184 shared_page_state_class=shared_page_state_class, |
176 expectations=expectations)) | 185 expectations=expectations)) |
177 | 186 |
178 self.AddStory(PixelTestsPage( | 187 self.AddStory(PixelTestsPage( |
179 url='file://../../data/gpu/pixel_css3d.html', | 188 url='file://../../data/gpu/pixel_css3d.html', |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 story_set=self, | 256 story_set=self, |
248 shared_page_state_class=shared_page_state_class, | 257 shared_page_state_class=shared_page_state_class, |
249 expectations=expectations)) | 258 expectations=expectations)) |
250 | 259 |
251 @property | 260 @property |
252 def allow_mixed_story_states(self): | 261 def allow_mixed_story_states(self): |
253 # Return True here in order to be able to add the same tests with | 262 # Return True here in order to be able to add the same tests with |
254 # a different SharedPageState on Mac which tests them with the | 263 # a different SharedPageState on Mac which tests them with the |
255 # Core Profile rendering path. | 264 # Core Profile rendering path. |
256 return True | 265 return True |
OLD | NEW |