OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 from telemetry.page import page as page_module | 4 from telemetry.page import page as page_module |
5 from telemetry import story | 5 from telemetry import story |
6 | 6 |
7 class Intl2Page(page_module.Page): | 7 class Intl2Page(page_module.Page): |
8 | 8 |
9 def __init__(self, url, page_set): | 9 def __init__(self, url, page_set): |
10 super(Intl2Page, self).__init__(url=url, page_set=page_set) | 10 super(Intl2Page, self).__init__(url=url, page_set=page_set) |
11 # pylint: disable=C0301 | 11 # pylint: disable=line-too-long |
12 | 12 |
13 | 13 |
14 class Intl2PageSet(story.StorySet): | 14 class Intl2PageSet(story.StorySet): |
15 | 15 |
16 """ | 16 """ |
17 Description: Intl2 page_cycler benchmark | 17 Description: Intl2 page_cycler benchmark |
18 """ | 18 """ |
19 | 19 |
20 def __init__(self): | 20 def __init__(self): |
21 super(Intl2PageSet, self).__init__( | 21 super(Intl2PageSet, self).__init__( |
22 # pylint: disable=C0301 | 22 # pylint: disable=line-too-long |
23 serving_dirs=set(['../../../../data/page_cycler/intl2'])) | 23 serving_dirs=set(['../../../../data/page_cycler/intl2'])) |
24 | 24 |
25 urls_list = [ | 25 urls_list = [ |
26 'file://../../../../data/page_cycler/intl2/arabicnews.google.com/', | 26 'file://../../../../data/page_cycler/intl2/arabicnews.google.com/', |
27 'file://../../../../data/page_cycler/intl2/bn.wikipedia.org/', | 27 'file://../../../../data/page_cycler/intl2/bn.wikipedia.org/', |
28 'file://../../../../data/page_cycler/intl2/exteen.com/', | 28 'file://../../../../data/page_cycler/intl2/exteen.com/', |
29 'file://../../../../data/page_cycler/intl2/farsnews.com/', | 29 'file://../../../../data/page_cycler/intl2/farsnews.com/', |
30 'file://../../../../data/page_cycler/intl2/hindi.webdunia.com/', | 30 'file://../../../../data/page_cycler/intl2/hindi.webdunia.com/', |
31 'file://../../../../data/page_cycler/intl2/in.telugu.yahoo.com/', | 31 'file://../../../../data/page_cycler/intl2/in.telugu.yahoo.com/', |
32 'file://../../../../data/page_cycler/intl2/isna.ir/', | 32 'file://../../../../data/page_cycler/intl2/isna.ir/', |
(...skipping 17 matching lines...) Expand all Loading... |
50 'file://../../../../data/page_cycler/intl2/www.google.com.sa/', | 50 'file://../../../../data/page_cycler/intl2/www.google.com.sa/', |
51 'file://../../../../data/page_cycler/intl2/www.islamweb.net/', | 51 'file://../../../../data/page_cycler/intl2/www.islamweb.net/', |
52 'file://../../../../data/page_cycler/intl2/www.mthai.com/', | 52 'file://../../../../data/page_cycler/intl2/www.mthai.com/', |
53 'file://../../../../data/page_cycler/intl2/www.startimes2.com/', | 53 'file://../../../../data/page_cycler/intl2/www.startimes2.com/', |
54 'file://../../../../data/page_cycler/intl2/www.jagran.com/', | 54 'file://../../../../data/page_cycler/intl2/www.jagran.com/', |
55 'file://../../../../data/page_cycler/intl2/ynet.co.il/' | 55 'file://../../../../data/page_cycler/intl2/ynet.co.il/' |
56 ] | 56 ] |
57 | 57 |
58 for url in urls_list: | 58 for url in urls_list: |
59 self.AddStory(Intl2Page(url, self)) | 59 self.AddStory(Intl2Page(url, self)) |
OLD | NEW |