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
8 class FlashEnergyCasesPage(page_module
.Page
):
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'
16 class FlashEnergyCasesPageSet(page_set_module
.PageSet
):
18 """ Pages with flash heavy content. """
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
)
27 # pylint: disable=C0301
28 'http://v.qq.com/cover/d/dm9vn9cnsn2v2gx.html?ptag=v.newplaybutton.program.dpjd',
29 'http://videos.huffingtonpost.com/politics/protesters-march-to-hong-kong-leaders-home-518476075',
30 'http://nos.nl/video/712855-eerste-beelden-na-de-aanslag-in-canada.html',
32 'http://forum.gazeta.pl/forum/f,17007,Polityka_i_Gospodarka.html',
33 # Why: Multiple flash ads
34 'http://tinypic.com/',
35 'https://www.facebook.com/video.php?v=524346051035153&set=vb.134474600022302&type=2&theater'
39 self
.AddPage(FlashEnergyCasesPage(url
, self
))