| 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 from page_sets import webgl_supported_shared_state | |
| 5 | 4 |
| 6 from telemetry.page import page as page_module | 5 from telemetry.page import page as page_module |
| 7 from telemetry.page import page_set as page_set_module | 6 from telemetry.page import page_set as page_set_module |
| 8 | 7 |
| 8 from page_sets import webgl_supported_shared_state |
| 9 |
| 9 | 10 |
| 10 class MapsPage(page_module.Page): | 11 class MapsPage(page_module.Page): |
| 11 | 12 |
| 12 def __init__(self, page_set): | 13 def __init__(self, page_set): |
| 13 super(MapsPage, self).__init__( | 14 super(MapsPage, self).__init__( |
| 14 url='http://localhost:10020/tracker.html', | 15 url='http://localhost:10020/tracker.html', |
| 15 page_set=page_set, | 16 page_set=page_set, |
| 16 name='Maps.maps_002', | 17 name='Maps.maps_002', |
| 17 shared_page_state_class=( | 18 shared_page_state_class=( |
| 18 webgl_supported_shared_state.WebGLSupportedSharedState)) | 19 webgl_supported_shared_state.WebGLSupportedSharedState)) |
| (...skipping 10 matching lines...) Expand all Loading... |
| 29 class MapsPageSet(page_set_module.PageSet): | 30 class MapsPageSet(page_set_module.PageSet): |
| 30 | 31 |
| 31 """ Google Maps examples """ | 32 """ Google Maps examples """ |
| 32 | 33 |
| 33 def __init__(self): | 34 def __init__(self): |
| 34 super(MapsPageSet, self).__init__( | 35 super(MapsPageSet, self).__init__( |
| 35 archive_data_file='data/maps.json', | 36 archive_data_file='data/maps.json', |
| 36 bucket=page_set_module.PUBLIC_BUCKET) | 37 bucket=page_set_module.PUBLIC_BUCKET) |
| 37 | 38 |
| 38 self.AddUserStory(MapsPage(self)) | 39 self.AddUserStory(MapsPage(self)) |
| OLD | NEW |