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

Side by Side Diff: tools/perf/page_sets/tough_texture_upload_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 ToughTextureUploadCasesPage(page_module.Page): 8 class ToughTextureUploadCasesPage(page_module.Page):
9 9
10 def __init__(self, url, page_set): 10 def __init__(self, url, page_set):
11 super( 11 super(
12 ToughTextureUploadCasesPage, 12 ToughTextureUploadCasesPage,
13 self).__init__( 13 self).__init__(
14 url=url, 14 url=url,
15 page_set=page_set) 15 page_set=page_set,
16 name=url.split('/')[-1])
16 17
17 def RunPageInteractions(self, action_runner): 18 def RunPageInteractions(self, action_runner):
18 with action_runner.CreateInteraction('Animation'): 19 with action_runner.CreateInteraction('Animation'):
19 action_runner.Wait(10) 20 action_runner.Wait(10)
20 21
21 22
22 class ToughTextureUploadCasesPageSet(story.StorySet): 23 class ToughTextureUploadCasesPageSet(story.StorySet):
23 24
24 """ 25 """
25 Description: A collection of texture upload performance tests 26 Description: A collection of texture upload performance tests
26 """ 27 """
27 28
28 def __init__(self): 29 def __init__(self):
29 super(ToughTextureUploadCasesPageSet, self).__init__() 30 super(ToughTextureUploadCasesPageSet, self).__init__(verify_names=True)
30 31
31 urls_list = [ 32 urls_list = [
32 'file://tough_texture_upload_cases/background_color_animation.html', 33 'file://tough_texture_upload_cases/background_color_animation.html',
33 # pylint: disable=line-too-long 34 # pylint: disable=line-too-long
34 'file://tough_texture_upload_cases/background_color_animation_with_gradien t.html', 35 'file://tough_texture_upload_cases/background_color_animation_with_gradien t.html',
35 'file://tough_texture_upload_cases/small_texture_uploads.html', 36 'file://tough_texture_upload_cases/small_texture_uploads.html',
36 'file://tough_texture_upload_cases/medium_texture_uploads.html', 37 'file://tough_texture_upload_cases/medium_texture_uploads.html',
37 'file://tough_texture_upload_cases/large_texture_uploads.html', 38 'file://tough_texture_upload_cases/large_texture_uploads.html',
38 # http://crbug.com/453131 - Our memory usage on low memory devices are 39 # http://crbug.com/453131 - Our memory usage on low memory devices are
39 # not constrained enough to run this page, disable until we are more 40 # not constrained enough to run this page, disable until we are more
40 # bounded on memory usage. 41 # bounded on memory usage.
41 # 'file://tough_texture_upload_cases/extra_large_texture_uploads.html', 42 # 'file://tough_texture_upload_cases/extra_large_texture_uploads.html',
42 ] 43 ]
43 for url in urls_list: 44 for url in urls_list:
44 self.AddStory(ToughTextureUploadCasesPage(url, self)) 45 self.AddStory(ToughTextureUploadCasesPage(url, self))
45 46
OLDNEW
« no previous file with comments | « tools/perf/page_sets/tough_scrolling_cases.py ('k') | tools/perf/page_sets/tough_webgl_cases.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698