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

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

Issue 311193003: [telemetry] Cleanups for benchmarks importing page sets. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove description fo' realz. (from gpu tests) Created 6 years, 6 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/page_set_unittest.py ('k') | tools/perf/page_sets/top_10.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 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 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 from telemetry.page import page 5 from telemetry.page import page
6 from telemetry.page import page_set 6 from telemetry.page import page_set
7 from telemetry.page.actions import all_page_actions as actions 7 from telemetry.page.actions import all_page_actions as actions
8 8
9 9
10 archive_data_file_path = 'data/service_worker.json' 10 archive_data_file_path = 'data/service_worker.json'
11 11
12 12
13 class ServiceWorkerPage(page.Page): 13 class ServiceWorkerPage(page.Page):
14 def RunNavigateSteps(self, action_runner): 14 def RunNavigateSteps(self, action_runner):
15 action_runner.RunAction(actions.NavigateAction()) 15 action_runner.RunAction(actions.NavigateAction())
16 action_runner.RunAction(actions.WaitAction({'javascript': 'window.done'})) 16 action_runner.RunAction(actions.WaitAction({'javascript': 'window.done'}))
17 17
18 18
19 class ServiceWorkerPageSet(page_set.PageSet): 19 class ServiceWorkerPageSet(page_set.PageSet):
20 """ServiceWorker performance tests"""
21
20 def __init__(self): 22 def __init__(self):
21 super(ServiceWorkerPageSet, self).__init__( 23 super(ServiceWorkerPageSet, self).__init__(
22 description='ServiceWorker performance tests',
23 archive_data_file=archive_data_file_path, 24 archive_data_file=archive_data_file_path,
24 make_javascript_deterministic=False) 25 make_javascript_deterministic=False)
25 26
26 self.AddPage(ServiceWorkerPage('http://localhost:8091/index.html', self)) 27 self.AddPage(ServiceWorkerPage('http://localhost:8091/index.html', self))
OLDNEW
« no previous file with comments | « tools/perf/page_sets/page_set_unittest.py ('k') | tools/perf/page_sets/top_10.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698