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

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

Issue 2629413002: [tools/perf] Trim down story name that has more than 180 charaters (Closed)
Patch Set: Created 3 years, 11 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/profile_safe_urls.py ('k') | no next file » | 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 4
5 from telemetry.page import page 5 from telemetry.page import page
6 from telemetry import story 6 from telemetry import story
7 7
8 8
9 TOP_2013_URLS = [ 9 TOP_2013_URLS = [
10 'http://www.facebook.com/barackobama', 10 'http://www.facebook.com/barackobama',
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 'http://kakaku.com', 244 'http://kakaku.com',
245 'http://flipkart.com', 245 'http://flipkart.com',
246 'http://paipai.com' 246 'http://paipai.com'
247 ] 247 ]
248 248
249 249
250 class Top2012Q3Page(page.Page): 250 class Top2012Q3Page(page.Page):
251 251
252 def __init__(self, url, ps): 252 def __init__(self, url, ps):
253 super(Top2012Q3Page, self).__init__( 253 super(Top2012Q3Page, self).__init__(
254 url=url, page_set=ps, credentials_path = 'data/credentials.json') 254 url=url, page_set=ps, credentials_path = 'data/credentials.json',
255 name=url[:140]) # Make sure page's name is not too long
255 self.archive_data_file = 'data/2012Q3.json' 256 self.archive_data_file = 'data/2012Q3.json'
256 257
257 def RunPageInteractions(self, action_runner): 258 def RunPageInteractions(self, action_runner):
258 with action_runner.CreateGestureInteraction('ScrollAction'): 259 with action_runner.CreateGestureInteraction('ScrollAction'):
259 action_runner.ScrollPage() 260 action_runner.ScrollPage()
260 261
261 262
262 class Top2012Q3PageSet(story.StorySet): 263 class Top2012Q3PageSet(story.StorySet):
263 """ Pages hand-picked from top-lists in Q32012. """ 264 """ Pages hand-picked from top-lists in Q32012. """
264 265
265 def __init__(self): 266 def __init__(self):
266 super(Top2012Q3PageSet, self).__init__( 267 super(Top2012Q3PageSet, self).__init__(
267 archive_data_file='data/2012Q3.json', 268 archive_data_file='data/2012Q3.json',
268 cloud_storage_bucket=story.PARTNER_BUCKET) 269 cloud_storage_bucket=story.PARTNER_BUCKET)
269 270
270 271
271 for url in TOP_2013_URLS: 272 for url in TOP_2013_URLS:
272 self.AddStory(Top2012Q3Page(url, self)) 273 self.AddStory(Top2012Q3Page(url, self))
OLDNEW
« no previous file with comments | « tools/perf/page_sets/profile_safe_urls.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698