OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 from telemetry.page.page_set import PageSet | 4 from telemetry.page.page_set import PageSet |
5 from telemetry.page.page import Page | 5 from telemetry.page.page import Page |
6 | 6 |
7 | 7 |
8 class Alexa1To10000Page(Page): | 8 class Alexa1To10000Page(Page): |
9 | 9 |
10 def __init__(self, url, page_set): | 10 def __init__(self, url, page_set): |
11 super(Alexa1To10000Page, self).__init__(url=url, page_set=page_set) | 11 super(Alexa1To10000Page, self).__init__(url=url, page_set=page_set) |
12 | 12 |
13 def RunSmoothness(self, action_runner): | 13 def RunPageInteractions(self, action_runner): |
14 interaction = action_runner.BeginGestureInteraction( | 14 interaction = action_runner.BeginGestureInteraction( |
15 'ScrollAction', is_smooth=True) | 15 'ScrollAction', is_smooth=True) |
16 action_runner.ScrollPage() | 16 action_runner.ScrollPage() |
17 interaction.End() | 17 interaction.End() |
18 | 18 |
19 | 19 |
20 class Alexa1To10000PageSet(PageSet): | 20 class Alexa1To10000PageSet(PageSet): |
21 """ Top 1-10000 Alexa global. | 21 """ Top 1-10000 Alexa global. |
22 Generated on 2013-09-03 13:59:53.459117 by rmistry using | 22 Generated on 2013-09-03 13:59:53.459117 by rmistry using |
23 create_page_set.py. | 23 create_page_set.py. |
(...skipping 19344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
19368 # Why: #9996 in Alexa global | 19368 # Why: #9996 in Alexa global |
19369 'http://www.mastemplate.com/', | 19369 'http://www.mastemplate.com/', |
19370 # Why: #9997 in Alexa global | 19370 # Why: #9997 in Alexa global |
19371 'http://www.bolha.com/', | 19371 'http://www.bolha.com/', |
19372 # Why: #9998 in Alexa global | 19372 # Why: #9998 in Alexa global |
19373 'http://www.tastyplay.com/', | 19373 'http://www.tastyplay.com/', |
19374 # Why: #9999 in Alexa global | 19374 # Why: #9999 in Alexa global |
19375 'http://www.busuk.org/'] | 19375 'http://www.busuk.org/'] |
19376 for url in urls_list: | 19376 for url in urls_list: |
19377 self.AddUserStory(Alexa1To10000Page(url, self)) | 19377 self.AddUserStory(Alexa1To10000Page(url, self)) |
OLD | NEW |