Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(857)

Side by Side Diff: content/test/gpu/page_sets/pixel_tests.py

Issue 2112603003: Add pixel test for solid color backgrounds. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 name=base_name + '.ScissorTestWithPreserveDrawingBuffer' + es3_suffix, 192 name=base_name + '.ScissorTestWithPreserveDrawingBuffer' + es3_suffix,
193 test_rect=[0, 0, 300, 300], 193 test_rect=[0, 0, 300, 300],
194 revision=0, # This is not used. 194 revision=0, # This is not used.
195 story_set=self, 195 story_set=self,
196 shared_page_state_class=shared_page_state_class, 196 shared_page_state_class=shared_page_state_class,
197 expectations=expectations, 197 expectations=expectations,
198 expected_colors='../../data/gpu/pixel_scissor_expectations.json')) 198 expected_colors='../../data/gpu/pixel_scissor_expectations.json'))
199 199
200 self.AddStory(PixelTestsPage( 200 self.AddStory(PixelTestsPage(
201 url='file://../../data/gpu/pixel_canvas2d_webgl.html', 201 url='file://../../data/gpu/pixel_canvas2d_webgl.html',
202 name=base_name + '.2DCanvasWebGL', 202 name=base_name + '.2DCanvasWebGL' + es3_suffix,
203 test_rect=[0, 0, 300, 300], 203 test_rect=[0, 0, 300, 300],
204 revision=2, 204 revision=2,
205 story_set=self, 205 story_set=self,
206 shared_page_state_class=shared_page_state_class, 206 shared_page_state_class=shared_page_state_class,
207 expectations=expectations)) 207 expectations=expectations))
208 208
209 self.AddStory(PixelTestsPage(
210 url='file://../../data/gpu/pixel_background.html',
211 name=base_name + '.SolidColorBackground' + es3_suffix,
212 test_rect=[500, 500, 100, 100],
213 revision=1,
214 story_set=self,
215 shared_page_state_class=shared_page_state_class,
216 expectations=expectations))
217
209 @property 218 @property
210 def allow_mixed_story_states(self): 219 def allow_mixed_story_states(self):
211 # Return True here in order to be able to add the same tests with 220 # Return True here in order to be able to add the same tests with
212 # a different SharedPageState on Mac which tests them with the 221 # a different SharedPageState on Mac which tests them with the
213 # Core Profile rendering path. 222 # Core Profile rendering path.
214 return True 223 return True
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698