OLD | NEW |
(Empty) | |
| 1 |
| 2 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. |
| 5 # pylint: disable=W0401,W0614 |
| 6 |
| 7 from telemetry.page import page as page_module |
| 8 from telemetry.page import page_set as page_set_module |
| 9 |
| 10 |
| 11 class TypicalAlexaPage(page_module.Page): |
| 12 |
| 13 def __init__(self, url, page_set): |
| 14 super(TypicalAlexaPage, self).__init__(url=url, page_set=page_set) |
| 15 self.user_agent_type = 'desktop' |
| 16 self.archive_data_file = '/b/storage/webpages_archive/10k/alexa1-1.json' |
| 17 |
| 18 def RunSmoothness(self, action_runner): |
| 19 action_runner.ScrollElement() |
| 20 |
| 21 def RunRepaint(self, action_runner): |
| 22 action_runner.RepaintContinuously(seconds=5) |
| 23 |
| 24 |
| 25 class TypicalAlexaPageSet(page_set_module.PageSet): |
| 26 |
| 27 def __init__(self): |
| 28 super(TypicalAlexaPageSet, self).__init__( |
| 29 user_agent_type='desktop', |
| 30 archive_data_file='/b/storage/webpages_archive/10k/alexa1-1.json') |
| 31 |
| 32 urls_list = ['http://www.google.com'] |
| 33 |
| 34 for url in urls_list: |
| 35 self.AddPage(TypicalAlexaPage(url, self)) |
OLD | NEW |