OLD | NEW |
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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 """Google Maps pixel tests.""" | 90 """Google Maps pixel tests.""" |
91 test = _MapsValidator | 91 test = _MapsValidator |
92 | 92 |
93 @classmethod | 93 @classmethod |
94 def Name(cls): | 94 def Name(cls): |
95 return 'maps' | 95 return 'maps' |
96 | 96 |
97 def CreateExpectations(self): | 97 def CreateExpectations(self): |
98 return maps_expectations.MapsExpectations() | 98 return maps_expectations.MapsExpectations() |
99 | 99 |
100 def CreatePageSet(self, options): | 100 def CreateStorySet(self, options): |
101 page_set_path = os.path.join( | 101 page_set_path = os.path.join( |
102 util.GetChromiumSrcDir(), 'content', 'test', 'gpu', 'page_sets') | 102 util.GetChromiumSrcDir(), 'content', 'test', 'gpu', 'page_sets') |
103 ps = page_set.PageSet(archive_data_file='data/maps.json', | 103 ps = page_set.PageSet(archive_data_file='data/maps.json', |
104 base_dir=page_set_path, | 104 base_dir=page_set_path, |
105 bucket=page_set.PUBLIC_BUCKET) | 105 bucket=page_set.PUBLIC_BUCKET) |
106 ps.AddUserStory(MapsPage(ps, ps.base_dir)) | 106 ps.AddUserStory(MapsPage(ps, ps.base_dir)) |
107 return ps | 107 return ps |
OLD | NEW |