summaryrefslogtreecommitdiffstats
path: root/content/test/gpu
diff options
context:
space:
mode:
authoralokp@chromium.org <alokp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-03 11:54:18 +0000
committeralokp@chromium.org <alokp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-03 11:54:18 +0000
commitbf10dc22fe95c6c7c8f58412ed030ec7a277ff8d (patch)
tree669f29399b680881460489f3b38c8803b04c65a7 /content/test/gpu
parent63baaa98bfecf702a2cc2886e78f200d60473b0b (diff)
downloadchromium_src-bf10dc22fe95c6c7c8f58412ed030ec7a277ff8d.zip
chromium_src-bf10dc22fe95c6c7c8f58412ed030ec7a277ff8d.tar.gz
chromium_src-bf10dc22fe95c6c7c8f58412ed030ec7a277ff8d.tar.bz2
Created a separate test page for gpu rasterization.
The new test page uses the viewport tag which makes it easy to sample pixels from the screenshot. Adding the viewport tag to pixel_css3d page which is also used for pixel tests because it starts to fail due to unknown reasons on random bots. BUG=368495 Review URL: https://codereview.chromium.org/302003015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@274469 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/test/gpu')
-rw-r--r--content/test/gpu/page_sets/gpu_rasterization_tests.py20
1 files changed, 9 insertions, 11 deletions
diff --git a/content/test/gpu/page_sets/gpu_rasterization_tests.py b/content/test/gpu/page_sets/gpu_rasterization_tests.py
index 6c23e6c..e6a338f 100644
--- a/content/test/gpu/page_sets/gpu_rasterization_tests.py
+++ b/content/test/gpu/page_sets/gpu_rasterization_tests.py
@@ -11,11 +11,10 @@ class GpuRasterizationTestsPage(page_module.Page):
def __init__(self, page_set):
super(GpuRasterizationTestsPage, self).__init__(
- url='file://../../data/gpu/pixel_css3d.html',
+ url='file://../../data/gpu/pixel_background.html',
page_set=page_set,
- name='GpuRasterization.CSS3DBlueBox')
+ name='GpuRasterization.BlueBox')
- self.user_agent_type = 'desktop'
self.expectations = [
{'comment': 'body-t',
'color': [255, 255, 255],
@@ -24,15 +23,15 @@ class GpuRasterizationTestsPage(page_module.Page):
{'comment': 'body-r',
'color': [255, 255, 255],
'tolerance': 0,
- 'location': [245, 5]},
+ 'location': [215, 5]},
{'comment': 'body-b',
'color': [255, 255, 255],
'tolerance': 0,
- 'location': [245, 245]},
+ 'location': [215, 215]},
{'comment': 'body-l',
'color': [255, 255, 255],
'tolerance': 0,
- 'location': [5, 245]},
+ 'location': [5, 215]},
{'comment': 'background-t',
'color': [0, 0, 0],
'tolerance': 0,
@@ -60,13 +59,13 @@ class GpuRasterizationTestsPage(page_module.Page):
{'comment': 'box-b',
'color': [0, 0, 255],
'tolerance': 0,
- 'location': [140, 120]},
+ 'location': [140, 140]},
{'comment': 'box-l',
'color': [0, 0, 255],
'tolerance': 0,
- 'location': [70, 120]}
+ 'location': [70, 140]}
]
- self.test_rect = [0, 0, 250, 250]
+ self.test_rect = [0, 0, 220, 220]
def RunNavigateSteps(self, action_runner):
action_runner.NavigateToPage(self)
@@ -82,7 +81,6 @@ class GpuRasterizationTestsPageSet(page_set_module.PageSet):
""" Basic test cases for GPU rasterization. """
def __init__(self):
- super(GpuRasterizationTestsPageSet, self).__init__(
- user_agent_type='desktop')
+ super(GpuRasterizationTestsPageSet, self).__init__()
self.AddPage(GpuRasterizationTestsPage(self))