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 | 5 |
6 | 6 |
7 from telemetry.page import page as page_module | 7 from telemetry.page import page as page_module |
8 from telemetry.page import page_set as page_set_module | 8 from telemetry.page import page_set as page_set_module |
9 | 9 |
10 | 10 |
(...skipping 10 matching lines...) Expand all Loading... |
21 self.credentials = 'facebook' | 21 self.credentials = 'facebook' |
22 | 22 |
23 def RunSmoothness(self, action_runner): | 23 def RunSmoothness(self, action_runner): |
24 action_runner.ScrollElement() | 24 action_runner.ScrollElement() |
25 | 25 |
26 def RunNavigateSteps(self, action_runner): | 26 def RunNavigateSteps(self, action_runner): |
27 action_runner.NavigateToPage(self) | 27 action_runner.NavigateToPage(self) |
28 action_runner.Wait(5) | 28 action_runner.Wait(5) |
29 | 29 |
30 | 30 |
31 class SkiaBuildbotPageSet(page_set_module.PageSet): | 31 class FacebookDesktopPageSet(page_set_module.PageSet): |
32 | 32 |
33 """ Pages designed to represent the median, not highly optimized web """ | 33 """ Pages designed to represent the median, not highly optimized web """ |
34 | 34 |
35 def __init__(self): | 35 def __init__(self): |
36 super(SkiaBuildbotPageSet, self).__init__( | 36 super(FacebookDesktopPageSet, self).__init__( |
37 user_agent_type='desktop', | 37 user_agent_type='desktop', |
38 archive_data_file='data/skia_facebook_desktop.json') | 38 archive_data_file='data/skia_facebook_desktop.json') |
39 | 39 |
40 urls_list = [ | 40 urls_list = [ |
41 # Why: Top social, public profile. | 41 # Why: Top social, public profile. |
42 'http://www.facebook.com/barackobama', | 42 'http://www.facebook.com/barackobama', |
43 ] | 43 ] |
44 | 44 |
45 for url in urls_list: | 45 for url in urls_list: |
46 self.AddPage(SkiaBuildbotDesktopPage(url, self)) | 46 self.AddPage(SkiaBuildbotDesktopPage(url, self)) |
OLD | NEW |