Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / tools / perf / page_sets / intl_ja_zh.py
blobab1651431d934587b24b1233f6f026b3106fc9ab
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 shared_page_state
6 from telemetry import story
9 class IntlJaZhPage(page_module.Page):
11 def __init__(self, url, page_set):
12 super(IntlJaZhPage, self).__init__(
13 url=url, page_set=page_set,
14 shared_page_state_class=shared_page_state.SharedDesktopPageState)
15 self.archive_data_file = 'data/intl_ja_zh.json'
18 class IntlJaZhPageSet(story.StorySet):
20 """ Popular pages in Japanese and Chinese. """
22 def __init__(self):
23 super(IntlJaZhPageSet, self).__init__(
24 archive_data_file='data/intl_ja_zh.json',
25 cloud_storage_bucket=story.PARTNER_BUCKET)
27 urls_list = [
28 # Why: #5 Japanese site
29 'http://www.amazon.co.jp',
30 'http://mixi.jp/',
31 'http://dtiblog.com/',
32 'http://2ch.net/',
33 'http://jugem.jp/',
34 'http://hatena.ne.jp/',
35 'http://goo.ne.jp/',
36 # Why: #1 Japanese site
37 'http://www.yahoo.co.jp/',
38 # Why: #3 Japanese site
39 'http://fc2.com/ja/',
40 'http://kakaku.com/',
41 'http://zol.com.cn/',
42 'http://cn.yahoo.com/',
43 # Why: #1 Chinese site
44 'http://www.baidu.com/s?wd=%D0%C2%20%CE%C5',
45 # Why: #2 Chinese site
46 'http://www.qq.com/',
47 # Why: #3 Chinese site
48 'http://www.taobao.com/index_global.php',
49 # Why: #4 Chinese site
50 'http://www.sina.com.cn/',
51 # Why: #5 Chinese site
52 # pylint: disable=C0301
53 'http://www.google.com.hk/#q=%E9%82%84%E6%8F%90%E4%BE%9B&fp=c44d333e710cb480',
54 'http://udn.com/NEWS/mainpage.shtml',
55 'http://ruten.com.tw/'
58 for url in urls_list:
59 self.AddStory(IntlJaZhPage(url, self))