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

Unified Diff: tools/perf/page_sets/top_10_mobile.py

Issue 876313010: [Telemetry] Remove actions in RunPageInteractions for some of page_cycler's pages. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/perf/page_sets/intl_ko_th_vi.py ('k') | tools/perf/page_sets/tough_layout_cases.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/page_sets/top_10_mobile.py
diff --git a/tools/perf/page_sets/top_10_mobile.py b/tools/perf/page_sets/top_10_mobile.py
index 05ce29791a56c8ef0761596f87ee0640214f9444..f3f80c5d7ea4728f3724c4db634221784c18a2d6 100644
--- a/tools/perf/page_sets/top_10_mobile.py
+++ b/tools/perf/page_sets/top_10_mobile.py
@@ -7,13 +7,16 @@ from telemetry.page import page_set as page_set_module
class Top10MobilePage(page_module.Page):
- def __init__(self, url, page_set):
+ def __init__(self, url, page_set, run_no_page_interactions):
super(Top10MobilePage, self).__init__(
url=url, page_set=page_set, credentials_path = 'data/credentials.json')
self.user_agent_type = 'mobile'
self.archive_data_file = 'data/top_10_mobile.json'
+ self._run_no_page_interactions = run_no_page_interactions
def RunPageInteractions(self, action_runner):
+ if self._run_no_page_interactions:
+ return
interaction = action_runner.BeginGestureInteraction(
'ScrollAction', is_smooth=True)
action_runner.ScrollPage()
@@ -24,7 +27,7 @@ class Top10MobilePageSet(page_set_module.PageSet):
""" Top 10 mobile sites """
- def __init__(self):
+ def __init__(self, run_no_page_interactions=False):
super(Top10MobilePageSet, self).__init__(
user_agent_type='mobile',
archive_data_file='data/top_10_mobile.json',
@@ -63,4 +66,4 @@ class Top10MobilePageSet(page_set_module.PageSet):
]
for url in urls_list:
- self.AddUserStory(Top10MobilePage(url, self))
+ self.AddUserStory(Top10MobilePage(url, self, run_no_page_interactions))
« no previous file with comments | « tools/perf/page_sets/intl_ko_th_vi.py ('k') | tools/perf/page_sets/tough_layout_cases.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698