Fix maps page_set.
[chromium-blink-merge.git] / tools / perf / page_sets / maps.py
blob5bf64cdb95fca730193d3e6b08e08daf652707e4
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_module
6 from telemetry.page import page_set as page_set_module
8 from page_sets import webgl_supported_shared_state
11 class MapsPage(page_module.Page):
13 def __init__(self, page_set):
14 super(MapsPage, self).__init__(
15 url='http://localhost:10020/tracker.html',
16 page_set=page_set,
17 name='Maps.maps_002',
18 shared_page_state_class=(
19 webgl_supported_shared_state.WebGLSupportedSharedState))
20 self.archive_data_file = 'data/maps.json'
22 def RunNavigateSteps(self, action_runner):
23 super(MapsPage, self).RunNavigateSteps(action_runner)
24 action_runner.Wait(3)
26 def RunPageInteractions(self, action_runner):
27 with action_runner.CreateInteraction('MapAnimation'):
28 action_runner.WaitForJavaScriptCondition('window.testDone', 120)
31 class MapsPageSet(page_set_module.PageSet):
33 """ Google Maps examples """
35 def __init__(self):
36 super(MapsPageSet, self).__init__(
37 archive_data_file='data/maps.json',
38 bucket=page_set_module.PUBLIC_BUCKET)
40 self.AddUserStory(MapsPage(self))