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

Side by Side Diff: tools/perf/page_sets/top_7_stress.py

Issue 1458083003: [Telemetry + tools/perf] Modify the pylint disable message to use symbolic name (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « tools/perf/page_sets/top_25_smooth.py ('k') | tools/perf/page_sets/top_desktop_sites_2012Q3.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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 from telemetry.page import page as page_module 4 from telemetry.page import page as page_module
5 from telemetry.page import shared_page_state 5 from telemetry.page import shared_page_state
6 from telemetry import story 6 from telemetry import story
7 7
8 8
9 def _GetCurrentLocation(action_runner): 9 def _GetCurrentLocation(action_runner):
10 return action_runner.EvaluateJavaScript('document.location.href') 10 return action_runner.EvaluateJavaScript('document.location.href')
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 action_runner.ClickElement(text='Home') 234 action_runner.ClickElement(text='Home')
235 action_runner.WaitForNavigate() 235 action_runner.WaitForNavigate()
236 236
237 237
238 class WordpressPage(Top7StressPage): 238 class WordpressPage(Top7StressPage):
239 239
240 """ Why: #18 (Alexa global), Picked an interesting post """ 240 """ Why: #18 (Alexa global), Picked an interesting post """
241 241
242 def __init__(self, page_set): 242 def __init__(self, page_set):
243 super(WordpressPage, self).__init__( 243 super(WordpressPage, self).__init__(
244 # pylint: disable=C0301 244 # pylint: disable=line-too-long
245 url='http://en.blog.wordpress.com/2012/09/04/freshly-pressed-editors-picks -for-august-2012/', 245 url='http://en.blog.wordpress.com/2012/09/04/freshly-pressed-editors-picks -for-august-2012/',
246 page_set=page_set, 246 page_set=page_set,
247 name='Wordpress') 247 name='Wordpress')
248 248
249 def RunNavigateSteps(self, action_runner): 249 def RunNavigateSteps(self, action_runner):
250 super(WordpressPage, self).RunNavigateSteps(action_runner) 250 super(WordpressPage, self).RunNavigateSteps(action_runner)
251 action_runner.WaitForElement( 251 action_runner.WaitForElement(
252 # pylint: disable=C0301 252 # pylint: disable=line-too-long
253 'a[href="http://en.blog.wordpress.com/2012/08/30/new-themes-able-and-sig ht/"]') 253 'a[href="http://en.blog.wordpress.com/2012/08/30/new-themes-able-and-sig ht/"]')
254 254
255 def RunPageInteractions(self, action_runner): 255 def RunPageInteractions(self, action_runner):
256 with action_runner.CreateGestureInteraction('ScrollAction'): 256 with action_runner.CreateGestureInteraction('ScrollAction'):
257 action_runner.ScrollPage() 257 action_runner.ScrollPage()
258 # Insert 300ms wait to simulate user finger movement, 258 # Insert 300ms wait to simulate user finger movement,
259 # and ensure scheduling of idle tasks. 259 # and ensure scheduling of idle tasks.
260 action_runner.Wait(0.3) 260 action_runner.Wait(0.3)
261 action_runner.ClickElement( 261 action_runner.ClickElement(
262 # pylint: disable=C0301 262 # pylint: disable=line-too-long
263 'a[href="http://en.blog.wordpress.com/2012/08/30/new-themes-able-and-sig ht/"]') 263 'a[href="http://en.blog.wordpress.com/2012/08/30/new-themes-able-and-sig ht/"]')
264 action_runner.WaitForNavigate() 264 action_runner.WaitForNavigate()
265 with action_runner.CreateGestureInteraction('ScrollAction'): 265 with action_runner.CreateGestureInteraction('ScrollAction'):
266 action_runner.ScrollPage() 266 action_runner.ScrollPage()
267 action_runner.Wait(0.3) 267 action_runner.Wait(0.3)
268 action_runner.ClickElement(text='Features') 268 action_runner.ClickElement(text='Features')
269 action_runner.WaitForNavigate() 269 action_runner.WaitForNavigate()
270 with action_runner.CreateGestureInteraction('ScrollAction'): 270 with action_runner.CreateGestureInteraction('ScrollAction'):
271 action_runner.ScrollPage() 271 action_runner.ScrollPage()
272 action_runner.Wait(0.3) 272 action_runner.Wait(0.3)
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 archive_data_file='data/top_7_stress.json', 315 archive_data_file='data/top_7_stress.json',
316 cloud_storage_bucket=story.PARTNER_BUCKET) 316 cloud_storage_bucket=story.PARTNER_BUCKET)
317 317
318 self.AddStory(GoogleWebSearchPage(self)) 318 self.AddStory(GoogleWebSearchPage(self))
319 self.AddStory(GmailPage(self)) 319 self.AddStory(GmailPage(self))
320 self.AddStory(GoogleCalendarPage(self)) 320 self.AddStory(GoogleCalendarPage(self))
321 self.AddStory(GooglePlusPage(self)) 321 self.AddStory(GooglePlusPage(self))
322 self.AddStory(BlogspotPage(self)) 322 self.AddStory(BlogspotPage(self))
323 self.AddStory(WordpressPage(self)) 323 self.AddStory(WordpressPage(self))
324 self.AddStory(FacebookPage(self)) 324 self.AddStory(FacebookPage(self))
OLDNEW
« no previous file with comments | « tools/perf/page_sets/top_25_smooth.py ('k') | tools/perf/page_sets/top_desktop_sites_2012Q3.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698