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"""
16 super(ServiceWorkerPageSet
, self
).__init
__(
17 archive_data_file
=archive_data_file_path
,
18 make_javascript_deterministic
=False,
19 bucket
=page_set
.PARTNER_BUCKET
)
21 # Why: the first application using ServiceWorker
22 # 1st time: registration
23 self
.AddPage(page
.Page(
24 'https://jakearchibald.github.io/trained-to-thrill/', self
))
25 # 2st time: 1st onfetch with caching
26 self
.AddPage(page
.Page(
27 'https://jakearchibald.github.io/trained-to-thrill/', self
))
28 # 3rd time: 2nd onfetch from cache
29 self
.AddPage(page
.Page(
30 'https://jakearchibald.github.io/trained-to-thrill/', self
))