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.
4from telemetry.page import page_set as page_set_module
5from measurements import polymer_load
6
7
8class TopekaPage(polymer_load.PageForPolymerLoad):
9
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',
14      page_set=page_set)
15    self.archive_data_file = 'data/topeka.json'
16
17
18class TopekaPageSet(page_set_module.PageSet):
19
20  """ Topeka quiz app for the Polymer UI toolkit """
21
22  def __init__(self):
23    super(TopekaPageSet, self).__init__(
24      user_agent_type='mobile',
25      archive_data_file='data/topeka.json')
26
27    self.AddPage(TopekaPage(self))
28