Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | |
|
charliea (OOO until 10-5)
2016/05/16 19:30:21
I think it makes sense to create our own directory
charliea (OOO until 10-5)
2016/05/16 19:30:21
nit: s/2014/2016
rnephew (Reviews Here)
2016/05/16 20:05:57
Those subdirectories look like they mostly contain
rnephew (Reviews Here)
2016/05/16 20:05:57
Done.
charliea (OOO until 10-5)
2016/05/17 13:44:26
It looks like https://code.google.com/p/chromium/c
| |
| 2 # Use of this source code is governed by a BSD-style license that can be | |
| 3 # found in the LICENSE file. | |
|
charliea (OOO until 10-5)
2016/05/16 19:30:21
nit: blank line after license
rnephew (Reviews Here)
2016/05/16 20:05:57
Done.
| |
| 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', | |
| 11 # Does not autoplay on android devices. | |
|
charliea (OOO until 10-5)
2016/05/16 19:30:21
s/android/Android
rnephew (Reviews Here)
2016/05/16 20:05:57
Done.
charliea (OOO until 10-5)
2016/05/17 13:44:26
Is the lack of autoplay going to be a problem on A
| |
| 12 'https://www.youtube.com/watch?v=3KANI2dpXLw?autoplay=1', | |
| 13 'about:blank' | |
| 14 ] | |
| 15 | |
| 16 | |
| 17 class PowerCasesPage(page_module.Page): | |
| 18 | |
| 19 def __init__(self, url, page_set, name=''): | |
| 20 super(PowerCasesPage, self).__init__( | |
| 21 url=url, page_set=page_set, name=name, | |
| 22 credentials_path = 'data/credentials.json', | |
| 23 shared_page_state_class=shared_page_state.SharedMobilePageState) | |
| 24 self.archive_data_file = 'data/power_cases.json' | |
| 25 | |
| 26 def RunPageInteractions(self, action_runner): | |
| 27 action_runner.Wait(30) | |
| 28 | |
| 29 | |
| 30 class PowerCasesPageSet(story.StorySet): | |
| 31 """Power hungry pages, used for power testing.""" | |
| 32 | |
| 33 def __init__(self): | |
| 34 super(PowerCasesPageSet, self).__init__( | |
| 35 archive_data_file='data/power_cases.json', | |
| 36 cloud_storage_bucket=story.PARTNER_BUCKET) | |
| 37 | |
| 38 for url in URL_LIST: | |
| 39 self.AddStory(PowerCasesPage(url, self)) | |
| OLD | NEW |