Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 # found in the LICENSE file. | |
| 4 from telemetry.page import page as page_module | |
| 5 from telemetry.page import shared_page_state | |
| 6 from telemetry import story | |
| 7 | |
| 8 | |
| 9 URL_LIST = [ | |
| 10 'https://webkit.org/blog-files/3d-transforms/poster-circle.html' | |
|
nednguyen
2016/05/16 16:22:19
also youtube & about:blank?
rnephew (Reviews Here)
2016/05/16 18:55:05
Done.
| |
| 11 ] | |
| 12 | |
| 13 | |
| 14 class BattOrCasesPage(page_module.Page): | |
|
nednguyen
2016/05/16 16:22:18
s/BattOrCasesPage/PowerCasesPage
rnephew (Reviews Here)
2016/05/16 18:55:05
Done.
Also changed the other instances to Power*
| |
| 15 | |
| 16 def __init__(self, url, page_set, name=''): | |
| 17 super(BattOrCasesPage, self).__init__( | |
| 18 url=url, page_set=page_set, name=name, | |
| 19 credentials_path = 'data/credentials.json', | |
| 20 shared_page_state_class=shared_page_state.SharedMobilePageState) | |
| 21 self.archive_data_file = 'data/battor_cases.json' | |
| 22 | |
| 23 def RunPageInteractions(self, action_runner): | |
| 24 action_runner.Wait(30) | |
| 25 | |
| 26 | |
| 27 class BattOrCasesPageSet(story.StorySet): | |
| 28 """Power hungry pages, used for BattOr testing.""" | |
| 29 | |
| 30 def __init__(self): | |
| 31 super(BattOrCasesPageSet, self).__init__( | |
| 32 archive_data_file='data/battor_cases.json', | |
| 33 cloud_storage_bucket=story.PARTNER_BUCKET) | |
| 34 | |
| 35 for url in URL_LIST: | |
| 36 self.AddStory(BattOrCasesPage(url, self)) | |
| OLD | NEW |