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

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

Issue 1104573002: [Telemetry] Remove support for automatic record creation in smoothness controller. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Ready to land Created 5 years, 8 months 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 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 page_set as page_set_module 5 from telemetry.page import page_set as page_set_module
6 6
7 7
8 class KeySilkCasesPage(page_module.Page): 8 class KeySilkCasesPage(page_module.Page):
9 9
10 def __init__(self, url, page_set, run_no_page_interactions): 10 def __init__(self, url, page_set, run_no_page_interactions):
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 312
313 def __init__(self, page_set, run_no_page_interactions): 313 def __init__(self, page_set, run_no_page_interactions):
314 super(Page17, self).__init__( 314 super(Page17, self).__init__(
315 url='file://key_silk_cases/inbox_app.html?stress_hidey_bars', 315 url='file://key_silk_cases/inbox_app.html?stress_hidey_bars',
316 page_set=page_set, run_no_page_interactions=run_no_page_interactions) 316 page_set=page_set, run_no_page_interactions=run_no_page_interactions)
317 317
318 def PerformPageInteractions(self, action_runner): 318 def PerformPageInteractions(self, action_runner):
319 self.StressHideyBars(action_runner) 319 self.StressHideyBars(action_runner)
320 320
321 def StressHideyBars(self, action_runner): 321 def StressHideyBars(self, action_runner):
322 with action_runner.CreateGestureInteraction('ScrollAction'): 322 with action_runner.CreateGestureInteraction(
323 'ScrollAction', repeatable=True):
323 action_runner.ScrollElement( 324 action_runner.ScrollElement(
324 selector='#messages', direction='down', speed_in_pixels_per_second=200) 325 selector='#messages', direction='down', speed_in_pixels_per_second=200)
325 with action_runner.CreateGestureInteraction('ScrollAction'): 326 with action_runner.CreateGestureInteraction(
327 'ScrollAction', repeatable=True):
326 action_runner.ScrollElement( 328 action_runner.ScrollElement(
327 selector='#messages', direction='up', speed_in_pixels_per_second=200) 329 selector='#messages', direction='up', speed_in_pixels_per_second=200)
328 with action_runner.CreateGestureInteraction('ScrollAction'): 330 with action_runner.CreateGestureInteraction(
331 'ScrollAction', repeatable=True):
329 action_runner.ScrollElement( 332 action_runner.ScrollElement(
330 selector='#messages', direction='down', 333 selector='#messages', direction='down',
331 speed_in_pixels_per_second=200) 334 speed_in_pixels_per_second=200)
332 335
333 336
334 class Page18(KeySilkCasesPage): 337 class Page18(KeySilkCasesPage):
335 338
336 def __init__(self, page_set, run_no_page_interactions): 339 def __init__(self, page_set, run_no_page_interactions):
337 super(Page18, self).__init__( 340 super(Page18, self).__init__(
338 url='file://key_silk_cases/inbox_app.html?toggle_drawer', 341 url='file://key_silk_cases/inbox_app.html?toggle_drawer',
339 page_set=page_set, run_no_page_interactions=run_no_page_interactions) 342 page_set=page_set, run_no_page_interactions=run_no_page_interactions)
340 343
341 def PerformPageInteractions(self, action_runner): 344 def PerformPageInteractions(self, action_runner):
342 for _ in xrange(6): 345 for _ in xrange(6):
343 self.ToggleDrawer(action_runner) 346 self.ToggleDrawer(action_runner)
344 347
345 def ToggleDrawer(self, action_runner): 348 def ToggleDrawer(self, action_runner):
346 with action_runner.CreateInteraction('Action_TapAction'): 349 with action_runner.CreateInteraction('Action_TapAction', repeatable=True):
347 action_runner.TapElement('#menu-button') 350 action_runner.TapElement('#menu-button')
348 action_runner.Wait(1) 351 action_runner.Wait(1)
349 352
350 353
351 class Page19(KeySilkCasesPage): 354 class Page19(KeySilkCasesPage):
352 355
353 def __init__(self, page_set, run_no_page_interactions): 356 def __init__(self, page_set, run_no_page_interactions):
354 super(Page19, self).__init__( 357 super(Page19, self).__init__(
355 url='file://key_silk_cases/inbox_app.html?slide_drawer', 358 url='file://key_silk_cases/inbox_app.html?slide_drawer',
356 page_set=page_set, run_no_page_interactions=run_no_page_interactions) 359 page_set=page_set, run_no_page_interactions=run_no_page_interactions)
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
742 self.AddUserStory(UpdateHistoryState(self, run_no_page_interactions)) 745 self.AddUserStory(UpdateHistoryState(self, run_no_page_interactions))
743 self.AddUserStory(SilkFinance(self, run_no_page_interactions)) 746 self.AddUserStory(SilkFinance(self, run_no_page_interactions))
744 self.AddUserStory(PolymerTopeka(self, run_no_page_interactions)) 747 self.AddUserStory(PolymerTopeka(self, run_no_page_interactions))
745 self.AddUserStory(Masonry(self, run_no_page_interactions)) 748 self.AddUserStory(Masonry(self, run_no_page_interactions))
746 749
747 for page in self: 750 for page in self:
748 assert (page.__class__.RunPageInteractions == 751 assert (page.__class__.RunPageInteractions ==
749 KeySilkCasesPage.RunPageInteractions), ( 752 KeySilkCasesPage.RunPageInteractions), (
750 'Pages in this page set must not override KeySilkCasesPage\' ' 753 'Pages in this page set must not override KeySilkCasesPage\' '
751 'RunPageInteractions method.') 754 'RunPageInteractions method.')
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698