| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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)) |
| OLD | NEW |