Home | History | Annotate | Download | only in page_sets
      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 # pylint: disable=W0401,W0614
      5 from telemetry.page.actions.all_page_actions import *
      6 from telemetry.page import page as page_module
      7 from telemetry.page import page_set as page_set_module
      8 
      9 
     10 class ToughTextureUploadCasesPage(page_module.Page):
     11 
     12   def __init__(self, url, page_set):
     13     super(
     14       ToughTextureUploadCasesPage,
     15       self).__init__(
     16         url=url,
     17         page_set=page_set)
     18 
     19   def RunSmoothness(self, action_runner):
     20     action_runner.RunAction(ScrollAction())
     21 
     22 
     23 class ToughTextureUploadCasesPageSet(page_set_module.PageSet):
     24 
     25   """
     26   Description: A collection of texture upload performance tests
     27   """
     28 
     29   def __init__(self):
     30     super(ToughTextureUploadCasesPageSet, self).__init__()
     31 
     32     urls_list = [
     33       'file://tough_texture_upload_cases/background_color_animation.html',
     34       # pylint: disable=C0301
     35       'file://tough_texture_upload_cases/background_color_animation_and_transform_animation.html',
     36       # pylint: disable=C0301
     37       'file://tough_texture_upload_cases/background_color_animation_with_gradient.html',
     38       # pylint: disable=C0301
     39       'file://tough_texture_upload_cases/background_color_animation_with_gradient_and_transform_animation.html']
     40     for url in urls_list:
     41       self.AddPage(ToughTextureUploadCasesPage(url, self))
     42 
     43