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

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

Issue 625123002: Make credential_path a page attribute instead of page_set attribute. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert changes to path & path_unittest Created 6 years, 2 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 telemetry.page import page as page_module 4 from telemetry.page import page as page_module
5 from telemetry.page import page_set as page_set_module 5 from telemetry.page import page_set as page_set_module
6 6
7 7
8 class ToughMemoryMultiTabPage(page_module.Page): 8 class ToughMemoryMultiTabPage(page_module.Page):
9 9
10 def __init__(self, url, page_set): 10 def __init__(self, url, page_set):
11 super(ToughMemoryMultiTabPage, self).__init__(url=url, page_set=page_set) 11 super(ToughMemoryMultiTabPage, self).__init__(
12 self.credentials_path = 'data/credentials.json' 12 url=url, page_set=page_set, credentials_path = 'data/credentials.json')
13 self.user_agent_type = 'mobile' 13 self.user_agent_type = 'mobile'
14 self.archive_data_file = 'data/key_mobile_sites.json' 14 self.archive_data_file = 'data/key_mobile_sites.json'
15 15
16 16
17 class ToughMemoryMultiTabPageSet(page_set_module.PageSet): 17 class ToughMemoryMultiTabPageSet(page_set_module.PageSet):
18 18
19 """ Mobile sites for exercising multi-tab memory issues """ 19 """ Mobile sites for exercising multi-tab memory issues """
20 20
21 def __init__(self): 21 def __init__(self):
22 super(ToughMemoryMultiTabPageSet, self).__init__( 22 super(ToughMemoryMultiTabPageSet, self).__init__(
23 credentials_path='data/credentials.json',
24 user_agent_type='mobile', 23 user_agent_type='mobile',
25 archive_data_file='data/key_mobile_sites.json') 24 archive_data_file='data/key_mobile_sites.json')
26 25
27 urls_list = [ 26 urls_list = [
28 'https://www.google.com/#hl=en&q=barack+obama', 27 'https://www.google.com/#hl=en&q=barack+obama',
29 'http://theverge.com', 28 'http://theverge.com',
30 'http://techcrunch.com' 29 'http://techcrunch.com'
31 ] 30 ]
32 31
33 for url in urls_list: 32 for url in urls_list:
34 self.AddPage(ToughMemoryMultiTabPage(url, self)) 33 self.AddPage(ToughMemoryMultiTabPage(url, self))
OLDNEW
« no previous file with comments | « tools/perf/page_sets/tough_layout_cases.py ('k') | tools/perf/page_sets/tough_pinch_zoom_cases.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698