Change next_proto member type.
[chromium-blink-merge.git] / tools / perf / page_sets / maps.py
blobff25070fff1da6e483c014e8429e973f32287a30
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 import logging
7 from telemetry.page import page as page_module
8 from telemetry.page import page_set as page_set_module
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 self.archive_data_file = 'data/maps.json'
20 def CanRunOnBrowser(self, browser_info):
21 if not browser_info.HasWebGLSupport():
22 logging.warning('Browser does not support webgl, skipping test')
23 return False
24 return True
26 def RunNavigateSteps(self, action_runner):
27 action_runner.NavigateToPage(self)
28 action_runner.Wait(3)
30 def RunSmoothness(self, action_runner):
31 action_runner.WaitForJavaScriptCondition('window.testDone', 120)
34 class MapsPageSet(page_set_module.PageSet):
36 """ Google Maps examples """
38 def __init__(self):
39 super(MapsPageSet, self).__init__(
40 archive_data_file='data/maps.json',
41 bucket=page_set_module.PUBLIC_BUCKET)
43 self.AddPage(MapsPage(self))