Disable flaky AnimatedContentSamplerParameterizedTest.FrameTimestampsConvergeTowardsE...
[chromium-blink-merge.git] / tools / perf / page_sets / simple_mobile_sites.py
blobbe6fc8daf26f8cb50d4ca4a32b1f83cf791df8fd
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 SimplePage(page_module.Page):
10 def __init__(self, url, page_set):
11 super(SimplePage, self).__init__(
12 url=url,
13 page_set=page_set,
14 credentials_path='data/credentials.json')
15 self.archive_data_file = 'data/simple_mobile_sites.json'
17 def RunNavigateSteps(self, action_runner):
18 super(SimplePage, self).RunNavigateSteps(action_runner)
19 # TODO(epenner): Remove this wait (http://crbug.com/366933)
20 action_runner.Wait(5)
22 class SimpleScrollPage(SimplePage):
24 def __init__(self, url, page_set):
25 super(SimpleScrollPage, self).__init__(url=url, page_set=page_set)
27 def RunPageInteractions(self, action_runner):
28 # Make the scroll longer to reduce noise.
29 with action_runner.CreateGestureInteraction('ScrollAction'):
30 action_runner.ScrollPage(direction='down', speed_in_pixels_per_second=300)
32 class SimpleMobileSitesPageSet(page_set_module.PageSet):
34 """ Simple mobile sites """
36 def __init__(self):
37 super(SimpleMobileSitesPageSet, self).__init__(
38 user_agent_type='tablet_10_inch',
39 archive_data_file='data/simple_mobile_sites.json',
40 bucket=page_set_module.PUBLIC_BUCKET)
42 scroll_page_list = [
43 # Why: Scrolls moderately complex pages (up to 60 layers)
44 'http://www.ebay.co.uk/',
45 'https://www.flickr.com/',
46 'http://www.apple.com/mac/',
47 'http://www.nyc.gov',
48 'http://m.nytimes.com/'
51 for url in scroll_page_list:
52 self.AddUserStory(SimpleScrollPage(url, self))