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 IntlEsFrPtBrPage(page_module
.Page
):
10 def __init__(self
, url
, page_set
):
11 super(IntlEsFrPtBrPage
, self
).__init
__(url
=url
, page_set
=page_set
)
12 self
.user_agent_type
= 'desktop'
13 self
.archive_data_file
= 'data/intl_es_fr_pt-BR.json'
15 def RunSmoothness(self
, action_runner
):
16 interaction
= action_runner
.BeginGestureInteraction(
17 'ScrollAction', is_smooth
=True)
18 action_runner
.ScrollPage()
22 class IntlEsFrPtBrPageSet(page_set_module
.PageSet
):
25 Popular pages in Romance languages Spanish, French and Brazilian Portuguese.
29 super(IntlEsFrPtBrPageSet
, self
).__init
__(
30 user_agent_type
='desktop',
31 archive_data_file
='data/intl_es_fr_pt-BR.json',
32 bucket
=page_set_module
.PARTNER_BUCKET
)
37 # pylint: disable=C0301
38 'http://www.ebay.es/sch/i.html?_sacat=382&_trkparms=clkid%3D6548971389060485883&_qi=RTM1381637',
39 'http://www.eltiempo.es/talavera-de-la-reina.html',
40 'http://www.free.fr/adsl/index.html',
41 'http://www.voila.fr/',
42 'http://www.leboncoin.fr/annonces/offres/limousin/',
43 'http://www.orange.fr/',
44 # Why: #5 site in Brazil
45 'http://www.uol.com.br/',
46 # Why: #10 site in Brazil
47 # pylint: disable=C0301
48 'http://produto.mercadolivre.com.br/MLB-468424957-pelicula-protetora-smartphone-h5500-e-h5300-43-frete-free-_JM'
52 self
.AddPage(IntlEsFrPtBrPage(url
, self
))