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

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

Issue 625123002: Make credential_path a page attribute instead of page_set attribute. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert changes to path & path_unittest 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/key_search_mobile.py ('k') | tools/perf/page_sets/mobile_memory.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 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):
11 super(KeySilkCasesPage, self).__init__(url=url, page_set=page_set) 11 super(KeySilkCasesPage, self).__init__(
12 self.credentials_path = 'data/credentials.json' 12 url=url, page_set=page_set, credentials_path = 'data/credentials.json')
13 self.user_agent_type = 'mobile' 13 self.user_agent_type = 'mobile'
14 self.archive_data_file = 'data/key_silk_cases.json' 14 self.archive_data_file = 'data/key_silk_cases.json'
15 15
16 def RunNavigateSteps(self, action_runner): 16 def RunNavigateSteps(self, action_runner):
17 action_runner.NavigateToPage(self) 17 action_runner.NavigateToPage(self)
18 action_runner.Wait(2) 18 action_runner.Wait(2)
19 19
20 def RunSmoothness(self, action_runner): 20 def RunSmoothness(self, action_runner):
21 interaction = action_runner.BeginGestureInteraction( 21 interaction = action_runner.BeginGestureInteraction(
22 'ScrollAction', is_smooth=True) 22 'ScrollAction', is_smooth=True)
(...skipping 639 matching lines...) Expand 10 before | Expand all | Expand 10 after
662 action_runner.Wait(10) # animation runs automatically 662 action_runner.Wait(10) # animation runs automatically
663 interaction.End() 663 interaction.End()
664 664
665 665
666 class KeySilkCasesPageSet(page_set_module.PageSet): 666 class KeySilkCasesPageSet(page_set_module.PageSet):
667 667
668 """ Pages hand-picked for project Silk. """ 668 """ Pages hand-picked for project Silk. """
669 669
670 def __init__(self): 670 def __init__(self):
671 super(KeySilkCasesPageSet, self).__init__( 671 super(KeySilkCasesPageSet, self).__init__(
672 credentials_path='data/credentials.json',
673 user_agent_type='mobile', 672 user_agent_type='mobile',
674 archive_data_file='data/key_silk_cases.json', 673 archive_data_file='data/key_silk_cases.json',
675 bucket=page_set_module.PARTNER_BUCKET) 674 bucket=page_set_module.PARTNER_BUCKET)
676 675
677 self.AddPage(Page1(self)) 676 self.AddPage(Page1(self))
678 self.AddPage(Page2(self)) 677 self.AddPage(Page2(self))
679 self.AddPage(Page3(self)) 678 self.AddPage(Page3(self))
680 self.AddPage(Page4(self)) 679 self.AddPage(Page4(self))
681 self.AddPage(Page5(self)) 680 self.AddPage(Page5(self))
682 self.AddPage(Page6(self)) 681 self.AddPage(Page6(self))
(...skipping 17 matching lines...) Expand all
700 # Times out on Windows; crbug.com/338838 699 # Times out on Windows; crbug.com/338838
701 # self.AddPage(Page22(self)) 700 # self.AddPage(Page22(self))
702 self.AddPage(Page23(self)) 701 self.AddPage(Page23(self))
703 self.AddPage(Page24(self)) 702 self.AddPage(Page24(self))
704 self.AddPage(Page25(self)) 703 self.AddPage(Page25(self))
705 self.AddPage(Page26(self)) 704 self.AddPage(Page26(self))
706 self.AddPage(SVGIconRaster(self)) 705 self.AddPage(SVGIconRaster(self))
707 self.AddPage(UpdateHistoryState(self)) 706 self.AddPage(UpdateHistoryState(self))
708 self.AddPage(TextSizeAnimation(self)) 707 self.AddPage(TextSizeAnimation(self))
709 self.AddPage(SilkFinance(self)) 708 self.AddPage(SilkFinance(self))
OLDNEW
« no previous file with comments | « tools/perf/page_sets/key_search_mobile.py ('k') | tools/perf/page_sets/mobile_memory.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698