| 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 self.AddStory(PixelTestsPage( | 111 self.AddStory(PixelTestsPage( |
| 112 url='file://../../data/gpu/pixel_offscreenCanvas_webgl_commit_worker.html'
, | 112 url='file://../../data/gpu/pixel_offscreenCanvas_webgl_commit_worker.html'
, |
| 113 name=base_name + '.OffscreenCanvasWebGLRedBoxWorker', | 113 name=base_name + '.OffscreenCanvasWebGLRedBoxWorker', |
| 114 test_rect=[0, 0, 300, 300], | 114 test_rect=[0, 0, 300, 300], |
| 115 revision=3, | 115 revision=3, |
| 116 story_set=self, | 116 story_set=self, |
| 117 shared_page_state_class=EnableExperimentalCanvasFeaturesSharedPageState, | 117 shared_page_state_class=EnableExperimentalCanvasFeaturesSharedPageState, |
| 118 expectations=expectations)) | 118 expectations=expectations)) |
| 119 | 119 |
| 120 self.AddStory(PixelTestsPage( | 120 self.AddStory(PixelTestsPage( |
| 121 url='file://../../data/gpu/pixel_acceleratedOffscreen2d_commit_main.html', | 121 url='file://../../data/gpu/pixel_offscreenCanvas_2d_commit_main.html', |
| 122 name=base_name + '.OffscreenCanvasAccelerated2D', | 122 name=base_name + '.OffscreenCanvasAccelerated2D', |
| 123 test_rect=[0, 0, 350, 350], | 123 test_rect=[0, 0, 350, 350], |
| 124 revision=1, | 124 revision=1, |
| 125 story_set=self, | 125 story_set=self, |
| 126 shared_page_state_class=EnableExperimentalCanvasFeaturesSharedPageState, | 126 shared_page_state_class=EnableExperimentalCanvasFeaturesSharedPageState, |
| 127 expectations=expectations)) | 127 expectations=expectations)) |
| 128 | 128 |
| 129 self.AddStory(PixelTestsPage( | 129 self.AddStory(PixelTestsPage( |
| 130 url='file://../../data/gpu/pixel_acceleratedOffscreen2d_commit_worker.html
', | 130 url='file://../../data/gpu/pixel_offscreenCanvas_2d_commit_worker.html', |
| 131 name=base_name + '.OffscreenCanvasAccelerated2DWorker', | 131 name=base_name + '.OffscreenCanvasAccelerated2DWorker', |
| 132 test_rect=[0, 0, 350, 350], | 132 test_rect=[0, 0, 350, 350], |
| 133 revision=1, | 133 revision=1, |
| 134 story_set=self, | 134 story_set=self, |
| 135 shared_page_state_class=EnableExperimentalCanvasFeaturesSharedPageState, | 135 shared_page_state_class=EnableExperimentalCanvasFeaturesSharedPageState, |
| 136 expectations=expectations)) | 136 expectations=expectations)) |
| 137 | 137 |
| 138 | 138 |
| 139 # Would be better to fetch this from Telemetry. | 139 # Would be better to fetch this from Telemetry. |
| 140 # TODO(kbr): enable this on all platforms. Don't know what will | 140 # TODO(kbr): enable this on all platforms. Don't know what will |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 story_set=self, | 312 story_set=self, |
| 313 shared_page_state_class=shared_page_state_class, | 313 shared_page_state_class=shared_page_state_class, |
| 314 expectations=expectations)) | 314 expectations=expectations)) |
| 315 | 315 |
| 316 @property | 316 @property |
| 317 def allow_mixed_story_states(self): | 317 def allow_mixed_story_states(self): |
| 318 # Return True here in order to be able to add the same tests with | 318 # Return True here in order to be able to add the same tests with |
| 319 # a different SharedPageState on Mac which tests them with the | 319 # a different SharedPageState on Mac which tests them with the |
| 320 # Core Profile rendering path. | 320 # Core Profile rendering path. |
| 321 return True | 321 return True |
| OLD | NEW |