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

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

Issue 321863003: Adding cloud permission buckets to pages sets that are part of crbug.com/374764 or already in cloud… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit Created 6 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 # 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 IntlJaZhPage(page_module.Page): 10 class IntlJaZhPage(page_module.Page):
11 11
12 def __init__(self, url, page_set): 12 def __init__(self, url, page_set):
13 super(IntlJaZhPage, self).__init__(url=url, page_set=page_set) 13 super(IntlJaZhPage, 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_ja_zh.json' 15 self.archive_data_file = 'data/intl_ja_zh.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 IntlJaZhPageSet(page_set_module.PageSet): 21 class IntlJaZhPageSet(page_set_module.PageSet):
22 22
23 """ Popular pages in Japanese and Chinese. """ 23 """ Popular pages in Japanese and Chinese. """
24 24
25 def __init__(self): 25 def __init__(self):
26 super(IntlJaZhPageSet, self).__init__( 26 super(IntlJaZhPageSet, self).__init__(
27 user_agent_type='desktop', 27 user_agent_type='desktop',
28 archive_data_file='data/intl_ja_zh.json') 28 archive_data_file='data/intl_ja_zh.json',
29 bucket=page_set_module.PARTNER_BUCKET)
29 30
30 urls_list = [ 31 urls_list = [
31 # Why: #5 Japanese site 32 # Why: #5 Japanese site
32 'http://www.amazon.co.jp', 33 'http://www.amazon.co.jp',
33 'http://mixi.jp/', 34 'http://mixi.jp/',
34 'http://dtiblog.com/', 35 'http://dtiblog.com/',
35 'http://2ch.net/', 36 'http://2ch.net/',
36 'http://jugem.jp/', 37 'http://jugem.jp/',
37 'http://hatena.ne.jp/', 38 'http://hatena.ne.jp/',
38 'http://goo.ne.jp/', 39 'http://goo.ne.jp/',
(...skipping 14 matching lines...) Expand all
53 'http://www.sina.com.cn/', 54 'http://www.sina.com.cn/',
54 # Why: #5 Chinese site 55 # Why: #5 Chinese site
55 # pylint: disable=C0301 56 # pylint: disable=C0301
56 'http://www.google.com.hk/#q=%E9%82%84%E6%8F%90%E4%BE%9B&fp=c44d333e710cb4 80', 57 'http://www.google.com.hk/#q=%E9%82%84%E6%8F%90%E4%BE%9B&fp=c44d333e710cb4 80',
57 'http://udn.com/NEWS/mainpage.shtml', 58 'http://udn.com/NEWS/mainpage.shtml',
58 'http://ruten.com.tw/' 59 'http://ruten.com.tw/'
59 ] 60 ]
60 61
61 for url in urls_list: 62 for url in urls_list:
62 self.AddPage(IntlJaZhPage(url, self)) 63 self.AddPage(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