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

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

Issue 538603002: Re-recorded tough_energy_cases. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Create a flash-heavy page set for tab_switching 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
« no previous file with comments | « tools/perf/page_sets/data/flash_energy_cases_000.wpr.sha1 ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 # found in the LICENSE file.
4 from telemetry.page import page as page_module
5 from telemetry.page import page_set as page_set_module
6
7
8 class FlashEnergyCasesPage(page_module.Page):
9
10 def __init__(self, url, page_set):
11 super(FlashEnergyCasesPage, self).__init__(url=url, page_set=page_set)
12 self.user_agent_type = 'desktop'
13 self.archive_data_file = 'data/flash_energy_cases.json'
14
15
16 class FlashEnergyCasesPageSet(page_set_module.PageSet):
17
18 """ Pages with flash heavy content. """
19
20 def __init__(self):
21 super(FlashEnergyCasesPageSet, self).__init__(
22 user_agent_type='desktop',
23 archive_data_file='data/flash_energy_cases.json',
24 bucket=page_set_module.PARTNER_BUCKET)
25
26 urls_list = [
27 'http://v.qq.com/cover/d/dm9vn9cnsn2v2gx.html?ptag=v.newplaybutton.progr am.dpjd',
28 'http://videos.huffingtonpost.com/politics/protesters-march-to-hong-kong -leaders-home-518476075',
29 'http://nos.nl/video/712855-eerste-beelden-na-de-aanslag-in-canada.html' ,
30 # Why: Large flash ad
31 'http://forum.gazeta.pl/forum/f,17007,Polityka_i_Gospodarka.html',
32 # Why: Multiple flash ads
33 'http://tinypic.com/',
34 'https://www.facebook.com/video.php?v=524346051035153&set=vb.13447460002 2302&type=2&theater'
35 ]
36
37 for url in urls_list:
38 self.AddPage(FlashEnergyCasesPage(url, self))
OLDNEW
« no previous file with comments | « tools/perf/page_sets/data/flash_energy_cases_000.wpr.sha1 ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698