| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 # pylint: disable=W0401,W0614 | 4 # pylint: disable=W0401,W0614 |
| 5 from telemetry.page.actions.all_page_actions import * | 5 from telemetry.page.actions.all_page_actions import * |
| 6 from telemetry.page import page as page_module | 6 from telemetry.page import page as page_module |
| 7 from telemetry.page import page_set as page_set_module | 7 from telemetry.page import page_set as page_set_module |
| 8 | 8 |
| 9 | 9 |
| 10 class IntlKoThViPage(page_module.Page): | 10 class IntlKoThViPage(page_module.Page): |
| 11 | 11 |
| 12 def __init__(self, url, page_set): | 12 def __init__(self, url, page_set): |
| 13 super(IntlKoThViPage, self).__init__(url=url, page_set=page_set) | 13 super(IntlKoThViPage, self).__init__(url=url, page_set=page_set) |
| 14 self.user_agent_type = 'desktop' | 14 self.user_agent_type = 'desktop' |
| 15 self.archive_data_file = 'data/intl_ko_th_vi.json' | 15 self.archive_data_file = 'data/intl_ko_th_vi.json' |
| 16 | 16 |
| 17 def RunSmoothness(self, action_runner): | 17 def RunSmoothness(self, action_runner): |
| 18 action_runner.RunAction(ScrollAction()) | 18 action_runner.RunAction(ScrollAction()) |
| 19 | 19 |
| 20 | 20 |
| 21 class IntlKoThViPageSet(page_set_module.PageSet): | 21 class IntlKoThViPageSet(page_set_module.PageSet): |
| 22 | 22 |
| 23 """ Popular pages in Korean, Thai and Vietnamese. """ | 23 """ Popular pages in Korean, Thai and Vietnamese. """ |
| 24 | 24 |
| 25 def __init__(self): | 25 def __init__(self): |
| 26 super(IntlKoThViPageSet, self).__init__( | 26 super(IntlKoThViPageSet, self).__init__( |
| 27 user_agent_type='desktop', | 27 user_agent_type='desktop', |
| 28 archive_data_file='data/intl_ko_th_vi.json') | 28 archive_data_file='data/intl_ko_th_vi.json', |
| 29 bucket=page_set_module.PARTNER_BUCKET) |
| 29 | 30 |
| 30 urls_list = [ | 31 urls_list = [ |
| 31 # Why: #7 site in Vietnam | 32 # Why: #7 site in Vietnam |
| 32 'http://us.24h.com.vn/', | 33 'http://us.24h.com.vn/', |
| 33 # Why: #6 site in Vietnam | 34 # Why: #6 site in Vietnam |
| 34 'http://vnexpress.net/', | 35 'http://vnexpress.net/', |
| 35 # Why: #18 site in Vietnam | 36 # Why: #18 site in Vietnam |
| 36 'http://vietnamnet.vn/', | 37 'http://vietnamnet.vn/', |
| 37 # Why: #5 site in Vietnam | 38 # Why: #5 site in Vietnam |
| 38 # pylint: disable=C0301 | 39 # pylint: disable=C0301 |
| 39 'http://news.zing.vn/the-gioi/ba-dam-thep-margaret-thatcher-qua-doi/a31289
5.html#home_noibat1', | 40 'http://news.zing.vn/the-gioi/ba-dam-thep-margaret-thatcher-qua-doi/a31289
5.html#home_noibat1', |
| 40 'http://kenh14.vn/home.chn', | 41 'http://kenh14.vn/home.chn', |
| 41 # Why: #5 site in Korea | 42 # Why: #5 site in Korea |
| 42 'http://www.naver.com/', | 43 'http://www.naver.com/', |
| 43 # Why: #9 site in Korea | 44 # Why: #9 site in Korea |
| 44 'http://www.daum.net/', | 45 'http://www.daum.net/', |
| 45 # Why: #25 site in Korea | 46 # Why: #25 site in Korea |
| 46 'http://www.donga.com/', | 47 'http://www.donga.com/', |
| 47 'http://www.chosun.com/', | 48 'http://www.chosun.com/', |
| 48 'http://www.danawa.com/', | 49 'http://www.danawa.com/', |
| 49 # Why: #10 site in Thailand | 50 # Why: #10 site in Thailand |
| 50 'http://pantip.com/', | 51 'http://pantip.com/', |
| 51 'http://thaimisc.com/' | 52 'http://thaimisc.com/' |
| 52 ] | 53 ] |
| 53 | 54 |
| 54 for url in urls_list: | 55 for url in urls_list: |
| 55 self.AddPage(IntlKoThViPage(url, self)) | 56 self.AddPage(IntlKoThViPage(url, self)) |
| OLD | NEW |