Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Side by Side Diff: tools/perf/page_sets/page_cycler_story.py

Issue 2244943002: Introduce PageCyclerStory and let the stories wait for onload+TTI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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)
OLDNEW
« tools/perf/page_sets/intl_ko_th_vi.py ('K') | « tools/perf/page_sets/intl_ko_th_vi.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698