| 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 # pylint: disable=W0401,W0614 | 4 # pylint: disable=W0401,W0614 |
| 5 from telemetry.page.actions.all_page_actions import * | 5 from telemetry.page.actions.all_page_actions import * |
| 6 from telemetry.page import page as page_module | 6 from telemetry.page import page as page_module |
| 7 from telemetry.page import page_set as page_set_module | 7 from telemetry.page import page_set as page_set_module |
| 8 | 8 |
| 9 | 9 |
| 10 class Typical25Page(page_module.Page): | 10 class Typical25Page(page_module.Page): |
| 11 | 11 |
| 12 def __init__(self, url, page_set): | 12 def __init__(self, url, page_set): |
| 13 super(Typical25Page, self).__init__(url=url, page_set=page_set) | 13 super(Typical25Page, self).__init__(url=url, page_set=page_set) |
| 14 self.user_agent_type = 'desktop' | 14 self.user_agent_type = 'desktop' |
| 15 self.archive_data_file = 'data/typical_25.json' | 15 self.archive_data_file = 'data/typical_25.json' |
| 16 | 16 |
| 17 def RunSmoothness(self, action_runner): | 17 def RunSmoothness(self, action_runner): |
| 18 action_runner.RunAction(ScrollAction()) | 18 action_runner.RunAction(ScrollAction()) |
| 19 | 19 |
| 20 | 20 |
| 21 class Typical25PageSet(page_set_module.PageSet): | 21 class Typical25PageSet(page_set_module.PageSet): |
| 22 | 22 |
| 23 """ Pages designed to represent the median, not highly optimized web """ | 23 """ Pages designed to represent the median, not highly optimized web """ |
| 24 | 24 |
| 25 def __init__(self): | 25 def __init__(self): |
| 26 super(Typical25PageSet, self).__init__( | 26 super(Typical25PageSet, self).__init__( |
| 27 user_agent_type='desktop', | 27 user_agent_type='desktop', |
| 28 archive_data_file='data/typical_25.json') | 28 archive_data_file='data/typical_25.json', |
| 29 bucket=page_set_module.PARTNER_BUCKET) |
| 29 | 30 |
| 30 urls_list = [ | 31 urls_list = [ |
| 31 # Why: Alexa games #48 | 32 # Why: Alexa games #48 |
| 32 'http://www.nick.com/games', | 33 'http://www.nick.com/games', |
| 33 # Why: Alexa sports #45 | 34 # Why: Alexa sports #45 |
| 34 'http://www.rei.com/', | 35 'http://www.rei.com/', |
| 35 # Why: Alexa sports #50 | 36 # Why: Alexa sports #50 |
| 36 'http://www.fifa.com/', | 37 'http://www.fifa.com/', |
| 37 # Why: Alexa shopping #41 | 38 # Why: Alexa shopping #41 |
| 38 'http://www.gamestop.com/ps3', | 39 'http://www.gamestop.com/ps3', |
| (...skipping 24 matching lines...) Expand all Loading... |
| 63 # pylint: disable=C0301 | 64 # pylint: disable=C0301 |
| 64 'http://www.theverge.com/2013/3/5/4061684/inside-ted-the-smartest-bubble-i
n-the-world', | 65 'http://www.theverge.com/2013/3/5/4061684/inside-ted-the-smartest-bubble-i
n-the-world', |
| 65 'http://www.airbnb.com/', | 66 'http://www.airbnb.com/', |
| 66 'http://www.ign.com/', | 67 'http://www.ign.com/', |
| 67 # Why: Alexa health #25 | 68 # Why: Alexa health #25 |
| 68 'http://www.fda.gov', | 69 'http://www.fda.gov', |
| 69 ] | 70 ] |
| 70 | 71 |
| 71 for url in urls_list: | 72 for url in urls_list: |
| 72 self.AddPage(Typical25Page(url, self)) | 73 self.AddPage(Typical25Page(url, self)) |
| OLD | NEW |