Chromium Code Reviews| 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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 168 | 168 |
| 169 def _AddAllPages(self, expectations, base_name, use_es3): | 169 def _AddAllPages(self, expectations, base_name, use_es3): |
| 170 if use_es3: | 170 if use_es3: |
| 171 es3_suffix = 'ES3' | 171 es3_suffix = 'ES3' |
| 172 shared_page_state_class = PixelTestsES3SharedPageState | 172 shared_page_state_class = PixelTestsES3SharedPageState |
| 173 else: | 173 else: |
| 174 es3_suffix = '' | 174 es3_suffix = '' |
| 175 shared_page_state_class = gpu_test_base.GpuSharedPageState | 175 shared_page_state_class = gpu_test_base.GpuSharedPageState |
| 176 | 176 |
| 177 self.AddStory(PixelTestsPage( | 177 self.AddStory(PixelTestsPage( |
| 178 url='file://../../data/gpu/pixel_offscreenCanvas_transferToImageBitmap_mai n.html', | |
| 179 name=base_name + '.OffscreenCanvasTransferToImageBitmap' + es3_suffix, | |
| 180 test_rect=[0, 0, 300, 300], | |
| 181 revision=1, | |
| 182 story_set=self, | |
| 183 shared_page_state_class=EnableExperimentalCanvasFeaturesSharedPageState, | |
| 184 expectations=expectations)) | |
| 185 | |
| 186 self.AddStory(PixelTestsPage( | |
| 187 url='file://../../data/gpu/pixel_offscreenCanvas_transferToImageBitmap_wor ker.html', | |
| 188 name=base_name + '.OffscreenCanvasTransferToImageBitmapWorker' + \ | |
| 189 es3_suffix, | |
| 190 test_rect=[0, 0, 300, 300], | |
| 191 revision=1, | |
| 192 story_set=self, | |
| 193 shared_page_state_class=EnableExperimentalCanvasFeaturesSharedPageState, | |
| 194 expectations=expectations)) | |
|
Ken Russell (switch to Gerrit)
2016/09/26 18:21:47
Could you add these two new pages in __init__, abo
xidachen
2016/09/26 19:24:03
Thank you for pointing it out. That makes perfect
| |
| 195 | |
| 196 self.AddStory(PixelTestsPage( | |
| 178 url='file://../../data/gpu/pixel_offscreenCanvas_webgl_commit_main.html', | 197 url='file://../../data/gpu/pixel_offscreenCanvas_webgl_commit_main.html', |
| 179 name=base_name + '.OffscreenCanvasWebGLGreenBox' + es3_suffix, | 198 name=base_name + '.OffscreenCanvasWebGLGreenBox' + es3_suffix, |
| 180 test_rect=[0, 0, 300, 300], | 199 test_rect=[0, 0, 300, 300], |
| 181 revision=1, | 200 revision=2, |
| 182 story_set=self, | 201 story_set=self, |
| 183 shared_page_state_class=EnableExperimentalCanvasFeaturesSharedPageState, | 202 shared_page_state_class=EnableExperimentalCanvasFeaturesSharedPageState, |
| 184 expectations=expectations)) | 203 expectations=expectations)) |
| 185 | 204 |
| 186 self.AddStory(PixelTestsPage( | 205 self.AddStory(PixelTestsPage( |
| 187 url='file://../../data/gpu/pixel_offscreenCanvas_webgl_commit_worker.html' , | 206 url='file://../../data/gpu/pixel_offscreenCanvas_webgl_commit_worker.html' , |
| 188 name=base_name + '.OffscreenCanvasWebGLRedBoxWorker' + es3_suffix, | 207 name=base_name + '.OffscreenCanvasWebGLRedBoxWorker' + es3_suffix, |
| 189 test_rect=[0, 0, 300, 300], | 208 test_rect=[0, 0, 300, 300], |
| 190 revision=2, | 209 revision=3, |
| 191 story_set=self, | 210 story_set=self, |
| 192 shared_page_state_class=EnableExperimentalCanvasFeaturesSharedPageState, | 211 shared_page_state_class=EnableExperimentalCanvasFeaturesSharedPageState, |
| 193 expectations=expectations)) | 212 expectations=expectations)) |
| 194 | 213 |
| 195 self.AddStory(PixelTestsPage( | 214 self.AddStory(PixelTestsPage( |
| 196 url='file://../../data/gpu/pixel_acceleratedOffscreen2d_commit_main.html', | 215 url='file://../../data/gpu/pixel_acceleratedOffscreen2d_commit_main.html', |
| 197 name=base_name + '.OffscreenCanvasAccelerated2D' + es3_suffix, | 216 name=base_name + '.OffscreenCanvasAccelerated2D' + es3_suffix, |
| 198 test_rect=[0, 0, 350, 350], | 217 test_rect=[0, 0, 350, 350], |
| 199 revision=1, | 218 revision=1, |
| 200 story_set=self, | 219 story_set=self, |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 291 story_set=self, | 310 story_set=self, |
| 292 shared_page_state_class=shared_page_state_class, | 311 shared_page_state_class=shared_page_state_class, |
| 293 expectations=expectations)) | 312 expectations=expectations)) |
| 294 | 313 |
| 295 @property | 314 @property |
| 296 def allow_mixed_story_states(self): | 315 def allow_mixed_story_states(self): |
| 297 # Return True here in order to be able to add the same tests with | 316 # Return True here in order to be able to add the same tests with |
| 298 # a different SharedPageState on Mac which tests them with the | 317 # a different SharedPageState on Mac which tests them with the |
| 299 # Core Profile rendering path. | 318 # Core Profile rendering path. |
| 300 return True | 319 return True |
| OLD | NEW |