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 bucket=page_set_module.PARTNER_BUCKET) 30 31 urls_list = [ 32 # Why: #7 site in Vietnam 33 'http://us.24h.com.vn/', 34 # Why: #6 site in Vietnam 35 'http://vnexpress.net/', 36 # Why: #18 site in Vietnam 37 'http://vietnamnet.vn/', 38 # Why: #5 site in Vietnam 39 # pylint: disable=C0301 40 'http://news.zing.vn/the-gioi/ba-dam-thep-margaret-thatcher-qua-doi/a312895.html#home_noibat1', 41 'http://kenh14.vn/home.chn', 42 # Why: #5 site in Korea 43 'http://www.naver.com/', 44 # Why: #9 site in Korea 45 'http://www.daum.net/', 46 # Why: #25 site in Korea 47 'http://www.donga.com/', 48 'http://www.chosun.com/', 49 'http://www.danawa.com/', 50 # Why: #10 site in Thailand 51 'http://pantip.com/', 52 'http://thaimisc.com/' 53 ] 54 55 for url in urls_list: 56 self.AddPage(IntlKoThViPage(url, self)) 57