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

Side by Side Diff: tools/perf/page_sets/tough_canvas_cases.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 from telemetry.page import page as page_module 4 from telemetry.page import page as page_module
5 from telemetry import story 5 from telemetry import story
6 6
7 7
8 class ToughCanvasCasesPage(page_module.Page): 8 class ToughCanvasCasesPage(page_module.Page):
9 9
10 def __init__(self, url, page_set): 10 def __init__(self, url, page_set):
11 super(ToughCanvasCasesPage, self).__init__(url=url, page_set=page_set) 11 name = url
12 if not url.startswith('http'):
13 name = url[7:]
14 super(ToughCanvasCasesPage, self).__init__(url=url, page_set=page_set,
15 name=name)
12 self.archive_data_file = 'data/tough_canvas_cases.json' 16 self.archive_data_file = 'data/tough_canvas_cases.json'
13 17
14 def RunNavigateSteps(self, action_runner): 18 def RunNavigateSteps(self, action_runner):
15 super(ToughCanvasCasesPage, self).RunNavigateSteps(action_runner) 19 super(ToughCanvasCasesPage, self).RunNavigateSteps(action_runner)
16 action_runner.WaitForJavaScriptCondition( 20 action_runner.WaitForJavaScriptCondition(
17 "document.readyState == 'complete'") 21 "document.readyState == 'complete'")
18 22
19 def RunPageInteractions(self, action_runner): 23 def RunPageInteractions(self, action_runner):
20 with action_runner.CreateInteraction('CanvasAnimation'): 24 with action_runner.CreateInteraction('CanvasAnimation'):
21 action_runner.Wait(5) 25 action_runner.Wait(5)
(...skipping 10 matching lines...) Expand all
32 36
33 class ToughCanvasCasesPageSet(story.StorySet): 37 class ToughCanvasCasesPageSet(story.StorySet):
34 38
35 """ 39 """
36 Description: Self-driven Canvas2D animation examples 40 Description: Self-driven Canvas2D animation examples
37 """ 41 """
38 42
39 def __init__(self): 43 def __init__(self):
40 super(ToughCanvasCasesPageSet, self).__init__( 44 super(ToughCanvasCasesPageSet, self).__init__(
41 archive_data_file='data/tough_canvas_cases.json', 45 archive_data_file='data/tough_canvas_cases.json',
42 cloud_storage_bucket=story.PARTNER_BUCKET) 46 cloud_storage_bucket=story.PARTNER_BUCKET,
47 verify_names=True)
43 48
44 # Crashes on Galaxy Nexus. crbug.com/314131 49 # Crashes on Galaxy Nexus. crbug.com/314131
45 # self.AddStory(MicrosofFirefliesPage(self)) 50 # self.AddStory(MicrosofFirefliesPage(self))
46 51
47 # Failing on Nexus 5 (http://crbug.com/364248): 52 # Failing on Nexus 5 (http://crbug.com/364248):
48 # 'http://geoapis.appspot.com/agdnZW9hcGlzchMLEgtFeGFtcGxlQ29kZRjh1wIM', 53 # 'http://geoapis.appspot.com/agdnZW9hcGlzchMLEgtFeGFtcGxlQ29kZRjh1wIM',
49 54
50 urls_list = [ 55 urls_list = [
51 'http://runway.countlessprojects.com/prototype/performance_test.html', 56 'http://runway.countlessprojects.com/prototype/performance_test.html',
52 # pylint: disable=line-too-long 57 # pylint: disable=line-too-long
(...skipping 29 matching lines...) Expand all
82 'file://tough_canvas_cases/rendering_throughput/fill_shapes.html', 87 'file://tough_canvas_cases/rendering_throughput/fill_shapes.html',
83 'file://tough_canvas_cases/rendering_throughput/stroke_shapes.html', 88 'file://tough_canvas_cases/rendering_throughput/stroke_shapes.html',
84 'file://tough_canvas_cases/rendering_throughput/bouncing_clipped_rectangle s.html', 89 'file://tough_canvas_cases/rendering_throughput/bouncing_clipped_rectangle s.html',
85 'file://tough_canvas_cases/rendering_throughput/bouncing_gradient_circles. html', 90 'file://tough_canvas_cases/rendering_throughput/bouncing_gradient_circles. html',
86 'file://tough_canvas_cases/rendering_throughput/bouncing_svg_images.html', 91 'file://tough_canvas_cases/rendering_throughput/bouncing_svg_images.html',
87 'file://tough_canvas_cases/rendering_throughput/bouncing_png_images.html' 92 'file://tough_canvas_cases/rendering_throughput/bouncing_png_images.html'
88 ] 93 ]
89 94
90 for url in urls_list: 95 for url in urls_list:
91 self.AddStory(ToughCanvasCasesPage(url, self)) 96 self.AddStory(ToughCanvasCasesPage(url, self))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698