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: blank lines / 10sec / kwargs 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
« no previous file with comments | « tools/perf/page_sets/intl_ko_th_vi.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
5 from telemetry.page import page
6 from telemetry.page import cache_temperature as cache_temperature_module
7 from telemetry.page import shared_page_state
8
9 _TTI_WAIT_TIME = 10
10
11 class PageCyclerStory(page.Page):
12
13 def __init__(self, url, page_set,
14 shared_page_state_class=shared_page_state.SharedDesktopPageState,
15 cache_temperature=cache_temperature_module.ANY, **kwargs):
16 super(PageCyclerStory, self).__init__(
17 url=url, page_set=page_set,
18 shared_page_state_class=shared_page_state_class,
19 cache_temperature=cache_temperature,
20 **kwargs)
21
22 def RunPageInteractions(self, action_runner):
23 action_runner.tab.WaitForDocumentReadyStateToBeComplete()
24 action_runner.Wait(_TTI_WAIT_TIME)
OLDNEW
« no previous file with comments | « 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