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

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

Issue 2926633002: Explicitly setting story names for all smoothness benchmarks (Closed)
Patch Set: Explicitly setting story names for all smoothness benchmarks Created 3 years, 6 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
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 from telemetry.page import page as page_module 5 from telemetry.page import page as page_module
6 from telemetry import story 6 from telemetry import story
7 7
8 from page_sets import webgl_supported_shared_state 8 from page_sets import webgl_supported_shared_state
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 url = 'http://localhost:8000/performance.html'
14 super(MapsPage, self).__init__( 15 super(MapsPage, self).__init__(
15 url='http://localhost:8000/performance.html', 16 url=url,
16 page_set=page_set, 17 page_set=page_set,
17 shared_page_state_class=( 18 shared_page_state_class=(
18 webgl_supported_shared_state.WebGLSupportedSharedState)) 19 webgl_supported_shared_state.WebGLSupportedSharedState),
20 name=url)
19 self.archive_data_file = 'data/maps.json' 21 self.archive_data_file = 'data/maps.json'
20 22
21 @property 23 @property
22 def skipped_gpus(self): 24 def skipped_gpus(self):
23 # Skip this intensive test on low-end devices. crbug.com/464731 25 # Skip this intensive test on low-end devices. crbug.com/464731
24 return ['arm'] 26 return ['arm']
25 27
26 def RunNavigateSteps(self, action_runner): 28 def RunNavigateSteps(self, action_runner):
27 super(MapsPage, self).RunNavigateSteps(action_runner) 29 super(MapsPage, self).RunNavigateSteps(action_runner)
28 action_runner.Wait(3) 30 action_runner.Wait(3)
29 31
30 def RunPageInteractions(self, action_runner): 32 def RunPageInteractions(self, action_runner):
31 with action_runner.CreateInteraction('MapAnimation'): 33 with action_runner.CreateInteraction('MapAnimation'):
32 action_runner.WaitForJavaScriptCondition( 34 action_runner.WaitForJavaScriptCondition(
33 'window.testMetrics != undefined', timeout=120) 35 'window.testMetrics != undefined', timeout=120)
34 36
35 37
36 class MapsPageSet(story.StorySet): 38 class MapsPageSet(story.StorySet):
37 39
38 """ Google Maps examples """ 40 """ Google Maps examples """
39 41
40 def __init__(self): 42 def __init__(self):
41 super(MapsPageSet, self).__init__( 43 super(MapsPageSet, self).__init__(
42 archive_data_file='data/maps.json', 44 archive_data_file='data/maps.json',
43 cloud_storage_bucket=story.PUBLIC_BUCKET) 45 cloud_storage_bucket=story.PUBLIC_BUCKET,
46 verify_names=True)
44 47
45 self.AddStory(MapsPage(self)) 48 self.AddStory(MapsPage(self))
OLDNEW
« no previous file with comments | « tools/perf/page_sets/key_mobile_sites_smooth.py ('k') | tools/perf/page_sets/pathological_mobile_sites.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698