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

Unified Diff: tools/perf/page_sets/tough_fast_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: 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
Index: tools/perf/page_sets/tough_fast_scrolling_cases.py
diff --git a/tools/perf/page_sets/tough_fast_scrolling_cases.py b/tools/perf/page_sets/tough_fast_scrolling_cases.py
new file mode 100644
index 0000000000000000000000000000000000000000..c9bb2e312e3c1fe5f0804d54452782565dd18fe5
--- /dev/null
+++ b/tools/perf/page_sets/tough_fast_scrolling_cases.py
@@ -0,0 +1,37 @@
+# Copyright 2014 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+from telemetry.page import page as page_module
+from telemetry.page import page_set as page_set_module
+
+
+class ToughFastScrollingCasesPage(page_module.Page):
+
+ def __init__(self, url, page_set):
+ super(ToughFastScrollingCasesPage, self).__init__(
+ url=url,
+ page_set=page_set)
+
+ 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 ToughFastScrollingCasesPageSet(page_set_module.PageSet):
+
+ """
+ Description: A collection of difficult fast scrolling tests
+ """
+
+ def __init__(self):
+ super(ToughFastScrollingCasesPageSet, self).__init__()
+
+ urls_list = [
+ 'file://tough_fast_scrolling_cases/lorem_ipsum.html',
+ 'file://tough_fast_scrolling_cases/canvas.html',
+ ]
+
+ for url in urls_list:
+ self.AddPage(ToughFastScrollingCasesPage(url, self))

Powered by Google App Engine
This is Rietveld 408576698