Chromium Code Reviews| Index: tools/perf/page_sets/battor_cases.py |
| diff --git a/tools/perf/page_sets/battor_cases.py b/tools/perf/page_sets/battor_cases.py |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..3ba52aabaf14080591a789986fe1e3fa8e0d4a14 |
| --- /dev/null |
| +++ b/tools/perf/page_sets/battor_cases.py |
| @@ -0,0 +1,36 @@ |
| +# Copyright 2014 The Chromium Authors. All rights reserved. |
| +# Use of this source code is governed by a BSD-style license that can be |
| +# found in the LICENSE file. |
| +from telemetry.page import page as page_module |
| +from telemetry.page import shared_page_state |
| +from telemetry import story |
| + |
| + |
| +URL_LIST = [ |
| + '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.
|
| +] |
| + |
| + |
| +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*
|
| + |
| + def __init__(self, url, page_set, name=''): |
| + super(BattOrCasesPage, self).__init__( |
| + url=url, page_set=page_set, name=name, |
| + credentials_path = 'data/credentials.json', |
| + shared_page_state_class=shared_page_state.SharedMobilePageState) |
| + self.archive_data_file = 'data/battor_cases.json' |
| + |
| + def RunPageInteractions(self, action_runner): |
| + action_runner.Wait(30) |
| + |
| + |
| +class BattOrCasesPageSet(story.StorySet): |
| + """Power hungry pages, used for BattOr testing.""" |
| + |
| + def __init__(self): |
| + super(BattOrCasesPageSet, self).__init__( |
| + archive_data_file='data/battor_cases.json', |
| + cloud_storage_bucket=story.PARTNER_BUCKET) |
| + |
| + for url in URL_LIST: |
| + self.AddStory(BattOrCasesPage(url, self)) |