Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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 | 4 |
| 5 from page_sets.system_health import platforms | 5 from page_sets.system_health import platforms |
| 6 from page_sets.system_health import system_health_story | 6 from page_sets.system_health import system_health_story |
| 7 | 7 |
| 8 from telemetry import decorators | 8 from telemetry import decorators |
| 9 | 9 |
| 10 | 10 |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 147 | 147 |
| 148 class NytimesDesktopStory(_NewsBrowsingStory): | 148 class NytimesDesktopStory(_NewsBrowsingStory): |
| 149 """The third top website in http://www.alexa.com/topsites/category/News""" | 149 """The third top website in http://www.alexa.com/topsites/category/News""" |
| 150 NAME = 'browse:news:nytimes' | 150 NAME = 'browse:news:nytimes' |
| 151 URL = 'http://www.nytimes.com' | 151 URL = 'http://www.nytimes.com' |
| 152 ITEM_SELECTOR = '.story-heading > a' | 152 ITEM_SELECTOR = '.story-heading > a' |
| 153 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY | 153 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY |
| 154 | 154 |
| 155 | 155 |
| 156 # Desktop qq.com opens a news item in a separate tab, for which the back button | 156 # Desktop qq.com opens a news item in a separate tab, for which the back button |
| 157 # does not work. Mobile qq.com is disabled due to crbug.com/627166. | 157 # does not work. |
| 158 @decorators.Disabled('all') | |
|
perezju
2016/10/03 13:36:49
should it remain disabled on desktop?
petrcermak
2016/10/03 13:40:30
No, this is the correct way. Desktop is not even c
| |
| 159 class QqMobileStory(_NewsBrowsingStory): | 158 class QqMobileStory(_NewsBrowsingStory): |
| 160 NAME = 'browse:news:qq' | 159 NAME = 'browse:news:qq' |
| 161 URL = 'http://news.qq.com' | 160 URL = 'http://news.qq.com' |
| 162 ITEM_SELECTOR = '.list .full a' | 161 ITEM_SELECTOR = '.list .full a' |
| 163 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY | 162 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY |
| 164 | 163 |
| 165 | 164 |
| 166 class RedditDesktopStory(_NewsBrowsingStory): | 165 class RedditDesktopStory(_NewsBrowsingStory): |
| 167 """The top website in http://www.alexa.com/topsites/category/News""" | 166 """The top website in http://www.alexa.com/topsites/category/News""" |
| 168 NAME = 'browse:news:reddit' | 167 NAME = 'browse:news:reddit' |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 294 | 293 |
| 295 class FacebookPhotosDesktopStory(_MediaBrowsingStory): | 294 class FacebookPhotosDesktopStory(_MediaBrowsingStory): |
| 296 NAME = 'browse:media:facebook_photos' | 295 NAME = 'browse:media:facebook_photos' |
| 297 URL = ( | 296 URL = ( |
| 298 'https://www.facebook.com/rihanna/photos/a.207477806675.138795.10092511675 /10153911739606676/?type=3&theater') | 297 'https://www.facebook.com/rihanna/photos/a.207477806675.138795.10092511675 /10153911739606676/?type=3&theater') |
| 299 ITEM_SELECTOR = '.snowliftPager.next' | 298 ITEM_SELECTOR = '.snowliftPager.next' |
| 300 # Recording currently does not work. The page gets stuck in the | 299 # Recording currently does not work. The page gets stuck in the |
| 301 # theater viewer. | 300 # theater viewer. |
| 302 SUPPORTED_PLATFORMS = platforms.NO_PLATFORMS | 301 SUPPORTED_PLATFORMS = platforms.NO_PLATFORMS |
| 303 IS_SINGLE_PAGE_APP = True | 302 IS_SINGLE_PAGE_APP = True |
| OLD | NEW |