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

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

Issue 1198823004: Update perf page_set to use story_set (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 import story
4 from telemetry.page import page as page_module 5 from telemetry.page import page as page_module
5 from telemetry.page import page_set as page_set_module
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 16
17 def RunPageInteractions(self, action_runner): 17 def RunPageInteractions(self, action_runner):
18 with action_runner.CreateInteraction('Animation'): 18 with action_runner.CreateInteraction('Animation'):
19 action_runner.Wait(10) 19 action_runner.Wait(10)
20 20
21 21
22 class ToughTextureUploadCasesPageSet(page_set_module.PageSet): 22 class ToughTextureUploadCasesPageSet(story.StorySet):
23 23
24 """ 24 """
25 Description: A collection of texture upload performance tests 25 Description: A collection of texture upload performance tests
26 """ 26 """
27 27
28 def __init__(self): 28 def __init__(self):
29 super(ToughTextureUploadCasesPageSet, self).__init__() 29 super(ToughTextureUploadCasesPageSet, self).__init__()
30 30
31 urls_list = [ 31 urls_list = [
32 'file://tough_texture_upload_cases/background_color_animation.html', 32 'file://tough_texture_upload_cases/background_color_animation.html',
33 # pylint: disable=C0301 33 # pylint: disable=C0301
34 'file://tough_texture_upload_cases/background_color_animation_and_transfor m_animation.html', 34 'file://tough_texture_upload_cases/background_color_animation_and_transfor m_animation.html',
35 # pylint: disable=C0301 35 # pylint: disable=C0301
36 'file://tough_texture_upload_cases/background_color_animation_with_gradien t.html', 36 'file://tough_texture_upload_cases/background_color_animation_with_gradien t.html',
37 # pylint: disable=C0301 37 # pylint: disable=C0301
38 'file://tough_texture_upload_cases/background_color_animation_with_gradien t_and_transform_animation.html', 38 'file://tough_texture_upload_cases/background_color_animation_with_gradien t_and_transform_animation.html',
39 'file://tough_texture_upload_cases/small_texture_uploads.html', 39 'file://tough_texture_upload_cases/small_texture_uploads.html',
40 'file://tough_texture_upload_cases/medium_texture_uploads.html', 40 'file://tough_texture_upload_cases/medium_texture_uploads.html',
41 'file://tough_texture_upload_cases/large_texture_uploads.html', 41 'file://tough_texture_upload_cases/large_texture_uploads.html',
42 'file://tough_texture_upload_cases/extra_large_texture_uploads.html', 42 'file://tough_texture_upload_cases/extra_large_texture_uploads.html',
43 ] 43 ]
44 for url in urls_list: 44 for url in urls_list:
45 self.AddUserStory(ToughTextureUploadCasesPage(url, self)) 45 self.AddUserStory(ToughTextureUploadCasesPage(url, self))
46
OLDNEW
« no previous file with comments | « tools/perf/page_sets/tough_scrolling_while_zoomed_in_cases.py ('k') | tools/perf/page_sets/tough_video_cases.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698