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

Side by Side 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, 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 # Copyright 2014 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 import os
6
7 from telemetry.page.page import Page
8 from telemetry.page.page_set import PageSet
9
10
11 class PerfWeekPage(Page):
12 def __init__(self, url, page_set, wait_until_ready=False):
13 super(PerfWeekPage, self).__init__(url=url, page_set=page_set)
14 self._wait_until_ready = wait_until_ready
15
16 def RunNavigateSteps(self, action_runner):
17 action_runner.NavigateToPage(self)
18 action_runner.WaitForJavaScriptCondition('window.measurementReady')
19
20 def RunSmoothness(self, action_runner):
21 action_runner.Wait(10)
22
23 class PerfWeekPageSet(PageSet):
24 """Description: A collection of animation performance tests"""
25 def __init__(self):
26 super(PerfWeekPageSet, self).__init__()
27 for filename in os.listdir(
28 os.path.join(os.path.dirname(__file__), 'perf_week')):
29 if filename.endswith('.html'):
30 self.AddPage(PerfWeekPage('file://perf_week/' + filename, self))
OLDNEW
« 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