OLD | NEW |
(Empty) | |
| 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 |
| 3 # found in the LICENSE file. |
| 4 from telemetry.page import page as page_module |
| 5 from telemetry import story |
| 6 |
| 7 |
| 8 class SnappointsCasesPage(page_module.Page): |
| 9 |
| 10 def __init__(self, url, page_set): |
| 11 super(SnappointsCasesPage, self).__init__(url=url, page_set=page_set) |
| 12 self.archive_data_file = 'data/snappoints_memory.json' |
| 13 |
| 14 def RunPageInteractions(self, action_runner): |
| 15 with action_runner.CreateGestureInteraction('ScrollAction'): |
| 16 action_runner.ScrollPage() |
| 17 |
| 18 class SnappointsCasesPageSet(story.StorySet): |
| 19 |
| 20 """ A collection of tests to measure layer performance. """ |
| 21 |
| 22 def __init__(self): |
| 23 super(SnappointsCasesPageSet, self).__init__() |
| 24 |
| 25 self.AddStory(SnappointsCasesPage( |
| 26 'file://snappoints_cases/1000_snap_elements.html', self)) |
OLD | NEW |