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

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

Issue 2467913002: Touch event flag should control only DOM event firing. (Closed)
Patch Set: Deprecate the histogram. 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
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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 134
135 @decorators.Disabled('mac') # crbug.com/663025 135 @decorators.Disabled('mac') # crbug.com/663025
136 class FlipboardDesktopStory(_NewsBrowsingStory): 136 class FlipboardDesktopStory(_NewsBrowsingStory):
137 NAME = 'browse:news:flipboard' 137 NAME = 'browse:news:flipboard'
138 URL = 'https://flipboard.com/explore' 138 URL = 'https://flipboard.com/explore'
139 IS_SINGLE_PAGE_APP = True 139 IS_SINGLE_PAGE_APP = True
140 ITEM_SELECTOR = '.cover-image' 140 ITEM_SELECTOR = '.cover-image'
141 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY 141 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY
142 142
143 143
144 @decorators.Disabled('win') # crbug.com/657665 144 # crbug.com/657665 for win, crbug.com/665007 for linux
145 @decorators.Disabled('win', 'linux')
145 class HackerNewsStory(_NewsBrowsingStory): 146 class HackerNewsStory(_NewsBrowsingStory):
146 NAME = 'browse:news:hackernews' 147 NAME = 'browse:news:hackernews'
147 URL = 'https://news.ycombinator.com' 148 URL = 'https://news.ycombinator.com'
148 ITEM_SELECTOR = '.athing .title > a' 149 ITEM_SELECTOR = '.athing .title > a'
149 150
150 151
151 class NytimesMobileStory(_NewsBrowsingStory): 152 class NytimesMobileStory(_NewsBrowsingStory):
152 """The third top website in http://www.alexa.com/topsites/category/News""" 153 """The third top website in http://www.alexa.com/topsites/category/News"""
153 NAME = 'browse:news:nytimes' 154 NAME = 'browse:news:nytimes'
154 URL = 'http://mobile.nytimes.com' 155 URL = 'http://mobile.nytimes.com'
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 inner_save_function = 'document.querySelector(".nameAndIcons")' 371 inner_save_function = 'document.querySelector(".nameAndIcons")'
371 action_runner.WaitForElement(element_function=inner_save_function) 372 action_runner.WaitForElement(element_function=inner_save_function)
372 action_runner.ClickElement(element_function=inner_save_function) 373 action_runner.ClickElement(element_function=inner_save_function)
373 action_runner.Wait(1) # Wait to make navigation realistic. 374 action_runner.Wait(1) # Wait to make navigation realistic.
374 375
375 # Close selection. 376 # Close selection.
376 x_element_function = ('document.querySelector(' 377 x_element_function = ('document.querySelector('
377 '".Button.borderless.close.visible")') 378 '".Button.borderless.close.visible")')
378 action_runner.ClickElement(element_function=x_element_function) 379 action_runner.ClickElement(element_function=x_element_function)
379 action_runner.Wait(1) # Wait to make navigation realistic. 380 action_runner.Wait(1) # Wait to make navigation realistic.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698