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

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

Issue 1767413002: [Telemetry] Cleanup some unused variables in page_sets. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 shared_page_state 5 from telemetry.page import shared_page_state
6 from telemetry import story 6 from telemetry import story
7 7
8 8
9 class SimplePage(page_module.Page): 9 class SimplePage(page_module.Page):
10 10
11 def __init__(self, url, page_set): 11 def __init__(self, url, page_set):
12 super(SimplePage, self).__init__( 12 super(SimplePage, self).__init__(
13 url=url, 13 url=url,
14 page_set=page_set, 14 page_set=page_set,
15 shared_page_state_class=shared_page_state.Shared10InchTabletPageState, 15 shared_page_state_class=shared_page_state.Shared10InchTabletPageState,
16 credentials_path='data/credentials.json') 16 credentials_path='data/credentials.json')
17 self.archive_data_file = 'data/simple_mobile_sites.json'
18 17
19 def RunNavigateSteps(self, action_runner): 18 def RunNavigateSteps(self, action_runner):
20 super(SimplePage, self).RunNavigateSteps(action_runner) 19 super(SimplePage, self).RunNavigateSteps(action_runner)
21 # TODO(epenner): Remove this wait (http://crbug.com/366933) 20 # TODO(epenner): Remove this wait (http://crbug.com/366933)
22 action_runner.Wait(5) 21 action_runner.Wait(5)
23 22
24 class SimpleScrollPage(SimplePage): 23 class SimpleScrollPage(SimplePage):
25 24
26 def __init__(self, url, page_set): 25 def __init__(self, url, page_set):
27 super(SimpleScrollPage, self).__init__(url=url, page_set=page_set) 26 super(SimpleScrollPage, self).__init__(url=url, page_set=page_set)
(...skipping 17 matching lines...) Expand all
45 'http://www.ebay.co.uk/', 44 'http://www.ebay.co.uk/',
46 'https://www.flickr.com/', 45 'https://www.flickr.com/',
47 'http://www.apple.com/mac/', 46 'http://www.apple.com/mac/',
48 'http://www.nyc.gov', 47 'http://www.nyc.gov',
49 'http://m.nytimes.com/' 48 'http://m.nytimes.com/'
50 ] 49 ]
51 50
52 for url in scroll_page_list: 51 for url in scroll_page_list:
53 self.AddStory(SimpleScrollPage(url, self)) 52 self.AddStory(SimpleScrollPage(url, self))
54 53
OLDNEW
« no previous file with comments | « tools/perf/page_sets/service_worker_micro_benchmark.py ('k') | tools/perf/page_sets/top_25_repaint.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698