Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 # Copyright 2016 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 | |
|
petrcermak
2016/08/15 10:49:30
ditto
kouhei (in TOK)
2016/08/22 06:09:21
Done.
| |
| 5 from telemetry.page import cache_temperature as cache_temperature_module | |
| 6 from telemetry.page import shared_page_state | |
| 7 | |
| 8 _TTI_WAIT_TIME = 5 | |
|
nednguyen
2016/08/15 14:00:46
Should this by 10s since TTI requires a 5s window?
kouhei (in TOK)
2016/08/22 06:09:21
Done.
| |
| 9 | |
| 10 class PageCyclerStory(page.Page): | |
| 11 | |
| 12 def __init__(self, url, page_set, | |
| 13 shared_page_state_class=shared_page_state.SharedDesktopPageState, | |
| 14 cache_temperature=cache_temperature_module.ANY): | |
|
petrcermak
2016/08/15 10:49:30
maybe pass *args and **kwargs to the super constru
| |
| 15 super(PageCyclerStory, self).__init__( | |
| 16 url=url, page_set=page_set, | |
| 17 shared_page_state_class=shared_page_state_class, | |
| 18 cache_temperature=cache_temperature) | |
| 19 | |
| 20 def RunPageInteractions(self, action_runner): | |
| 21 action_runner.tab.WaitForDocumentReadyStateToBeComplete() | |
| 22 action_runner.Wait(_TTI_WAIT_TIME) | |
| OLD | NEW |