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

Unified Diff: tools/perf/page_sets/perf_week.py

Issue 402433004: Test adding perf week tests as smoothness benchmark (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: g cl issue Created 6 years, 5 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
Index: tools/perf/page_sets/perf_week.py
diff --git a/tools/perf/page_sets/perf_week.py b/tools/perf/page_sets/perf_week.py
new file mode 100644
index 0000000000000000000000000000000000000000..3b2f066ad38453a39c68bdb817a166e2f16c8744
--- /dev/null
+++ b/tools/perf/page_sets/perf_week.py
@@ -0,0 +1,30 @@
+# Copyright 2014 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.
+
+import os
+
+from telemetry.page.page import Page
+from telemetry.page.page_set import PageSet
+
+
+class PerfWeekPage(Page):
+ def __init__(self, url, page_set, wait_until_ready=False):
+ super(PerfWeekPage, self).__init__(url=url, page_set=page_set)
+ self._wait_until_ready = wait_until_ready
+
+ def RunNavigateSteps(self, action_runner):
+ action_runner.NavigateToPage(self)
+ action_runner.WaitForJavaScriptCondition('window.measurementReady')
+
+ def RunSmoothness(self, action_runner):
+ action_runner.Wait(10)
+
+class PerfWeekPageSet(PageSet):
+ """Description: A collection of animation performance tests"""
+ def __init__(self):
+ super(PerfWeekPageSet, self).__init__()
+ for filename in os.listdir(
+ os.path.join(os.path.dirname(__file__), 'perf_week')):
+ if filename.endswith('.html'):
+ self.AddPage(PerfWeekPage('file://perf_week/' + filename, self))
« no previous file with comments | « tools/perf/benchmarks/smoothness.py ('k') | tools/perf/page_sets/perf_week/css-animations-many-keyframes.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698