Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(239)

Side by Side Diff: tools/perf/page_sets/maps.py

Issue 826113003: [Telemetry] Rename RunSmoothness to RunPageInteractions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tools/perf/page_sets/key_silk_cases.py ('k') | tools/perf/page_sets/polymer.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 4
5 import logging 5 import logging
6 6
7 from telemetry.page import page as page_module 7 from telemetry.page import page as page_module
8 from telemetry.page import page_set as page_set_module 8 from telemetry.page import page_set as page_set_module
9 9
10 10
11 class MapsPage(page_module.Page): 11 class MapsPage(page_module.Page):
12 12
13 def __init__(self, page_set): 13 def __init__(self, page_set):
14 super(MapsPage, self).__init__( 14 super(MapsPage, self).__init__(
15 url='http://localhost:10020/tracker.html', 15 url='http://localhost:10020/tracker.html',
16 page_set=page_set, 16 page_set=page_set,
17 name='Maps.maps_002') 17 name='Maps.maps_002')
18 self.archive_data_file = 'data/maps.json' 18 self.archive_data_file = 'data/maps.json'
19 19
20 def CanRunOnBrowser(self, browser_info): 20 def CanRunOnBrowser(self, browser_info):
21 if not browser_info.HasWebGLSupport(): 21 if not browser_info.HasWebGLSupport():
22 logging.warning('Browser does not support webgl, skipping test') 22 logging.warning('Browser does not support webgl, skipping test')
23 return False 23 return False
24 return True 24 return True
25 25
26 def RunNavigateSteps(self, action_runner): 26 def RunNavigateSteps(self, action_runner):
27 action_runner.NavigateToPage(self) 27 action_runner.NavigateToPage(self)
28 action_runner.Wait(3) 28 action_runner.Wait(3)
29 29
30 def RunSmoothness(self, action_runner): 30 def RunPageInteractions(self, action_runner):
31 action_runner.WaitForJavaScriptCondition('window.testDone', 120) 31 action_runner.WaitForJavaScriptCondition('window.testDone', 120)
32 32
33 33
34 class MapsPageSet(page_set_module.PageSet): 34 class MapsPageSet(page_set_module.PageSet):
35 35
36 """ Google Maps examples """ 36 """ Google Maps examples """
37 37
38 def __init__(self): 38 def __init__(self):
39 super(MapsPageSet, self).__init__( 39 super(MapsPageSet, self).__init__(
40 archive_data_file='data/maps.json', 40 archive_data_file='data/maps.json',
41 bucket=page_set_module.PUBLIC_BUCKET) 41 bucket=page_set_module.PUBLIC_BUCKET)
42 42
43 self.AddUserStory(MapsPage(self)) 43 self.AddUserStory(MapsPage(self))
OLDNEW
« no previous file with comments | « tools/perf/page_sets/key_silk_cases.py ('k') | tools/perf/page_sets/polymer.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698