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 from telemetry
.page
import page_set
as page_set_module
5 from measurements
import polymer_load
8 class TopekaPage(polymer_load
.PageForPolymerLoad
):
10 def __init__(self
, page_set
):
11 super(TopekaPage
, self
).__init
__(
12 url
='http://www.polymer-project.org/apps/topeka/?test',
13 ready_event
='template-bound',
15 self
.archive_data_file
= 'data/topeka.json'
18 class TopekaPageSet(page_set_module
.PageSet
):
20 """ Topeka quiz app for the Polymer UI toolkit """
23 super(TopekaPageSet
, self
).__init
__(
24 user_agent_type
='mobile',
25 archive_data_file
='data/topeka.json')
27 self
.AddPage(TopekaPage(self
))