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

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

Issue 2010363002: Update Maps pixel test. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove debugging prints from presubmit script. Created 4 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
« no previous file with comments | « tools/perf/page_sets/data/maps_004.wpr.sha1 ('k') | no next file » | 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 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 super(MapsPage, self).__init__( 14 super(MapsPage, self).__init__(
15 url='http://localhost:10020/tracker.html', 15 url='http://localhost:8000/performance.html',
16 page_set=page_set, 16 page_set=page_set,
17 name='Maps.maps_002',
18 shared_page_state_class=( 17 shared_page_state_class=(
19 webgl_supported_shared_state.WebGLSupportedSharedState)) 18 webgl_supported_shared_state.WebGLSupportedSharedState))
20 self.archive_data_file = 'data/maps.json' 19 self.archive_data_file = 'data/maps.json'
21 20
22 @property 21 @property
23 def skipped_gpus(self): 22 def skipped_gpus(self):
24 # Skip this intensive test on low-end devices. crbug.com/464731 23 # Skip this intensive test on low-end devices. crbug.com/464731
25 return ['arm'] 24 return ['arm']
26 25
27 def RunNavigateSteps(self, action_runner): 26 def RunNavigateSteps(self, action_runner):
28 super(MapsPage, self).RunNavigateSteps(action_runner) 27 super(MapsPage, self).RunNavigateSteps(action_runner)
29 action_runner.Wait(3) 28 action_runner.Wait(3)
30 29
31 def RunPageInteractions(self, action_runner): 30 def RunPageInteractions(self, action_runner):
32 with action_runner.CreateInteraction('MapAnimation'): 31 with action_runner.CreateInteraction('MapAnimation'):
33 action_runner.WaitForJavaScriptCondition('window.testDone', 120) 32 action_runner.WaitForJavaScriptCondition(
33 'window.testMetrics != undefined', 120)
34 34
35 35
36 class MapsPageSet(story.StorySet): 36 class MapsPageSet(story.StorySet):
37 37
38 """ Google Maps examples """ 38 """ Google Maps examples """
39 39
40 def __init__(self): 40 def __init__(self):
41 super(MapsPageSet, self).__init__( 41 super(MapsPageSet, self).__init__(
42 archive_data_file='data/maps.json', 42 archive_data_file='data/maps.json',
43 cloud_storage_bucket=story.PUBLIC_BUCKET) 43 cloud_storage_bucket=story.PUBLIC_BUCKET)
44 44
45 self.AddStory(MapsPage(self)) 45 self.AddStory(MapsPage(self))
OLDNEW
« no previous file with comments | « tools/perf/page_sets/data/maps_004.wpr.sha1 ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698