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 page_sets import page_cycler_story | |
petrcermak
2016/08/15 10:49:29
ditto
kouhei (in TOK)
2016/08/22 06:09:21
Done.
| |
4 from telemetry.page import cache_temperature as cache_temperature_module | 5 from telemetry.page import cache_temperature as cache_temperature_module |
5 from telemetry.page import page as page_module | |
6 from telemetry.page import shared_page_state | 6 from telemetry.page import shared_page_state |
7 from telemetry import story | 7 from telemetry import story |
8 | 8 |
9 | 9 |
10 class IntlHiRuPage(page_module.Page): | 10 class IntlHiRuPage(page_cycler_story.PageCyclerStory): |
11 | 11 |
12 def __init__(self, url, page_set, cache_temperature=None): | 12 def __init__(self, url, page_set, cache_temperature=None): |
13 super(IntlHiRuPage, self).__init__( | 13 super(IntlHiRuPage, self).__init__( |
14 url=url, page_set=page_set, | 14 url=url, page_set=page_set, |
15 shared_page_state_class=shared_page_state.SharedDesktopPageState, | 15 shared_page_state_class=shared_page_state.SharedDesktopPageState, |
16 cache_temperature=cache_temperature) | 16 cache_temperature=cache_temperature) |
17 self.archive_data_file = 'data/intl_hi_ru.json' | 17 self.archive_data_file = 'data/intl_hi_ru.json' |
18 | 18 |
19 | 19 |
20 class IntlHiRuPageSet(story.StorySet): | 20 class IntlHiRuPageSet(story.StorySet): |
(...skipping 23 matching lines...) Expand all Loading... | |
44 'http://hindi.oneindia.in/', | 44 'http://hindi.oneindia.in/', |
45 # Why: #9 site in India | 45 # Why: #9 site in India |
46 'http://www.indiatimes.com/', | 46 'http://www.indiatimes.com/', |
47 # Why: #2 site in India | 47 # Why: #2 site in India |
48 'http://news.google.co.in/nwshp?tab=in&hl=hi' | 48 'http://news.google.co.in/nwshp?tab=in&hl=hi' |
49 ] | 49 ] |
50 | 50 |
51 for url in urls_list: | 51 for url in urls_list: |
52 for temp in cache_temperatures: | 52 for temp in cache_temperatures: |
53 self.AddStory(IntlHiRuPage(url, self, cache_temperature=temp)) | 53 self.AddStory(IntlHiRuPage(url, self, cache_temperature=temp)) |
OLD | NEW |