Index: tools/perf/page_sets/snappoints_cases.py |
diff --git a/tools/perf/page_sets/snappoints_cases.py b/tools/perf/page_sets/snappoints_cases.py |
new file mode 100644 |
index 0000000000000000000000000000000000000000..4e2f19831d9b0496f2f3b318fa0795fb8d1bfd84 |
--- /dev/null |
+++ b/tools/perf/page_sets/snappoints_cases.py |
@@ -0,0 +1,26 @@ |
+# 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 import story |
+ |
+ |
+class SnappointsCasesPage(page_module.Page): |
+ |
+ def __init__(self, url, page_set): |
+ super(SnappointsCasesPage, self).__init__(url=url, page_set=page_set) |
+ self.archive_data_file = 'data/snappoints_memory.json' |
+ |
+ def RunPageInteractions(self, action_runner): |
+ with action_runner.CreateGestureInteraction('ScrollAction'): |
+ action_runner.ScrollPage() |
+ |
+class SnappointsCasesPageSet(story.StorySet): |
+ |
+ """ A collection of tests to measure layer performance. """ |
+ |
+ def __init__(self): |
+ super(SnappointsCasesPageSet, self).__init__() |
+ |
+ self.AddStory(SnappointsCasesPage( |
+ 'file://snappoints_cases/1000_snap_elements.html', self)) |