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

Side by Side Diff: tools/perf/page_sets/polymer.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
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 from telemetry.page import page as page_module 4 from telemetry.page import page as page_module
5 from telemetry.page import shared_page_state 5 from telemetry.page import shared_page_state
6 from telemetry import story 6 from telemetry import story
7 from telemetry.util import js_template 7 from telemetry.util import js_template
8 8
9 9
10 class PolymerPage(page_module.Page): 10 class PolymerPage(page_module.Page):
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 action_runner.SwipeElement(element_function=element_function, 217 action_runner.SwipeElement(element_function=element_function,
218 left_start_ratio=0.75, 218 left_start_ratio=0.75,
219 speed_in_pixels_per_second=300) 219 speed_in_pixels_per_second=300)
220 220
221 221
222 class PolymerPageSet(story.StorySet): 222 class PolymerPageSet(story.StorySet):
223 223
224 def __init__(self, run_no_page_interactions=False): 224 def __init__(self, run_no_page_interactions=False):
225 super(PolymerPageSet, self).__init__( 225 super(PolymerPageSet, self).__init__(
226 archive_data_file='data/polymer.json', 226 archive_data_file='data/polymer.json',
227 cloud_storage_bucket=story.PUBLIC_BUCKET, 227 cloud_storage_bucket=story.PUBLIC_BUCKET)
228 verify_names=True)
229 228
230 self.AddStory(PolymerCalculatorPage(self, run_no_page_interactions)) 229 self.AddStory(PolymerCalculatorPage(self, run_no_page_interactions))
231 self.AddStory(PolymerShadowPage(self, run_no_page_interactions)) 230 self.AddStory(PolymerShadowPage(self, run_no_page_interactions))
232 231
233 # Polymer Sampler subpages that are interesting to tap / swipe elements on 232 # Polymer Sampler subpages that are interesting to tap / swipe elements on
234 TAPPABLE_PAGES = [ 233 TAPPABLE_PAGES = [
235 'paper-button', 234 'paper-button',
236 'paper-checkbox', 235 'paper-checkbox',
237 'paper-fab', 236 'paper-fab',
238 'paper-icon-button', 237 'paper-icon-button',
(...skipping 16 matching lines...) Expand all
255 for p in SCROLLABLE_PAGES: 254 for p in SCROLLABLE_PAGES:
256 self.AddStory(PolymerSampler( 255 self.AddStory(PolymerSampler(
257 self, p, run_no_page_interactions=run_no_page_interactions, 256 self, p, run_no_page_interactions=run_no_page_interactions,
258 scrolling_page=True)) 257 scrolling_page=True))
259 258
260 for page in self: 259 for page in self:
261 assert (page.__class__.RunPageInteractions == 260 assert (page.__class__.RunPageInteractions ==
262 PolymerPage.RunPageInteractions), ( 261 PolymerPage.RunPageInteractions), (
263 'Pages in this page set must not override PolymerPage\' ' 262 'Pages in this page set must not override PolymerPage\' '
264 'RunPageInteractions method.') 263 'RunPageInteractions method.')
OLDNEW
« no previous file with comments | « tools/perf/page_sets/pathological_mobile_sites.py ('k') | tools/perf/page_sets/service_worker.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698