Home | History | Annotate | Download | only in page_cycler
      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 class Moz2Page(page_module.Page):
     10 
     11   def __init__(self, url, page_set):
     12     super(Moz2Page, self).__init__(url=url, page_set=page_set)
     13 
     14 
     15 class Moz2PageSet(page_set_module.PageSet):
     16 
     17   """ Description: Moz2 page_cycler benchmark """
     18 
     19   def __init__(self):
     20     super(Moz2PageSet, self).__init__(
     21       # pylint: disable=C0301
     22       serving_dirs=set(['../../../../data/page_cycler/moz2']),
     23       bucket=page_set_module.PARTNER_BUCKET)
     24 
     25     urls_list = [
     26       'file://../../../../data/page_cycler/moz2/bugzilla.mozilla.org/',
     27       'file://../../../../data/page_cycler/moz2/espn.go.com/',
     28       'file://../../../../data/page_cycler/moz2/home.netscape.com/',
     29       'file://../../../../data/page_cycler/moz2/hotwired.lycos.com/',
     30       'file://../../../../data/page_cycler/moz2/lxr.mozilla.org/',
     31       'file://../../../../data/page_cycler/moz2/my.netscape.com/',
     32       'file://../../../../data/page_cycler/moz2/news.cnet.com/',
     33       'file://../../../../data/page_cycler/moz2/slashdot.org/',
     34       'file://../../../../data/page_cycler/moz2/vanilla-page/',
     35       'file://../../../../data/page_cycler/moz2/web.icq.com/',
     36       'file://../../../../data/page_cycler/moz2/www.altavista.com/',
     37       'file://../../../../data/page_cycler/moz2/www.amazon.com/',
     38       'file://../../../../data/page_cycler/moz2/www.aol.com/',
     39       'file://../../../../data/page_cycler/moz2/www.apple.com/',
     40       'file://../../../../data/page_cycler/moz2/www.cnn.com/',
     41       'file://../../../../data/page_cycler/moz2/www.compuserve.com/',
     42       'file://../../../../data/page_cycler/moz2/www.digitalcity.com/',
     43       'file://../../../../data/page_cycler/moz2/www.ebay.com/',
     44       'file://../../../../data/page_cycler/moz2/www.excite.com/',
     45       'file://../../../../data/page_cycler/moz2/www.expedia.com/',
     46       'file://../../../../data/page_cycler/moz2/www.google.com/',
     47       'file://../../../../data/page_cycler/moz2/www.iplanet.com/',
     48       'file://../../../../data/page_cycler/moz2/www.mapquest.com/',
     49       'file://../../../../data/page_cycler/moz2/www.microsoft.com/',
     50       'file://../../../../data/page_cycler/moz2/www.moviefone.com/',
     51       'file://../../../../data/page_cycler/moz2/www.msn.com/',
     52       'file://../../../../data/page_cycler/moz2/www.msnbc.com/',
     53       'file://../../../../data/page_cycler/moz2/www.nytimes.com/',
     54       'file://../../../../data/page_cycler/moz2/www.nytimes.com_Table/',
     55       'file://../../../../data/page_cycler/moz2/www.quicken.com/',
     56       'file://../../../../data/page_cycler/moz2/www.spinner.com/',
     57       'file://../../../../data/page_cycler/moz2/www.sun.com/',
     58       'file://../../../../data/page_cycler/moz2/www.time.com/',
     59       'file://../../../../data/page_cycler/moz2/www.tomshardware.com/',
     60       'file://../../../../data/page_cycler/moz2/www.travelocity.com/',
     61       'file://../../../../data/page_cycler/moz2/www.voodooextreme.com/',
     62       'file://../../../../data/page_cycler/moz2/www.w3.org_DOML2Core/',
     63       'file://../../../../data/page_cycler/moz2/www.wired.com/',
     64       'file://../../../../data/page_cycler/moz2/www.yahoo.com/',
     65       'file://../../../../data/page_cycler/moz2/www.zdnet.com/',
     66       'file://../../../../data/page_cycler/moz2/www.zdnet.com_Gamespot.com/'
     67     ]
     68 
     69     for url in urls_list:
     70       self.AddPage(Moz2Page(url, self))
     71