Unify Help/Feedback/Credits menus.
[chromium-blink-merge.git] / tools / perf / page_sets / service_worker.py
blob8e3466bcd379f0e6579ee5146f3581368ca6b7e7
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.
5 from telemetry.page import page as page
6 from telemetry.page import page_set as page_set
9 archive_data_file_path = 'data/service_worker.json'
12 class ServiceWorkerPageSet(page_set.PageSet):
13 """Page set of applications using ServiceWorker"""
15 def __init__(self):
16 super(ServiceWorkerPageSet, self).__init__(
17 archive_data_file=archive_data_file_path,
18 bucket=page_set.PARTNER_BUCKET)
20 # Why: the first application using ServiceWorker
21 # 1st time: registration
22 self.AddUserStory(page.Page(
23 'https://jakearchibald.github.io/trained-to-thrill/', self,
24 name='first_load', make_javascript_deterministic=False))
25 # 2st time: 1st onfetch with caching
26 self.AddUserStory(page.Page(
27 'https://jakearchibald.github.io/trained-to-thrill/', self,
28 name='second_load', make_javascript_deterministic=False))
29 # 3rd time: 2nd onfetch from cache
30 self.AddUserStory(page.Page(
31 'https://jakearchibald.github.io/trained-to-thrill/', self,
32 name='third_load', make_javascript_deterministic=False))
34 # Why: another caching strategy: cache.addAll in oninstall handler
35 # 1st time: registration and caching
36 self.AddUserStory(page.Page(
37 'https://jakearchibald.github.io/svgomg/', self,
38 name='svgomg_first_load', make_javascript_deterministic=False))
39 # 2st time: onfetch from cache
40 self.AddUserStory(page.Page(
41 'https://jakearchibald.github.io/svgomg/', self,
42 name='svgomg_second_load', make_javascript_deterministic=False))