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# pylint: disable=W0401,W0614 5from telemetry.page.actions.all_page_actions import * 6from telemetry.page import page as page_module 7from telemetry.page import page_set as page_set_module 8 9 10class IntlArFaHePage(page_module.Page): 11 12 def __init__(self, url, page_set): 13 super(IntlArFaHePage, self).__init__(url=url, page_set=page_set) 14 self.user_agent_type = 'desktop' 15 self.archive_data_file = 'data/intl_ar_fa_he.json' 16 17 def RunSmoothness(self, action_runner): 18 action_runner.RunAction(ScrollAction()) 19 20 21class IntlArFaHePageSet(page_set_module.PageSet): 22 23 """ Popular pages in right-to-left languages Arabic, Farsi and Hebrew. """ 24 25 def __init__(self): 26 super(IntlArFaHePageSet, self).__init__( 27 user_agent_type='desktop', 28 archive_data_file='data/intl_ar_fa_he.json', 29 bucket=page_set_module.PARTNER_BUCKET) 30 31 urls_list = [ 32 'http://msn.co.il/', 33 'http://ynet.co.il/', 34 'http://www.islamweb.net/', 35 'http://farsnews.com/', 36 'http://www.masrawy.com/', 37 'http://www.startimes.com/f.aspx', 38 'http://www.aljayyash.net/', 39 'http://www.google.com.sa/' 40 ] 41 42 for url in urls_list: 43 self.AddPage(IntlArFaHePage(url, self)) 44