Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(229)

Side by Side Diff: tools/perf/page_sets/intl_ja_zh.py

Issue 1198823004: Update perf page_set to use story_set (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tools/perf/page_sets/intl_hi_ru.py ('k') | tools/perf/page_sets/intl_ko_th_vi.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 from telemetry import story
5 from telemetry.page import page as page_module
4 from telemetry.page import shared_page_state 6 from telemetry.page import shared_page_state
5 from telemetry.page import page as page_module
6 from telemetry.page import page_set as page_set_module
7 7
8 8
9 class IntlJaZhPage(page_module.Page): 9 class IntlJaZhPage(page_module.Page):
10 10
11 def __init__(self, url, page_set): 11 def __init__(self, url, page_set):
12 super(IntlJaZhPage, self).__init__( 12 super(IntlJaZhPage, self).__init__(
13 url=url, page_set=page_set, 13 url=url, page_set=page_set,
14 shared_page_state_class=shared_page_state.SharedDesktopPageState) 14 shared_page_state_class=shared_page_state.SharedDesktopPageState)
15 self.archive_data_file = 'data/intl_ja_zh.json' 15 self.archive_data_file = 'data/intl_ja_zh.json'
16 16
17 17
18 class IntlJaZhPageSet(page_set_module.PageSet): 18 class IntlJaZhPageSet(story.StorySet):
19 19
20 """ Popular pages in Japanese and Chinese. """ 20 """ Popular pages in Japanese and Chinese. """
21 21
22 def __init__(self): 22 def __init__(self):
23 super(IntlJaZhPageSet, self).__init__( 23 super(IntlJaZhPageSet, self).__init__(
24 archive_data_file='data/intl_ja_zh.json', 24 archive_data_file='data/intl_ja_zh.json',
25 bucket=page_set_module.PARTNER_BUCKET) 25 cloud_storage_bucket=story.PARTNER_BUCKET)
26 26
27 urls_list = [ 27 urls_list = [
28 # Why: #5 Japanese site 28 # Why: #5 Japanese site
29 'http://www.amazon.co.jp', 29 'http://www.amazon.co.jp',
30 'http://mixi.jp/', 30 'http://mixi.jp/',
31 'http://dtiblog.com/', 31 'http://dtiblog.com/',
32 'http://2ch.net/', 32 'http://2ch.net/',
33 'http://jugem.jp/', 33 'http://jugem.jp/',
34 'http://hatena.ne.jp/', 34 'http://hatena.ne.jp/',
35 'http://goo.ne.jp/', 35 'http://goo.ne.jp/',
(...skipping 14 matching lines...) Expand all
50 'http://www.sina.com.cn/', 50 'http://www.sina.com.cn/',
51 # Why: #5 Chinese site 51 # Why: #5 Chinese site
52 # pylint: disable=C0301 52 # pylint: disable=C0301
53 'http://www.google.com.hk/#q=%E9%82%84%E6%8F%90%E4%BE%9B&fp=c44d333e710cb4 80', 53 'http://www.google.com.hk/#q=%E9%82%84%E6%8F%90%E4%BE%9B&fp=c44d333e710cb4 80',
54 'http://udn.com/NEWS/mainpage.shtml', 54 'http://udn.com/NEWS/mainpage.shtml',
55 'http://ruten.com.tw/' 55 'http://ruten.com.tw/'
56 ] 56 ]
57 57
58 for url in urls_list: 58 for url in urls_list:
59 self.AddUserStory(IntlJaZhPage(url, self)) 59 self.AddUserStory(IntlJaZhPage(url, self))
OLDNEW
« no previous file with comments | « tools/perf/page_sets/intl_hi_ru.py ('k') | tools/perf/page_sets/intl_ko_th_vi.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698