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

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

Issue 799183002: Rename AddPage -> AddUserStory in tools/perf/page_sets/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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/polymer.py ('k') | tools/perf/page_sets/service_worker_micro_benchmark.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 as page 5 from telemetry.page import page as page
6 from telemetry.page import page_set as page_set 6 from telemetry.page import page_set as page_set
7 7
8 8
9 archive_data_file_path = 'data/service_worker.json' 9 archive_data_file_path = 'data/service_worker.json'
10 10
11 11
12 class ServiceWorkerPageSet(page_set.PageSet): 12 class ServiceWorkerPageSet(page_set.PageSet):
13 """Page set of applications using ServiceWorker""" 13 """Page set of applications using ServiceWorker"""
14 14
15 def __init__(self): 15 def __init__(self):
16 super(ServiceWorkerPageSet, self).__init__( 16 super(ServiceWorkerPageSet, self).__init__(
17 archive_data_file=archive_data_file_path, 17 archive_data_file=archive_data_file_path,
18 make_javascript_deterministic=False, 18 make_javascript_deterministic=False,
19 bucket=page_set.PARTNER_BUCKET) 19 bucket=page_set.PARTNER_BUCKET)
20 20
21 # Why: the first application using ServiceWorker 21 # Why: the first application using ServiceWorker
22 # 1st time: registration 22 # 1st time: registration
23 self.AddPage(page.Page( 23 self.AddUserStory(page.Page(
24 'https://jakearchibald.github.io/trained-to-thrill/', self)) 24 'https://jakearchibald.github.io/trained-to-thrill/', self))
25 # 2st time: 1st onfetch with caching 25 # 2st time: 1st onfetch with caching
26 self.AddPage(page.Page( 26 self.AddUserStory(page.Page(
27 'https://jakearchibald.github.io/trained-to-thrill/', self)) 27 'https://jakearchibald.github.io/trained-to-thrill/', self))
28 # 3rd time: 2nd onfetch from cache 28 # 3rd time: 2nd onfetch from cache
29 self.AddPage(page.Page( 29 self.AddUserStory(page.Page(
30 'https://jakearchibald.github.io/trained-to-thrill/', self)) 30 'https://jakearchibald.github.io/trained-to-thrill/', self))
OLDNEW
« no previous file with comments | « tools/perf/page_sets/polymer.py ('k') | tools/perf/page_sets/service_worker_micro_benchmark.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698