| OLD | NEW |
| 1 # encoding: utf-8 | 1 # encoding: utf-8 |
| 2 # Copyright 2016 The Chromium Authors. All rights reserved. | 2 # Copyright 2016 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 from page_sets.system_health import platforms | 6 from page_sets.system_health import platforms |
| 7 from page_sets.system_health import story_tags | 7 from page_sets.system_health import story_tags |
| 8 from page_sets.system_health import system_health_story | 8 from page_sets.system_health import system_health_story |
| 9 | 9 |
| 10 from page_sets.login_helpers import pinterest_login | 10 from page_sets.login_helpers import pinterest_login |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 | 192 |
| 193 class RedditMobileStory(_ArticleBrowsingStory): | 193 class RedditMobileStory(_ArticleBrowsingStory): |
| 194 """The top website in http://www.alexa.com/topsites/category/News""" | 194 """The top website in http://www.alexa.com/topsites/category/News""" |
| 195 NAME = 'browse:news:reddit' | 195 NAME = 'browse:news:reddit' |
| 196 URL = 'https://www.reddit.com/r/news/top/?sort=top&t=week' | 196 URL = 'https://www.reddit.com/r/news/top/?sort=top&t=week' |
| 197 IS_SINGLE_PAGE_APP = True | 197 IS_SINGLE_PAGE_APP = True |
| 198 ITEM_SELECTOR = '.PostHeader__post-title-line' | 198 ITEM_SELECTOR = '.PostHeader__post-title-line' |
| 199 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY | 199 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY |
| 200 | 200 |
| 201 | 201 |
| 202 @decorators.Disabled('mac') # crbug.com/722094 | |
| 203 class TwitterMobileStory(_ArticleBrowsingStory): | 202 class TwitterMobileStory(_ArticleBrowsingStory): |
| 204 NAME = 'browse:social:twitter' | 203 NAME = 'browse:social:twitter' |
| 205 URL = 'https://www.twitter.com/nasa' | 204 URL = 'https://www.twitter.com/nasa' |
| 206 ITEM_SELECTOR = '.Tweet-text' | 205 ITEM_SELECTOR = '.Tweet-text' |
| 207 CONTAINER_SELECTOR = '.NavigationSheet' | 206 CONTAINER_SELECTOR = '.NavigationSheet' |
| 208 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY | 207 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY |
| 209 | 208 |
| 210 | 209 |
| 211 @decorators.Disabled('win') # crbug.com/662971 | 210 @decorators.Disabled('win') # crbug.com/662971 |
| 212 class TwitterDesktopStory(_ArticleBrowsingStory): | 211 class TwitterDesktopStory(_ArticleBrowsingStory): |
| (...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 764 # Reduce the speed (the current wpr is recorded with speed set to 50) when | 763 # Reduce the speed (the current wpr is recorded with speed set to 50) when |
| 765 # recording the wpr. If we scroll too fast, the data will not be recorded | 764 # recording the wpr. If we scroll too fast, the data will not be recorded |
| 766 # well. After recording reset it back to the original value to have a more | 765 # well. After recording reset it back to the original value to have a more |
| 767 # realistic scroll. | 766 # realistic scroll. |
| 768 action_runner.RepeatableBrowserDrivenScroll( | 767 action_runner.RepeatableBrowserDrivenScroll( |
| 769 x_scroll_distance_ratio = 0.0, y_scroll_distance_ratio = 1, | 768 x_scroll_distance_ratio = 0.0, y_scroll_distance_ratio = 1, |
| 770 repeat_count=3, speed=400, timeout=120) | 769 repeat_count=3, speed=400, timeout=120) |
| 771 action_runner.RepeatableBrowserDrivenScroll( | 770 action_runner.RepeatableBrowserDrivenScroll( |
| 772 x_scroll_distance_ratio = 1, y_scroll_distance_ratio = 0, | 771 x_scroll_distance_ratio = 1, y_scroll_distance_ratio = 0, |
| 773 repeat_count=3, speed=500, timeout=120) | 772 repeat_count=3, speed=500, timeout=120) |
| OLD | NEW |