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

Side by Side Diff: tools/perf/page_sets/intl_ar_fa_he.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: blank lines / 10sec / kwargs Created 4 years, 3 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 | « no previous file | tools/perf/page_sets/intl_es_fr_pt-BR.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
5 from page_sets import page_cycler_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 from telemetry import story
8 9
9 10
10 class IntlArFaHePage(page_module.Page): 11 class IntlArFaHePage(page_cycler_story.PageCyclerStory):
11 12
12 def __init__(self, url, page_set, cache_temperature=None): 13 def __init__(self, url, page_set, cache_temperature=None):
13 super(IntlArFaHePage, self).__init__( 14 super(IntlArFaHePage, self).__init__(
14 url=url, page_set=page_set, 15 url=url, page_set=page_set,
15 shared_page_state_class=shared_page_state.SharedDesktopPageState, 16 shared_page_state_class=shared_page_state.SharedDesktopPageState,
16 cache_temperature=cache_temperature) 17 cache_temperature=cache_temperature)
17 self.archive_data_file = 'data/intl_ar_fa_he.json' 18 self.archive_data_file = 'data/intl_ar_fa_he.json'
18 19
19 20
20 class IntlArFaHePageSet(story.StorySet): 21 class IntlArFaHePageSet(story.StorySet):
(...skipping 14 matching lines...) Expand all
35 'http://farsnews.com/', 36 'http://farsnews.com/',
36 'http://www.masrawy.com/', 37 'http://www.masrawy.com/',
37 'http://www.startimes.com/f.aspx', 38 'http://www.startimes.com/f.aspx',
38 'http://www.aljayyash.net/', 39 'http://www.aljayyash.net/',
39 'http://www.google.com.sa/' 40 'http://www.google.com.sa/'
40 ] 41 ]
41 42
42 for url in urls_list: 43 for url in urls_list:
43 for temp in cache_temperatures: 44 for temp in cache_temperatures:
44 self.AddStory(IntlArFaHePage(url, self, cache_temperature=temp)) 45 self.AddStory(IntlArFaHePage(url, self, cache_temperature=temp))
OLDNEW
« no previous file with comments | « no previous file | tools/perf/page_sets/intl_es_fr_pt-BR.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698