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.
5 from page_sets
import top_desktop_sites_2012Q3
7 from telemetry
.page
import page_set
8 from telemetry
.page
import page
11 class Top2012Q3StressPage(page
.Page
):
13 def __init__(self
, url
, ps
):
14 super(Top2012Q3StressPage
, self
).__init
__(
15 url
=url
, page_set
=ps
, credentials_path
='data/credentials.json')
16 self
.make_javascript_deterministic
= True
17 self
.archive_data_file
= 'data/2012Q3.json'
19 def RunPageInteractions(self
, action_runner
):
21 action_runner
.ReloadPage()
23 action_runner
.ForceGarbageCollection()
26 class Top2012Q3StressPageSet(page_set
.PageSet
):
27 """ Pages hand-picked from top-lists in Q32012. """
30 super(Top2012Q3StressPageSet
, self
).__init
__(
31 make_javascript_deterministic
=True,
32 archive_data_file
='data/2012Q3.json',
33 bucket
=page_set
.PARTNER_BUCKET
)
35 for url
in top_desktop_sites_2012Q3
.TOP_2013_URLS
:
36 self
.AddPage(Top2012Q3StressPage(url
, self
))