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()
22 class IntlJaZhPageSet(page_set_module
.PageSet
):
24 """ Popular pages in Japanese and Chinese. """
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
)
33 # Why: #5 Japanese site
34 'http://www.amazon.co.jp',
36 'http://dtiblog.com/',
39 'http://hatena.ne.jp/',
41 # Why: #1 Japanese site
42 'http://www.yahoo.co.jp/',
43 # Why: #3 Japanese site
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
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/'
64 self
.AddPage(IntlJaZhPage(url
, self
))