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

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: Bring the auto back. Created 4 years, 1 month 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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 127
128 128
129 class FlipboardDesktopStory(_NewsBrowsingStory): 129 class FlipboardDesktopStory(_NewsBrowsingStory):
130 NAME = 'browse:news:flipboard' 130 NAME = 'browse:news:flipboard'
131 URL = 'https://flipboard.com/explore' 131 URL = 'https://flipboard.com/explore'
132 IS_SINGLE_PAGE_APP = True 132 IS_SINGLE_PAGE_APP = True
133 ITEM_SELECTOR = '.cover-image' 133 ITEM_SELECTOR = '.cover-image'
134 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY 134 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY
135 135
136 136
137 @decorators.Disabled('win') # crbug.com/657665 137 @decorators.Disabled('win' ,'linux') # crbug.com/657665 #crbug.com/665007
mustaq 2016/11/16 14:54:16 # crbug.com/657665 for win, crbug.com/665007 for l
sunyunjia 2016/11/16 16:39:58 Done.
138 class HackerNewsStory(_NewsBrowsingStory): 138 class HackerNewsStory(_NewsBrowsingStory):
139 NAME = 'browse:news:hackernews' 139 NAME = 'browse:news:hackernews'
140 URL = 'https://news.ycombinator.com' 140 URL = 'https://news.ycombinator.com'
141 ITEM_SELECTOR = '.athing .title > a' 141 ITEM_SELECTOR = '.athing .title > a'
142 142
143 143
144 class NytimesMobileStory(_NewsBrowsingStory): 144 class NytimesMobileStory(_NewsBrowsingStory):
145 """The third top website in http://www.alexa.com/topsites/category/News""" 145 """The third top website in http://www.alexa.com/topsites/category/News"""
146 NAME = 'browse:news:nytimes' 146 NAME = 'browse:news:nytimes'
147 URL = 'http://mobile.nytimes.com' 147 URL = 'http://mobile.nytimes.com'
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 inner_save_function = 'document.querySelector(".nameAndIcons")' 362 inner_save_function = 'document.querySelector(".nameAndIcons")'
363 action_runner.WaitForElement(element_function=inner_save_function) 363 action_runner.WaitForElement(element_function=inner_save_function)
364 action_runner.ClickElement(element_function=inner_save_function) 364 action_runner.ClickElement(element_function=inner_save_function)
365 action_runner.Wait(1) # Wait to make navigation realistic. 365 action_runner.Wait(1) # Wait to make navigation realistic.
366 366
367 # Close selection. 367 # Close selection.
368 x_element_function = ('document.querySelector(' 368 x_element_function = ('document.querySelector('
369 '".Button.borderless.close.visible")') 369 '".Button.borderless.close.visible")')
370 action_runner.ClickElement(element_function=x_element_function) 370 action_runner.ClickElement(element_function=x_element_function)
371 action_runner.Wait(1) # Wait to make navigation realistic. 371 action_runner.Wait(1) # Wait to make navigation realistic.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698