Chromium Code Reviews| Index: content/test/gpu/page_sets/pixel_tests.py |
| diff --git a/content/test/gpu/page_sets/pixel_tests.py b/content/test/gpu/page_sets/pixel_tests.py |
| index 8a6de0296ec3da17496ac09f363803e7bd253d89..abd458eb83f873eddfb8e08009695a3811ed96e4 100644 |
| --- a/content/test/gpu/page_sets/pixel_tests.py |
| +++ b/content/test/gpu/page_sets/pixel_tests.py |
| @@ -45,6 +45,14 @@ class IOSurface2DCanvasSharedPageState(gpu_test_base.GpuSharedPageState): |
| '--disable-display-list-2d-canvas']) |
| +class WebGLNonChromiumImageSharedPageState(gpu_test_base.GpuSharedPageState): |
| + def __init__(self, test, finder_options, story_set): |
| + super(WebGLNonChromiumImageSharedPageState, self).__init__( |
| + test, finder_options, story_set) |
| + finder_options.browser_options.AppendExtraBrowserArgs( |
| + ['--disable-webgl-image-chromium']) |
| + |
| + |
| class PixelTestsStorySet(story_set_module.StorySet): |
| """ Some basic test cases for GPU. """ |
| @@ -61,8 +69,8 @@ class PixelTestsStorySet(story_set_module.StorySet): |
| # OS. |
| self._AddAllPages(expectations, base_name, True) |
| - # On OS X, test the IOSurface 2D Canvas compositing path. |
| if sys.platform.startswith('darwin'): |
| + # On OS X, test the IOSurface 2D Canvas compositing path. |
| self.AddStory(PixelTestsPage( |
| url='file://../../data/gpu/pixel_canvas2d_accelerated.html', |
| name=base_name + '.IOSurface2DCanvas', |
| @@ -80,6 +88,43 @@ class PixelTestsStorySet(story_set_module.StorySet): |
| shared_page_state_class=IOSurface2DCanvasSharedPageState, |
| expectations=expectations)) |
| + # On OS X, test WebGL non-Chromium Image compositing path. |
| + self.AddStory(PixelTestsPage( |
| + url='file://../../data/gpu/pixel_webgl_aa_alpha.html', |
| + name=base_name + '.WebGLGreenTriangle.NonChromiumImage.AA.Alpha', |
| + test_rect=[0, 0, 300, 300], |
| + revision=1, |
| + story_set=self, |
| + shared_page_state_class=WebGLNonChromiumImageSharedPageState, |
| + expectations=expectations)) |
| + |
| + self.AddStory(PixelTestsPage( |
| + url='file://../../data/gpu/pixel_webgl_noaa_alpha.html', |
| + name=base_name + '.WebGLGreenTriangle.NonChromiumImage.NoAA.Alpha', |
| + test_rect=[0, 0, 300, 300], |
| + revision=1, |
| + story_set=self, |
| + shared_page_state_class=WebGLNonChromiumImageSharedPageState, |
| + expectations=expectations)) |
| + |
| + self.AddStory(PixelTestsPage( |
| + url='file://../../data/gpu/pixel_webgl_aa_noalpha.html', |
| + name=base_name + '.WebGLGreenTriangle.NonChromiumImage.AA.NoAlpha', |
| + test_rect=[0, 0, 300, 300], |
| + revision=1, |
| + story_set=self, |
| + shared_page_state_class=WebGLNonChromiumImageSharedPageState, |
| + expectations=expectations)) |
| + |
| + self.AddStory(PixelTestsPage( |
| + url='file://../../data/gpu/pixel_webgl_noaa_noalpha.html', |
| + name=base_name + '.WebGLGreenTriangle.NonChromiumImage.NoAA.NoAlpha', |
| + test_rect=[0, 0, 300, 300], |
| + revision=1, |
| + story_set=self, |
| + shared_page_state_class=WebGLNonChromiumImageSharedPageState, |
| + expectations=expectations)) |
| + |
| def _AddAllPages(self, expectations, base_name, use_es3): |
| if use_es3: |
| es3_suffix = 'ES3' |
| @@ -107,10 +152,37 @@ class PixelTestsStorySet(story_set_module.StorySet): |
| expectations=expectations)) |
| self.AddStory(PixelTestsPage( |
| - url='file://../../data/gpu/pixel_webgl.html', |
| - name=base_name + '.WebGLGreenTriangle' + es3_suffix, |
| + url='file://../../data/gpu/pixel_webgl_aa_alpha.html', |
| + name=base_name + '.WebGLGreenTriangle.AA.Alpha' + es3_suffix, |
| + test_rect=[0, 0, 300, 300], |
| + revision=1, |
| + story_set=self, |
| + shared_page_state_class=shared_page_state_class, |
| + expectations=expectations)) |
| + |
| + self.AddStory(PixelTestsPage( |
| + url='file://../../data/gpu/pixel_webgl_noaa_alpha.html', |
| + name=base_name + '.WebGLGreenTriangle.NoAA.Alpha' + es3_suffix, |
|
Ken Russell (switch to Gerrit)
2016/06/01 02:06:07
I think you'll need to suppress failures of these
erikchen
2016/06/01 17:07:03
Done.
|
| + test_rect=[0, 0, 300, 300], |
| + revision=1, |
| + story_set=self, |
| + shared_page_state_class=shared_page_state_class, |
| + expectations=expectations)) |
| + |
| + self.AddStory(PixelTestsPage( |
| + url='file://../../data/gpu/pixel_webgl_aa_noalpha.html', |
| + name=base_name + '.WebGLGreenTriangle.AA.NoAlpha' + es3_suffix, |
| + test_rect=[0, 0, 300, 300], |
| + revision=1, |
| + story_set=self, |
| + shared_page_state_class=shared_page_state_class, |
| + expectations=expectations)) |
| + |
| + self.AddStory(PixelTestsPage( |
| + url='file://../../data/gpu/pixel_webgl_noaa_noalpha.html', |
| + name=base_name + '.WebGLGreenTriangle.NoAA.NoAlpha' + es3_suffix, |
| test_rect=[0, 0, 300, 300], |
| - revision=12, |
| + revision=1, |
| story_set=self, |
| shared_page_state_class=shared_page_state_class, |
| expectations=expectations)) |