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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 64 # On OS X, test the IOSurface 2D Canvas compositing path. | 64 # On OS X, test the IOSurface 2D Canvas compositing path. |
| 65 if sys.platform.startswith('darwin'): | 65 if sys.platform.startswith('darwin'): |
| 66 self.AddStory(PixelTestsPage( | 66 self.AddStory(PixelTestsPage( |
| 67 url='file://../../data/gpu/pixel_canvas2d_accelerated.html', | 67 url='file://../../data/gpu/pixel_canvas2d_accelerated.html', |
| 68 name=base_name + '.IOSurface2DCanvas', | 68 name=base_name + '.IOSurface2DCanvas', |
| 69 test_rect=[0, 0, 400, 400], | 69 test_rect=[0, 0, 400, 400], |
| 70 revision=1, | 70 revision=1, |
| 71 story_set=self, | 71 story_set=self, |
| 72 shared_page_state_class=IOSurface2DCanvasSharedPageState, | 72 shared_page_state_class=IOSurface2DCanvasSharedPageState, |
| 73 expectations=expectations)) | 73 expectations=expectations)) |
| 74 self.AddStory(PixelTestsPage( | 74 # Temporarily disable test to look for source of |
| 75 url='file://../../data/gpu/pixel_canvas2d_webgl.html', | 75 # trace_test.IOSurface2DCanvas failures. https://crbug.com/595754. |
|
Ken Russell (switch to Gerrit)
2016/03/19 04:27:04
Could you skip this test instead in src/content/te
erikchen
2016/03/21 19:45:03
I skipped the test in trace_test.py, since I want
| |
| 76 name=base_name + '.IOSurface2DCanvasWebGL', | 76 #self.AddStory(PixelTestsPage( |
| 77 test_rect=[0, 0, 400, 400], | 77 # url='file://../../data/gpu/pixel_canvas2d_webgl.html', |
| 78 revision=1, | 78 # name=base_name + '.IOSurface2DCanvasWebGL', |
| 79 story_set=self, | 79 # test_rect=[0, 0, 400, 400], |
| 80 shared_page_state_class=IOSurface2DCanvasSharedPageState, | 80 # revision=1, |
| 81 expectations=expectations)) | 81 # story_set=self, |
| 82 # shared_page_state_class=IOSurface2DCanvasSharedPageState, | |
| 83 # expectations=expectations)) | |
| 82 | 84 |
| 83 def _AddAllPages(self, expectations, base_name, use_es3): | 85 def _AddAllPages(self, expectations, base_name, use_es3): |
| 84 if use_es3: | 86 if use_es3: |
| 85 es3_suffix = 'ES3' | 87 es3_suffix = 'ES3' |
| 86 shared_page_state_class = PixelTestsES3SharedPageState | 88 shared_page_state_class = PixelTestsES3SharedPageState |
| 87 else: | 89 else: |
| 88 es3_suffix = '' | 90 es3_suffix = '' |
| 89 shared_page_state_class = gpu_test_base.GpuSharedPageState | 91 shared_page_state_class = gpu_test_base.GpuSharedPageState |
| 90 | 92 |
| 91 self.AddStory(PixelTestsPage( | 93 self.AddStory(PixelTestsPage( |
| (...skipping 26 matching lines...) Expand all Loading... | |
| 118 self.AddStory(PixelTestsPage( | 120 self.AddStory(PixelTestsPage( |
| 119 url='file://../../data/gpu/pixel_scissor.html', | 121 url='file://../../data/gpu/pixel_scissor.html', |
| 120 name=base_name + '.ScissorTestWithPreserveDrawingBuffer' + es3_suffix, | 122 name=base_name + '.ScissorTestWithPreserveDrawingBuffer' + es3_suffix, |
| 121 test_rect=[0, 0, 300, 300], | 123 test_rect=[0, 0, 300, 300], |
| 122 revision=0, # This is not used. | 124 revision=0, # This is not used. |
| 123 story_set=self, | 125 story_set=self, |
| 124 shared_page_state_class=shared_page_state_class, | 126 shared_page_state_class=shared_page_state_class, |
| 125 expectations=expectations, | 127 expectations=expectations, |
| 126 expected_colors='../../data/gpu/pixel_scissor_expectations.json')) | 128 expected_colors='../../data/gpu/pixel_scissor_expectations.json')) |
| 127 | 129 |
| 128 self.AddStory(PixelTestsPage( | 130 # Temporarily disable test to look for source of |
| 129 url='file://../../data/gpu/pixel_canvas2d_webgl.html', | 131 # trace_test.IOSurface2DCanvas failures. https://crbug.com/595754. |
|
Ken Russell (switch to Gerrit)
2016/03/19 04:27:04
Same here.
| |
| 130 name=base_name + '.2DCanvasWebGL', | 132 #self.AddStory(PixelTestsPage( |
| 131 test_rect=[0, 0, 400, 400], | 133 # url='file://../../data/gpu/pixel_canvas2d_webgl.html', |
| 132 revision=1, | 134 # name=base_name + '.2DCanvasWebGL', |
| 133 story_set=self, | 135 # test_rect=[0, 0, 400, 400], |
| 134 shared_page_state_class=shared_page_state_class, | 136 # revision=1, |
| 135 expectations=expectations)) | 137 # story_set=self, |
| 138 # shared_page_state_class=shared_page_state_class, | |
| 139 # expectations=expectations)) | |
| 136 | 140 |
| 137 @property | 141 @property |
| 138 def allow_mixed_story_states(self): | 142 def allow_mixed_story_states(self): |
| 139 # Return True here in order to be able to add the same tests with | 143 # Return True here in order to be able to add the same tests with |
| 140 # a different SharedPageState on Mac which tests them with the | 144 # a different SharedPageState on Mac which tests them with the |
| 141 # Core Profile rendering path. | 145 # Core Profile rendering path. |
| 142 return True | 146 return True |
| OLD | NEW |