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

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

Issue 2719853003: [Telemetry refactor] Drop "2" from method calls to JS API (Closed)
Patch Set: Created 3 years, 9 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/tough_webgl_cases.py ('k') | tools/perf/page_sets/typical_25.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 shared_page_state 5 from telemetry.page import shared_page_state
6 from telemetry import story 6 from telemetry import story
7 7
8 8
9 class Typical10MobilePage(page_module.Page): 9 class Typical10MobilePage(page_module.Page):
10 10
(...skipping 11 matching lines...) Expand all
22 22
23 class Typical10MobileReloadPage(Typical10MobilePage): 23 class Typical10MobileReloadPage(Typical10MobilePage):
24 24
25 def __init__(self, url, page_set, name=''): 25 def __init__(self, url, page_set, name=''):
26 super(Typical10MobileReloadPage, self).__init__( 26 super(Typical10MobileReloadPage, self).__init__(
27 url=url, page_set=page_set, name=name,) 27 url=url, page_set=page_set, name=name,)
28 28
29 def RunPageInteractions(self, action_runner): 29 def RunPageInteractions(self, action_runner):
30 for _ in range(0, 5): 30 for _ in range(0, 5):
31 action_runner.ReloadPage() 31 action_runner.ReloadPage()
32 action_runner.WaitForJavaScriptCondition2( 32 action_runner.WaitForJavaScriptCondition(
33 'document.readyState === "complete"') 33 'document.readyState === "complete"')
34 34
35 35
36 urls_list = [ 36 urls_list = [
37 # Why: Top site 37 # Why: Top site
38 'http://m.facebook.com/barackobama', 38 'http://m.facebook.com/barackobama',
39 # Why: Wikipedia article with lots of pictures, German language 39 # Why: Wikipedia article with lots of pictures, German language
40 'http://de.m.wikipedia.org/wiki/K%C3%B6lner_Dom', 40 'http://de.m.wikipedia.org/wiki/K%C3%B6lner_Dom',
41 # Why: current top Q&A on popular Japanese site 41 # Why: current top Q&A on popular Japanese site
42 'http://m.chiebukuro.yahoo.co.jp/detail/q10136829180', 42 'http://m.chiebukuro.yahoo.co.jp/detail/q10136829180',
(...skipping 28 matching lines...) Expand all
71 class Typical10MobileReloadPageSet(story.StorySet): 71 class Typical10MobileReloadPageSet(story.StorySet):
72 """10 typical mobile pages, used for reloading power testing.""" 72 """10 typical mobile pages, used for reloading power testing."""
73 73
74 def __init__(self): 74 def __init__(self):
75 super(Typical10MobileReloadPageSet, self).__init__( 75 super(Typical10MobileReloadPageSet, self).__init__(
76 archive_data_file='data/typical_10_mobile.json', 76 archive_data_file='data/typical_10_mobile.json',
77 cloud_storage_bucket=story.PARTNER_BUCKET) 77 cloud_storage_bucket=story.PARTNER_BUCKET)
78 78
79 for url in urls_list: 79 for url in urls_list:
80 self.AddStory(Typical10MobileReloadPage(url, self)) 80 self.AddStory(Typical10MobileReloadPage(url, self))
OLDNEW
« no previous file with comments | « tools/perf/page_sets/tough_webgl_cases.py ('k') | tools/perf/page_sets/typical_25.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698