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

Side by Side Diff: tools/perf/page_sets/tough_ad_cases.py

Issue 2941663002: Removing verify_names=True now that the default for verify_names is True (Closed)
Patch Set: Created 3 years, 6 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
« no previous file with comments | « tools/perf/page_sets/top_25_smooth.py ('k') | tools/perf/page_sets/tough_animation_cases.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 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 page_sets import repeatable_synthesize_scroll_gesture_shared_state 5 from page_sets import repeatable_synthesize_scroll_gesture_shared_state
6 6
7 from telemetry.core import util 7 from telemetry.core import util
8 from telemetry.page import page as page_module 8 from telemetry.page import page as page_module
9 from telemetry import story 9 from telemetry import story
10 10
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 action_runner.WaitForJavaScriptCondition( 112 action_runner.WaitForJavaScriptCondition(
113 'window.location.pathname.indexOf("welcome") == -1') 113 'window.location.pathname.indexOf("welcome") == -1')
114 114
115 115
116 class SyntheticToughAdCasesPageSet(story.StorySet): 116 class SyntheticToughAdCasesPageSet(story.StorySet):
117 """Pages for measuring rendering performance with advertising content.""" 117 """Pages for measuring rendering performance with advertising content."""
118 118
119 def __init__(self): 119 def __init__(self):
120 super(SyntheticToughAdCasesPageSet, self).__init__( 120 super(SyntheticToughAdCasesPageSet, self).__init__(
121 archive_data_file='data/tough_ad_cases.json', 121 archive_data_file='data/tough_ad_cases.json',
122 cloud_storage_bucket=story.INTERNAL_BUCKET, 122 cloud_storage_bucket=story.INTERNAL_BUCKET)
123 verify_names=True)
124 123
125 base_url = 'http://localhost:8000' 124 base_url = 'http://localhost:8000'
126 125
127 # See go/swiffy-chrome-samples for how to add new pages here or how to 126 # See go/swiffy-chrome-samples for how to add new pages here or how to
128 # update the existing ones. 127 # update the existing ones.
129 swiffy_pages = [ 128 swiffy_pages = [
130 'CICAgICQ15a9NxDIARjIASgBMghBC1XuTk8ezw.swiffy72.html', 129 'CICAgICQ15a9NxDIARjIASgBMghBC1XuTk8ezw.swiffy72.html',
131 'shapes-CK7ptO3F8bi2KxDQAhiYAigBMgij6QBQtD2gyA.swiffy72.html', 130 'shapes-CK7ptO3F8bi2KxDQAhiYAigBMgij6QBQtD2gyA.swiffy72.html',
132 'CNP2xe_LmqPEKBCsAhj6ASgBMggnyMqth81h8Q.swiffy72.html', 131 'CNP2xe_LmqPEKBCsAhj6ASgBMggnyMqth81h8Q.swiffy72.html',
133 'clip-paths-CICAgMDO7Ye9-gEQ2AUYWigBMgjZxDii6aoK9w.swiffy72.html', 132 'clip-paths-CICAgMDO7Ye9-gEQ2AUYWigBMgjZxDii6aoK9w.swiffy72.html',
134 'filters-CNLa0t2T47qJ_wEQoAEY2AQoATIIFaIdc7VMBr4.swiffy72.html', 133 'filters-CNLa0t2T47qJ_wEQoAEY2AQoATIIFaIdc7VMBr4.swiffy72.html',
135 'shapes-CICAgMDO7cfIzwEQ1AMYPCgBMghqY8tqyRCArQ.swiffy72.html', 134 'shapes-CICAgMDO7cfIzwEQ1AMYPCgBMghqY8tqyRCArQ.swiffy72.html',
136 'CICAgIDQ2Pb-MxCsAhj6ASgBMgi5DLoSO0gPbQ.swiffy72.html', 135 'CICAgIDQ2Pb-MxCsAhj6ASgBMgi5DLoSO0gPbQ.swiffy72.html',
137 'CICAgKCN39CopQEQoAEY2AQoATIID59gK5hjjIg.swiffy72.html', 136 'CICAgKCN39CopQEQoAEY2AQoATIID59gK5hjjIg.swiffy72.html',
138 'CICAgKCNj4HgyAEQeBjYBCgBMgjQpPkOjyWNdw.1.swiffy72.html', 137 'CICAgKCNj4HgyAEQeBjYBCgBMgjQpPkOjyWNdw.1.swiffy72.html',
139 'clip-paths-CILZhLqO_-27bxB4GNgEKAEyCC46kMLBXnMT.swiffy72.html', 138 'clip-paths-CILZhLqO_-27bxB4GNgEKAEyCC46kMLBXnMT.swiffy72.html',
140 'CICAgMDOrcnRGRB4GNgEKAEyCP_ZBSfwUFsj.swiffy72.html', 139 'CICAgMDOrcnRGRB4GNgEKAEyCP_ZBSfwUFsj.swiffy72.html',
141 ] 140 ]
142 for page_name in swiffy_pages: 141 for page_name in swiffy_pages:
143 url = base_url + '/' + page_name 142 url = base_url + '/' + page_name
144 self.AddStory(SwiffyPage(url, self)) 143 self.AddStory(SwiffyPage(url, self))
145 144
146 145
147 class SyntheticToughWebglAdCasesPageSet(story.StorySet): 146 class SyntheticToughWebglAdCasesPageSet(story.StorySet):
148 """Pages for measuring rendering performance with WebGL ad content.""" 147 """Pages for measuring rendering performance with WebGL ad content."""
149 148
150 def __init__(self): 149 def __init__(self):
151 super(SyntheticToughWebglAdCasesPageSet, self).__init__( 150 super(SyntheticToughWebglAdCasesPageSet, self).__init__(
152 archive_data_file='data/tough_ad_cases.json', 151 archive_data_file='data/tough_ad_cases.json',
153 cloud_storage_bucket=story.INTERNAL_BUCKET, 152 cloud_storage_bucket=story.INTERNAL_BUCKET)
154 verify_names=True)
155 153
156 base_url = 'http://localhost:8000' 154 base_url = 'http://localhost:8000'
157 155
158 # See go/swiffy-chrome-samples for how to add new pages here or how to 156 # See go/swiffy-chrome-samples for how to add new pages here or how to
159 # update the existing ones. 157 # update the existing ones.
160 swiffy_pages = [ 158 swiffy_pages = [
161 'CICAgICQ15a9NxDIARjIASgBMghBC1XuTk8ezw.swf.webglbeta.html', 159 'CICAgICQ15a9NxDIARjIASgBMghBC1XuTk8ezw.swf.webglbeta.html',
162 'shapes-CK7ptO3F8bi2KxDQAhiYAigBMgij6QBQtD2gyA.swf.webglbeta.html', 160 'shapes-CK7ptO3F8bi2KxDQAhiYAigBMgij6QBQtD2gyA.swf.webglbeta.html',
163 'CNP2xe_LmqPEKBCsAhj6ASgBMggnyMqth81h8Q.swf.webglbeta.html', 161 'CNP2xe_LmqPEKBCsAhj6ASgBMggnyMqth81h8Q.swf.webglbeta.html',
164 'clip-paths-CICAgMDO7Ye9-gEQ2AUYWigBMgjZxDii6aoK9w.swf.webglbeta.html', 162 'clip-paths-CICAgMDO7Ye9-gEQ2AUYWigBMgjZxDii6aoK9w.swf.webglbeta.html',
165 'filters-CNLa0t2T47qJ_wEQoAEY2AQoATIIFaIdc7VMBr4.swf.webglbeta.html', 163 'filters-CNLa0t2T47qJ_wEQoAEY2AQoATIIFaIdc7VMBr4.swf.webglbeta.html',
166 'shapes-CICAgMDO7cfIzwEQ1AMYPCgBMghqY8tqyRCArQ.swf.webglbeta.html', 164 'shapes-CICAgMDO7cfIzwEQ1AMYPCgBMghqY8tqyRCArQ.swf.webglbeta.html',
167 'CICAgIDQ2Pb-MxCsAhj6ASgBMgi5DLoSO0gPbQ.swf.webglbeta.html', 165 'CICAgIDQ2Pb-MxCsAhj6ASgBMgi5DLoSO0gPbQ.swf.webglbeta.html',
168 'CICAgKCN39CopQEQoAEY2AQoATIID59gK5hjjIg.swf.webglbeta.html', 166 'CICAgKCN39CopQEQoAEY2AQoATIID59gK5hjjIg.swf.webglbeta.html',
169 'CICAgKCNj4HgyAEQeBjYBCgBMgjQpPkOjyWNdw.1.swf.webglbeta.html', 167 'CICAgKCNj4HgyAEQeBjYBCgBMgjQpPkOjyWNdw.1.swf.webglbeta.html',
170 'clip-paths-CILZhLqO_-27bxB4GNgEKAEyCC46kMLBXnMT.swf.webglbeta.html', 168 'clip-paths-CILZhLqO_-27bxB4GNgEKAEyCC46kMLBXnMT.swf.webglbeta.html',
171 'CICAgMDOrcnRGRB4GNgEKAEyCP_ZBSfwUFsj.swf.webglbeta.html', 169 'CICAgMDOrcnRGRB4GNgEKAEyCP_ZBSfwUFsj.swf.webglbeta.html',
172 ] 170 ]
173 for page_name in swiffy_pages: 171 for page_name in swiffy_pages:
174 url = base_url + '/' + page_name 172 url = base_url + '/' + page_name
175 self.AddStory(SwiffyPage(url, self)) 173 self.AddStory(SwiffyPage(url, self))
176 174
177 175
178 class ToughAdCasesPageSet(story.StorySet): 176 class ToughAdCasesPageSet(story.StorySet):
179 """Pages for measuring performance with advertising content.""" 177 """Pages for measuring performance with advertising content."""
180 178
181 def __init__(self, scroll=False): 179 def __init__(self, scroll=False):
182 super(ToughAdCasesPageSet, self).__init__( 180 super(ToughAdCasesPageSet, self).__init__(
183 archive_data_file='data/tough_ad_cases.json', 181 archive_data_file='data/tough_ad_cases.json',
184 cloud_storage_bucket=story.INTERNAL_BUCKET, 182 cloud_storage_bucket=story.INTERNAL_BUCKET)
185 verify_names=True)
186 183
187 self.AddStory(AdPage('file://tough_ad_cases/' 184 self.AddStory(AdPage('file://tough_ad_cases/'
188 'swiffy_collection.html', self, make_javascript_deterministic=False, 185 'swiffy_collection.html', self, make_javascript_deterministic=False,
189 y_scroll_distance_multiplier=0.25, scroll=scroll)) 186 y_scroll_distance_multiplier=0.25, scroll=scroll))
190 self.AddStory(AdPage('file://tough_ad_cases/' 187 self.AddStory(AdPage('file://tough_ad_cases/'
191 'swiffy_webgl_collection.html', 188 'swiffy_webgl_collection.html',
192 self, make_javascript_deterministic=False, scroll=scroll)) 189 self, make_javascript_deterministic=False, scroll=scroll))
193 self.AddStory(AdPage('http://www.latimes.com', self, scroll=scroll, 190 self.AddStory(AdPage('http://www.latimes.com', self, scroll=scroll,
194 wait_for_interactive_or_better=True)) 191 wait_for_interactive_or_better=True))
195 self.AddStory(ForbesAdPage('http://www.forbes.com/sites/parmyolson/' 192 self.AddStory(ForbesAdPage('http://www.forbes.com/sites/parmyolson/'
(...skipping 19 matching lines...) Expand all
215 self.AddStory(AdPage('http://androidpolice.com', self, scroll=scroll, 212 self.AddStory(AdPage('http://androidpolice.com', self, scroll=scroll,
216 wait_for_interactive_or_better=True)) 213 wait_for_interactive_or_better=True))
217 214
218 215
219 class ScrollingToughAdCasesPageSet(ToughAdCasesPageSet): 216 class ScrollingToughAdCasesPageSet(ToughAdCasesPageSet):
220 """Pages for measuring scrolling performance with advertising content.""" 217 """Pages for measuring scrolling performance with advertising content."""
221 218
222 def __init__(self): 219 def __init__(self):
223 super(ScrollingToughAdCasesPageSet, self).__init__( 220 super(ScrollingToughAdCasesPageSet, self).__init__(
224 scroll=True) 221 scroll=True)
OLDNEW
« no previous file with comments | « tools/perf/page_sets/top_25_smooth.py ('k') | tools/perf/page_sets/tough_animation_cases.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698