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

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

Issue 2244943002: Introduce PageCyclerStory and let the stories wait for onload+TTI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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
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 page_sets import page_cycler_story
petrcermak 2016/08/15 10:49:30 ditto
kouhei (in TOK) 2016/08/22 06:09:21 Done.
5 from telemetry import story
4 from telemetry.page import cache_temperature as cache_temperature_module 6 from telemetry.page import cache_temperature as cache_temperature_module
5 from telemetry.page import page as page_module
6 from telemetry.page import shared_page_state 7 from telemetry.page import shared_page_state
7 from telemetry import story
8 8
9 9
10 class IntlKoThViPage(page_module.Page): 10 class IntlKoThViPage(page_cycler_story.PageCyclerStory):
11 11
12 def __init__(self, url, page_set, cache_temperature=None): 12 def __init__(self, url, page_set, cache_temperature=None):
13 super(IntlKoThViPage, self).__init__( 13 super(IntlKoThViPage, self).__init__(
14 url=url, page_set=page_set, 14 url=url, page_set=page_set,
15 shared_page_state_class=shared_page_state.SharedDesktopPageState, 15 shared_page_state_class=shared_page_state.SharedDesktopPageState,
16 cache_temperature=cache_temperature) 16 cache_temperature=cache_temperature)
17 17
18 18
19 class IntlKoThViPageSet(story.StorySet): 19 class IntlKoThViPageSet(story.StorySet):
20 20
(...skipping 26 matching lines...) Expand all
47 'http://www.chosun.com/', 47 'http://www.chosun.com/',
48 'http://www.danawa.com/', 48 'http://www.danawa.com/',
49 # Why: #10 site in Thailand 49 # Why: #10 site in Thailand
50 'http://pantip.com/', 50 'http://pantip.com/',
51 'http://thaimisc.com/' 51 'http://thaimisc.com/'
52 ] 52 ]
53 53
54 for url in urls_list: 54 for url in urls_list:
55 for temp in cache_temperatures: 55 for temp in cache_temperatures:
56 self.AddStory(IntlKoThViPage(url, self, cache_temperature=temp)) 56 self.AddStory(IntlKoThViPage(url, self, cache_temperature=temp))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698