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

Side by Side Diff: content/test/gpu/gpu_tests/maps.py

Issue 614783002: Remove page_set argument from benchmark.CreateExpectations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 2013 The Chromium Authors. All rights reserved. 1 # Copyright 2013 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 """Runs a Google Maps pixel test. 5 """Runs a Google Maps pixel test.
6 Performs several common navigation actions on the map (pan, zoom, rotate) then 6 Performs several common navigation actions on the map (pan, zoom, rotate) then
7 captures a screenshot and compares selected pixels against expected values""" 7 captures a screenshot and compares selected pixels against expected values"""
8 8
9 import json 9 import json
10 import optparse 10 import optparse
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 def RunNavigateSteps(self, action_runner): 83 def RunNavigateSteps(self, action_runner):
84 action_runner.NavigateToPage(self) 84 action_runner.NavigateToPage(self)
85 action_runner.WaitForJavaScriptCondition( 85 action_runner.WaitForJavaScriptCondition(
86 'window.testDone', timeout_in_seconds=180) 86 'window.testDone', timeout_in_seconds=180)
87 87
88 88
89 class Maps(cloud_storage_test_base.TestBase): 89 class Maps(cloud_storage_test_base.TestBase):
90 """Google Maps pixel tests.""" 90 """Google Maps pixel tests."""
91 test = _MapsValidator 91 test = _MapsValidator
92 92
93 def CreateExpectations(self, page_set): 93 def CreateExpectations(self):
94 return maps_expectations.MapsExpectations() 94 return maps_expectations.MapsExpectations()
95 95
96 def CreatePageSet(self, options): 96 def CreatePageSet(self, options):
97 page_set_path = os.path.join( 97 page_set_path = os.path.join(
98 util.GetChromiumSrcDir(), 'content', 'test', 'gpu', 'page_sets') 98 util.GetChromiumSrcDir(), 'content', 'test', 'gpu', 'page_sets')
99 ps = page_set.PageSet(archive_data_file='data/maps.json', 99 ps = page_set.PageSet(archive_data_file='data/maps.json',
100 make_javascript_deterministic=False, 100 make_javascript_deterministic=False,
101 file_path=page_set_path, 101 file_path=page_set_path,
102 bucket=page_set.PUBLIC_BUCKET) 102 bucket=page_set.PUBLIC_BUCKET)
103 ps.AddPage(MapsPage(ps, ps.base_dir)) 103 ps.AddPage(MapsPage(ps, ps.base_dir))
104 return ps 104 return ps
OLDNEW
« no previous file with comments | « content/test/gpu/gpu_tests/hardware_accelerated_feature.py ('k') | content/test/gpu/gpu_tests/memory_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698