[Session restore] Rename group name Enabled to Restore.
[chromium-blink-merge.git] / tools / perf / page_sets / tough_texture_upload_cases.py
blob197289666b3dd3b972d3f2f999fc3fcea361b42e
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
3 # found in the LICENSE file.
4 from telemetry.page import page as page_module
5 from telemetry.page import page_set as page_set_module
8 class ToughTextureUploadCasesPage(page_module.Page):
10 def __init__(self, url, page_set):
11 super(
12 ToughTextureUploadCasesPage,
13 self).__init__(
14 url=url,
15 page_set=page_set)
17 def RunPageInteractions(self, action_runner):
18 interaction = action_runner.BeginGestureInteraction(
19 'ScrollAction')
20 action_runner.ScrollPage()
21 interaction.End()
24 class ToughTextureUploadCasesPageSet(page_set_module.PageSet):
26 """
27 Description: A collection of texture upload performance tests
28 """
30 def __init__(self):
31 super(ToughTextureUploadCasesPageSet, self).__init__()
33 urls_list = [
34 'file://tough_texture_upload_cases/background_color_animation.html',
35 # pylint: disable=C0301
36 'file://tough_texture_upload_cases/background_color_animation_and_transform_animation.html',
37 # pylint: disable=C0301
38 'file://tough_texture_upload_cases/background_color_animation_with_gradient.html',
39 # pylint: disable=C0301
40 'file://tough_texture_upload_cases/background_color_animation_with_gradient_and_transform_animation.html']
41 for url in urls_list:
42 self.AddUserStory(ToughTextureUploadCasesPage(url, self))