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

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

Issue 799183002: Rename AddPage -> AddUserStory in tools/perf/page_sets/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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/pica.py ('k') | tools/perf/page_sets/service_worker.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 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 page_set as page_set_module 5 from telemetry.page import page_set as page_set_module
6 6
7 class PolymerPage(page_module.Page): 7 class PolymerPage(page_module.Page):
8 8
9 def __init__(self, url, page_set): 9 def __init__(self, url, page_set):
10 super(PolymerPage, self).__init__( 10 super(PolymerPage, self).__init__(
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 203
204 204
205 class PolymerPageSet(page_set_module.PageSet): 205 class PolymerPageSet(page_set_module.PageSet):
206 206
207 def __init__(self): 207 def __init__(self):
208 super(PolymerPageSet, self).__init__( 208 super(PolymerPageSet, self).__init__(
209 user_agent_type='mobile', 209 user_agent_type='mobile',
210 archive_data_file='data/polymer.json', 210 archive_data_file='data/polymer.json',
211 bucket=page_set_module.PUBLIC_BUCKET) 211 bucket=page_set_module.PUBLIC_BUCKET)
212 212
213 self.AddPage(PolymerCalculatorPage(self)) 213 self.AddUserStory(PolymerCalculatorPage(self))
214 self.AddPage(PolymerShadowPage(self)) 214 self.AddUserStory(PolymerShadowPage(self))
215 215
216 # Polymer Sampler subpages that are interesting to tap / swipe elements on 216 # Polymer Sampler subpages that are interesting to tap / swipe elements on
217 TAPPABLE_PAGES = [ 217 TAPPABLE_PAGES = [
218 'paper-button', 218 'paper-button',
219 'paper-checkbox', 219 'paper-checkbox',
220 'paper-fab', 220 'paper-fab',
221 'paper-icon-button', 221 'paper-icon-button',
222 # crbug.com/394756 222 # crbug.com/394756
223 # 'paper-radio-button', 223 # 'paper-radio-button',
224 #FIXME(wiltzius) Disabling x-shadow until this issue is fixed: 224 #FIXME(wiltzius) Disabling x-shadow until this issue is fixed:
225 # https://github.com/Polymer/paper-shadow/issues/12 225 # https://github.com/Polymer/paper-shadow/issues/12
226 #'paper-shadow', 226 #'paper-shadow',
227 'paper-tabs', 227 'paper-tabs',
228 'paper-toggle-button', 228 'paper-toggle-button',
229 ] 229 ]
230 for p in TAPPABLE_PAGES: 230 for p in TAPPABLE_PAGES:
231 self.AddPage(PolymerSampler(self, p)) 231 self.AddUserStory(PolymerSampler(self, p))
232 232
233 # Polymer Sampler subpages that are interesting to scroll 233 # Polymer Sampler subpages that are interesting to scroll
234 SCROLLABLE_PAGES = [ 234 SCROLLABLE_PAGES = [
235 'core-scroll-header-panel', 235 'core-scroll-header-panel',
236 ] 236 ]
237 for p in SCROLLABLE_PAGES: 237 for p in SCROLLABLE_PAGES:
238 self.AddPage(PolymerSampler(self, p, scrolling_page=True)) 238 self.AddUserStory(PolymerSampler(self, p, scrolling_page=True))
OLDNEW
« no previous file with comments | « tools/perf/page_sets/pica.py ('k') | tools/perf/page_sets/service_worker.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698