Plumb scroll elasticity layer from Blink to cc
[chromium-blink-merge.git] / tools / perf / page_sets / intl_ja_zh.py
blob1ca321d7a665aff12bfc0d369d3bd9f4cf88299a
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 IntlJaZhPage(page_module.Page):
10 def __init__(self, url, page_set):
11 super(IntlJaZhPage, self).__init__(url=url, page_set=page_set)
12 self.user_agent_type = 'desktop'
13 self.archive_data_file = 'data/intl_ja_zh.json'
15 def RunSmoothness(self, action_runner):
16 interaction = action_runner.BeginGestureInteraction(
17 'ScrollAction', is_smooth=True)
18 action_runner.ScrollPage()
19 interaction.End()
22 class IntlJaZhPageSet(page_set_module.PageSet):
24 """ Popular pages in Japanese and Chinese. """
26 def __init__(self):
27 super(IntlJaZhPageSet, self).__init__(
28 user_agent_type='desktop',
29 archive_data_file='data/intl_ja_zh.json',
30 bucket=page_set_module.PARTNER_BUCKET)
32 urls_list = [
33 # Why: #5 Japanese site
34 'http://www.amazon.co.jp',
35 'http://mixi.jp/',
36 'http://dtiblog.com/',
37 'http://2ch.net/',
38 'http://jugem.jp/',
39 'http://hatena.ne.jp/',
40 'http://goo.ne.jp/',
41 # Why: #1 Japanese site
42 'http://www.yahoo.co.jp/',
43 # Why: #3 Japanese site
44 'http://fc2.com/ja/',
45 'http://kakaku.com/',
46 'http://zol.com.cn/',
47 'http://cn.yahoo.com/',
48 # Why: #1 Chinese site
49 'http://www.baidu.com/s?wd=%D0%C2%20%CE%C5',
50 # Why: #2 Chinese site
51 'http://www.qq.com/',
52 # Why: #3 Chinese site
53 'http://www.taobao.com/index_global.php',
54 # Why: #4 Chinese site
55 'http://www.sina.com.cn/',
56 # Why: #5 Chinese site
57 # pylint: disable=C0301
58 'http://www.google.com.hk/#q=%E9%82%84%E6%8F%90%E4%BE%9B&fp=c44d333e710cb480',
59 'http://udn.com/NEWS/mainpage.shtml',
60 'http://ruten.com.tw/'
63 for url in urls_list:
64 self.AddPage(IntlJaZhPage(url, self))