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

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

Issue 604003002: Add text size animation to silk page set (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « tools/perf/page_sets/data/key_silk_cases_018.wpr.sha1 ('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 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): 10 def __init__(self, url, page_set):
(...skipping 615 matching lines...) Expand 10 before | Expand all | Expand 10 after
626 action_runner.WaitForJavaScriptCondition( 626 action_runner.WaitForJavaScriptCondition(
627 'window.__history_state_loaded == true;') 627 'window.__history_state_loaded == true;')
628 628
629 def RunSmoothness(self, action_runner): 629 def RunSmoothness(self, action_runner):
630 interaction = action_runner.BeginInteraction('animation_interaction', 630 interaction = action_runner.BeginInteraction('animation_interaction',
631 is_smooth=True) 631 is_smooth=True)
632 action_runner.Wait(5) # JS runs the animation continuously on the page 632 action_runner.Wait(5) # JS runs the animation continuously on the page
633 interaction.End() 633 interaction.End()
634 634
635 635
636 class TextSizeAnimation(KeySilkCasesPage):
637
638 """ Why: Scale animation with text. """
639
640 def __init__(self, page_set):
641 super(TextSizeAnimation, self).__init__(
642 url='http://jsbin.com/gikex/2/quiet',
643 page_set=page_set)
644
645 self.gpu_raster = True
646
647 def RunSmoothness(self, action_runner):
648 action_runner.Wait(4)
649
650
636 class KeySilkCasesPageSet(page_set_module.PageSet): 651 class KeySilkCasesPageSet(page_set_module.PageSet):
637 652
638 """ Pages hand-picked for project Silk. """ 653 """ Pages hand-picked for project Silk. """
639 654
640 def __init__(self): 655 def __init__(self):
641 super(KeySilkCasesPageSet, self).__init__( 656 super(KeySilkCasesPageSet, self).__init__(
642 credentials_path='data/credentials.json', 657 credentials_path='data/credentials.json',
643 user_agent_type='mobile', 658 user_agent_type='mobile',
644 archive_data_file='data/key_silk_cases.json', 659 archive_data_file='data/key_silk_cases.json',
645 bucket=page_set_module.PARTNER_BUCKET) 660 bucket=page_set_module.PARTNER_BUCKET)
(...skipping 21 matching lines...) Expand all
667 self.AddPage(Page20(self)) 682 self.AddPage(Page20(self))
668 self.AddPage(GwsGoogleExpansion(self)) 683 self.AddPage(GwsGoogleExpansion(self))
669 self.AddPage(GwsBoogieExpansion(self)) 684 self.AddPage(GwsBoogieExpansion(self))
670 self.AddPage(Page22(self)) 685 self.AddPage(Page22(self))
671 self.AddPage(Page23(self)) 686 self.AddPage(Page23(self))
672 self.AddPage(Page24(self)) 687 self.AddPage(Page24(self))
673 self.AddPage(Page25(self)) 688 self.AddPage(Page25(self))
674 self.AddPage(Page26(self)) 689 self.AddPage(Page26(self))
675 self.AddPage(SVGIconRaster(self)) 690 self.AddPage(SVGIconRaster(self))
676 self.AddPage(UpdateHistoryState(self)) 691 self.AddPage(UpdateHistoryState(self))
692 self.AddPage(TextSizeAnimation(self))
OLDNEW
« no previous file with comments | « tools/perf/page_sets/data/key_silk_cases_018.wpr.sha1 ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698