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 559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
570 ITEM_SELECTOR = '.dummy-img' | 570 ITEM_SELECTOR = '.dummy-img' |
571 | 571 |
572 | 572 |
573 @decorators.Disabled('android') # crbug.com/713036. | 573 @decorators.Disabled('android') # crbug.com/713036. |
574 class BrowseGloboMobileStory(_ArticleBrowsingStory): | 574 class BrowseGloboMobileStory(_ArticleBrowsingStory): |
575 NAME = 'browse:news:globo' | 575 NAME = 'browse:news:globo' |
576 URL = 'http://www.globo.com' | 576 URL = 'http://www.globo.com' |
577 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY | 577 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY |
578 TAGS = [story_tags.EMERGING_MARKET] | 578 TAGS = [story_tags.EMERGING_MARKET] |
579 | 579 |
580 ITEMS_TO_VISIT = 4 | 580 ITEMS_TO_VISIT = 3 # 4 links causes renderer OOM crbug.com/714650. |
581 ITEM_SELECTOR = '.hui-premium__title' | 581 ITEM_SELECTOR = '.hui-premium__title' |
582 | 582 |
583 | 583 |
584 class BrowseCricBuzzMobileStory(_ArticleBrowsingStory): | 584 class BrowseCricBuzzMobileStory(_ArticleBrowsingStory): |
585 NAME = 'browse:news:cricbuzz' | 585 NAME = 'browse:news:cricbuzz' |
586 URL = 'http://m.cricbuzz.com' | 586 URL = 'http://m.cricbuzz.com' |
587 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY | 587 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY |
588 TAGS = [story_tags.EMERGING_MARKET] | 588 TAGS = [story_tags.EMERGING_MARKET] |
589 | 589 |
590 ITEMS_TO_VISIT = 3 | 590 ITEMS_TO_VISIT = 3 |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
773 # Reduce the speed (the current wpr is recorded with speed set to 50) when | 773 # Reduce the speed (the current wpr is recorded with speed set to 50) when |
774 # recording the wpr. If we scroll too fast, the data will not be recorded | 774 # recording the wpr. If we scroll too fast, the data will not be recorded |
775 # well. After recording reset it back to the original value to have a more | 775 # well. After recording reset it back to the original value to have a more |
776 # realistic scroll. | 776 # realistic scroll. |
777 action_runner.RepeatableBrowserDrivenScroll( | 777 action_runner.RepeatableBrowserDrivenScroll( |
778 x_scroll_distance_ratio = 0.0, y_scroll_distance_ratio = 1, | 778 x_scroll_distance_ratio = 0.0, y_scroll_distance_ratio = 1, |
779 repeat_count=3, speed=400, timeout=120) | 779 repeat_count=3, speed=400, timeout=120) |
780 action_runner.RepeatableBrowserDrivenScroll( | 780 action_runner.RepeatableBrowserDrivenScroll( |
781 x_scroll_distance_ratio = 1, y_scroll_distance_ratio = 0, | 781 x_scroll_distance_ratio = 1, y_scroll_distance_ratio = 0, |
782 repeat_count=3, speed=500, timeout=120) | 782 repeat_count=3, speed=500, timeout=120) |
OLD | NEW |