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

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

Issue 688423002: tools: Add tough_fast_scrolling_cases page set. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add fast scrolling cases to tough scrolling page set with a "fastscrolling" label instead Created 6 years, 2 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/benchmarks/smoothness.py ('k') | tools/perf/page_sets/tough_scrolling_cases/canvas.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/page_sets/tough_scrolling_cases.py
diff --git a/tools/perf/page_sets/tough_scrolling_cases.py b/tools/perf/page_sets/tough_scrolling_cases.py
index da4154ad65cb5f84445e923e3581489d118ac672..9c76d400b2c97fc2170da477a9135ff6d875162c 100644
--- a/tools/perf/page_sets/tough_scrolling_cases.py
+++ b/tools/perf/page_sets/tough_scrolling_cases.py
@@ -16,6 +16,19 @@ class ToughScrollingCasesPage(page_module.Page):
action_runner.ScrollPage()
interaction.End()
+class ToughFastScrollingCasesPage(page_module.Page):
+
+ def __init__(self, url, page_set):
+ super(ToughFastScrollingCasesPage, self).__init__(
+ url=url,
+ page_set=page_set,
+ labels=['fastscrolling'])
+
+ def RunSmoothness(self, action_runner):
+ interaction = action_runner.BeginGestureInteraction(
+ 'ScrollAction', is_smooth=True)
+ action_runner.ScrollPage(direction='down', speed_in_pixels_per_second=16000)
+ interaction.End()
class ToughScrollingCasesPageSet(page_set_module.PageSet):
@@ -41,3 +54,10 @@ class ToughScrollingCasesPageSet(page_set_module.PageSet):
for url in urls_list:
self.AddPage(ToughScrollingCasesPage(url, self))
+ fast_scrolling_urls_list = [
+ 'file://tough_scrolling_cases/lorem_ipsum.html',
+ 'file://tough_scrolling_cases/canvas.html',
+ ]
+
+ for url in fast_scrolling_urls_list:
+ self.AddPage(ToughFastScrollingCasesPage(url, self))
« no previous file with comments | « tools/perf/benchmarks/smoothness.py ('k') | tools/perf/page_sets/tough_scrolling_cases/canvas.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698