OLD | NEW |
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 # pylint: disable=W0401,W0614 | |
5 from telemetry.page.actions.all_page_actions import * | |
6 from telemetry.page import page_set as page_set_module | 4 from telemetry.page import page_set as page_set_module |
7 from measurements import polymer_load | 5 from measurements import polymer_load |
8 | 6 |
9 | 7 |
10 class PicaPage(polymer_load.PageForPolymerLoad): | 8 class PicaPage(polymer_load.PageForPolymerLoad): |
11 | 9 |
12 def __init__(self, page_set): | 10 def __init__(self, page_set): |
13 super(PicaPage, self).__init__( | 11 super(PicaPage, self).__init__( |
14 url='http://localhost/polymer/projects/pica/', | 12 url='http://localhost/polymer/projects/pica/', |
15 page_set=page_set) | 13 page_set=page_set) |
16 self.archive_data_file = 'data/pica.json' | 14 self.archive_data_file = 'data/pica.json' |
17 | 15 |
18 | 16 |
19 class PicaPageSet(page_set_module.PageSet): | 17 class PicaPageSet(page_set_module.PageSet): |
20 | 18 |
21 """ Pica demo app for the Polymer UI toolkit """ | 19 """ Pica demo app for the Polymer UI toolkit """ |
22 | 20 |
23 def __init__(self): | 21 def __init__(self): |
24 super(PicaPageSet, self).__init__( | 22 super(PicaPageSet, self).__init__( |
25 archive_data_file='data/pica.json') | 23 archive_data_file='data/pica.json') |
26 | 24 |
27 self.AddPage(PicaPage(self)) | 25 self.AddPage(PicaPage(self)) |
OLD | NEW |