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 DhtmlPage(page_module.Page): 11 12 def __init__(self, url, page_set): 13 super(DhtmlPage, self).__init__(url=url, page_set=page_set) 14 15 16 class DhtmlPageSet(page_set_module.PageSet): 17 18 """ DHTML page_cycler benchmark """ 19 20 def __init__(self): 21 super(DhtmlPageSet, self).__init__( 22 # pylint: disable=C0301 23 serving_dirs=set(['../../../../data/page_cycler/dhtml']), 24 bucket=page_set_module.PARTNER_BUCKET) 25 26 urls_list = [ 27 'file://../../../../data/page_cycler/dhtml/colorfade/', 28 'file://../../../../data/page_cycler/dhtml/diagball/', 29 'file://../../../../data/page_cycler/dhtml/fadespacing/', 30 'file://../../../../data/page_cycler/dhtml/imageslide/', 31 'file://../../../../data/page_cycler/dhtml/layers1/', 32 'file://../../../../data/page_cycler/dhtml/layers2/', 33 'file://../../../../data/page_cycler/dhtml/layers4/', 34 'file://../../../../data/page_cycler/dhtml/layers5/', 35 'file://../../../../data/page_cycler/dhtml/layers6/', 36 'file://../../../../data/page_cycler/dhtml/meter/', 37 'file://../../../../data/page_cycler/dhtml/movingtext/', 38 'file://../../../../data/page_cycler/dhtml/mozilla/', 39 'file://../../../../data/page_cycler/dhtml/replaceimages/', 40 'file://../../../../data/page_cycler/dhtml/scrolling/', 41 'file://../../../../data/page_cycler/dhtml/slidein/', 42 'file://../../../../data/page_cycler/dhtml/slidingballs/', 43 'file://../../../../data/page_cycler/dhtml/zoom/' 44 ] 45 46 for url in urls_list: 47 self.AddPage(DhtmlPage(url, self)) 48