Fix OOP <webview> resize and autosize.
[chromium-blink-merge.git] / tools / perf / page_sets / flash_energy_cases.py
blobab88ac97f5bfe3f97163f19787ac9536d9bb3fc7
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 shared_page_state
6 from telemetry import story
9 class FlashEnergyCasesPage(page_module.Page):
11 def __init__(self, url, page_set):
12 super(FlashEnergyCasesPage, self).__init__(
13 url=url, page_set=page_set,
14 shared_page_state_class=shared_page_state.SharedDesktopPageState)
15 self.archive_data_file = 'data/flash_energy_cases.json'
18 class FlashEnergyCasesPageSet(story.StorySet):
20 """ Pages with flash heavy content. """
22 def __init__(self):
23 super(FlashEnergyCasesPageSet, self).__init__(
24 archive_data_file='data/flash_energy_cases.json',
25 cloud_storage_bucket=story.PARTNER_BUCKET)
27 urls_list = [
28 # pylint: disable=C0301
29 'http://v.qq.com/cover/d/dm9vn9cnsn2v2gx.html?ptag=v.newplaybutton.program.dpjd',
30 'http://videos.huffingtonpost.com/politics/protesters-march-to-hong-kong-leaders-home-518476075',
31 'http://nos.nl/video/712855-eerste-beelden-na-de-aanslag-in-canada.html',
32 # Why: Large flash ad
33 'http://forum.gazeta.pl/forum/f,17007,Polityka_i_Gospodarka.html',
34 # Why: Multiple flash ads
35 'http://tinypic.com/',
36 'https://www.facebook.com/video.php?v=524346051035153&set=vb.134474600022302&type=2&theater'
39 for url in urls_list:
40 self.AddStory(FlashEnergyCasesPage(url, self))