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
import story
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',
18 shared_page_state_class
=(
19 webgl_supported_shared_state
.WebGLSupportedSharedState
))
20 self
.archive_data_file
= 'data/maps.json'
23 def skipped_gpus(self
):
24 # Skip this intensive test on low-end devices. crbug.com/464731
27 def RunNavigateSteps(self
, action_runner
):
28 super(MapsPage
, self
).RunNavigateSteps(action_runner
)
31 def RunPageInteractions(self
, action_runner
):
32 with action_runner
.CreateInteraction('MapAnimation'):
33 action_runner
.WaitForJavaScriptCondition('window.testDone', 120)
36 class MapsPageSet(story
.StorySet
):
38 """ Google Maps examples """
41 super(MapsPageSet
, self
).__init
__(
42 archive_data_file
='data/maps.json',
43 cloud_storage_bucket
=story
.PUBLIC_BUCKET
)
45 self
.AddStory(MapsPage(self
))