Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / tools / perf / page_sets / intl_ko_th_vi.py
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 # pylint: disable=W0401,W0614
5 from telemetry.page.actions.all_page_actions import *
6 from telemetry.page import page as page_module
7 from telemetry.page import page_set as page_set_module
8
9
10 class IntlKoThViPage(page_module.Page):
11
12   def __init__(self, url, page_set):
13     super(IntlKoThViPage, self).__init__(url=url, page_set=page_set)
14     self.user_agent_type = 'desktop'
15     self.archive_data_file = 'data/intl_ko_th_vi.json'
16
17   def RunSmoothness(self, action_runner):
18     action_runner.RunAction(ScrollAction())
19
20
21 class IntlKoThViPageSet(page_set_module.PageSet):
22
23   """ Popular pages in Korean, Thai and Vietnamese. """
24
25   def __init__(self):
26     super(IntlKoThViPageSet, self).__init__(
27       user_agent_type='desktop',
28       archive_data_file='data/intl_ko_th_vi.json')
29
30     urls_list = [
31       # Why: #7 site in Vietnam
32       'http://us.24h.com.vn/',
33       # Why: #6 site in Vietnam
34       'http://vnexpress.net/',
35       # Why: #18 site in Vietnam
36       'http://vietnamnet.vn/',
37       # Why: #5 site in Vietnam
38       # pylint: disable=C0301
39       'http://news.zing.vn/the-gioi/ba-dam-thep-margaret-thatcher-qua-doi/a312895.html#home_noibat1',
40       'http://kenh14.vn/home.chn',
41       # Why: #5 site in Korea
42       'http://www.naver.com/',
43       # Why: #9 site in Korea
44       'http://www.daum.net/',
45       # Why: #25 site in Korea
46       'http://www.donga.com/',
47       'http://www.chosun.com/',
48       'http://www.danawa.com/',
49       # Why: #10 site in Thailand
50       'http://pantip.com/',
51       'http://thaimisc.com/'
52     ]
53
54     for url in urls_list:
55       self.AddPage(IntlKoThViPage(url, self))