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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/page_sets/page_cycler_story.py
diff --git a/tools/perf/page_sets/page_cycler_story.py b/tools/perf/page_sets/page_cycler_story.py
new file mode 100644
index 0000000000000000000000000000000000000000..f3bf387f3445bc8addd24ec70a72dd26e2a81214
--- /dev/null
+++ b/tools/perf/page_sets/page_cycler_story.py
@@ -0,0 +1,24 @@
+# Copyright 2016 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
+from telemetry.page import cache_temperature as cache_temperature_module
+from telemetry.page import shared_page_state
+
+_TTI_WAIT_TIME = 10
+
+class PageCyclerStory(page.Page):
+
+ def __init__(self, url, page_set,
+ shared_page_state_class=shared_page_state.SharedDesktopPageState,
+ cache_temperature=cache_temperature_module.ANY, **kwargs):
+ super(PageCyclerStory, self).__init__(
+ url=url, page_set=page_set,
+ shared_page_state_class=shared_page_state_class,
+ cache_temperature=cache_temperature,
+ **kwargs)
+
+ def RunPageInteractions(self, action_runner):
+ action_runner.tab.WaitForDocumentReadyStateToBeComplete()
+ action_runner.Wait(_TTI_WAIT_TIME)
« 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