Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(304)

Side by Side Diff: tools/perf/page_sets/system_health/browsing_stories.py

Issue 2592933003: [system health] Re-enable about:blank and browse:news:cnn on win (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tools/perf/page_sets/system_health/blank_stories.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 page_sets.login_helpers import pinterest_login 8 from page_sets.login_helpers import pinterest_login
9 9
10 from telemetry import decorators 10 from telemetry import decorators
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 action_runner.RepeatableBrowserDrivenScroll( 80 action_runner.RepeatableBrowserDrivenScroll(
81 repeat_count=self.ITEM_SCROLL_REPEAT) 81 repeat_count=self.ITEM_SCROLL_REPEAT)
82 action_runner.Wait(self.ITEM_READ_TIME_IN_SECONDS/2.0) 82 action_runner.Wait(self.ITEM_READ_TIME_IN_SECONDS/2.0)
83 83
84 def _ScrollMainPage(self, action_runner): 84 def _ScrollMainPage(self, action_runner):
85 action_runner.tab.WaitForDocumentReadyStateToBeComplete() 85 action_runner.tab.WaitForDocumentReadyStateToBeComplete()
86 action_runner.RepeatableBrowserDrivenScroll( 86 action_runner.RepeatableBrowserDrivenScroll(
87 repeat_count=self.MAIN_PAGE_SCROLL_REPEAT) 87 repeat_count=self.MAIN_PAGE_SCROLL_REPEAT)
88 88
89 89
90 # TODO(ulan): Enable this story on mobile once it uses less memory and does not 90 @decorators.Disabled('android') # crbug.com/676338
91 # crash with OOM.
92 @decorators.Disabled('android',
93 'win') # crbug.com/665465
94 class CnnStory(_NewsBrowsingStory): 91 class CnnStory(_NewsBrowsingStory):
95 """The second top website in http://www.alexa.com/topsites/category/News""" 92 """The second top website in http://www.alexa.com/topsites/category/News"""
96 NAME = 'browse:news:cnn' 93 NAME = 'browse:news:cnn'
97 URL = 'http://edition.cnn.com/' 94 URL = 'http://edition.cnn.com/'
98 ITEM_SELECTOR = '.cd__content > h3 > a' 95 ITEM_SELECTOR = '.cd__content > h3 > a'
99 ITEMS_TO_VISIT = 2 96 ITEMS_TO_VISIT = 2
100 97
101 98
102 class FacebookMobileStory(_NewsBrowsingStory): 99 class FacebookMobileStory(_NewsBrowsingStory):
103 NAME = 'browse:social:facebook' 100 NAME = 'browse:social:facebook'
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
427 inner_save_function = 'document.querySelector(".nameAndIcons")' 424 inner_save_function = 'document.querySelector(".nameAndIcons")'
428 action_runner.WaitForElement(element_function=inner_save_function) 425 action_runner.WaitForElement(element_function=inner_save_function)
429 action_runner.ClickElement(element_function=inner_save_function) 426 action_runner.ClickElement(element_function=inner_save_function)
430 action_runner.Wait(1) # Wait to make navigation realistic. 427 action_runner.Wait(1) # Wait to make navigation realistic.
431 428
432 # Close selection. 429 # Close selection.
433 x_element_function = ('document.querySelector(' 430 x_element_function = ('document.querySelector('
434 '".Button.borderless.close.visible")') 431 '".Button.borderless.close.visible")')
435 action_runner.ClickElement(element_function=x_element_function) 432 action_runner.ClickElement(element_function=x_element_function)
436 action_runner.Wait(1) # Wait to make navigation realistic. 433 action_runner.Wait(1) # Wait to make navigation realistic.
OLDNEW
« no previous file with comments | « tools/perf/page_sets/system_health/blank_stories.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698