Disable flaky AnimatedContentSamplerParameterizedTest.FrameTimestampsConvergeTowardsE...
[chromium-blink-merge.git] / tools / perf / page_sets / alexa1-10000.py
blobdb72102b578f9ef46383c5e7c58b77210ab9f3bd
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 import json
5 import os
7 from telemetry.page.page import Page
8 from telemetry.page.page_set import PageSet
11 __location__ = os.path.realpath(
12 os.path.join(os.getcwd(), os.path.dirname(__file__)))
14 # Generated on 2013-09-03 13:59:53.459117 by rmistry using
15 # create_page_set.py.
16 _TOP_10000_ALEXA_FILE = os.path.join(__location__, 'alexa1-10000-urls.json')
19 class Alexa1To10000Page(Page):
21 def __init__(self, url, page_set):
22 super(Alexa1To10000Page, self).__init__(url=url, page_set=page_set)
24 def RunPageInteractions(self, action_runner):
25 with action_runner.CreateGestureInteraction('ScrollAction'):
26 action_runner.ScrollPage()
29 class Alexa1To10000PageSet(PageSet):
30 """ Top 1-10000 Alexa global.
31 Generated on 2013-09-03 13:59:53.459117 by rmistry using
32 create_page_set.py.
33 """
35 def __init__(self):
36 super(Alexa1To10000PageSet, self).__init__(user_agent_type='desktop')
38 with open(_TOP_10000_ALEXA_FILE) as f:
39 urls_list = json.load(f)
40 for url in urls_list:
41 self.AddUserStory(Alexa1To10000Page(url, self))