| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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 | 4 |
| 5 from page_sets import page_cycler_story | 5 from page_sets import page_cycler_story |
| 6 from telemetry.page import cache_temperature as cache_temperature_module | 6 from telemetry.page import cache_temperature as cache_temperature_module |
| 7 from telemetry.page import shared_page_state | 7 from telemetry.page import shared_page_state |
| 8 from telemetry.page import traffic_setting as traffic_setting_module | 8 from telemetry.page import traffic_setting as traffic_setting_module |
| 9 from telemetry import story | 9 from telemetry import story |
| 10 | 10 |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 'https://2048-opera-pwa.surge.sh/', | 84 'https://2048-opera-pwa.surge.sh/', |
| 85 'https://jakearchibald.github.io/trained-to-thrill/', | 85 'https://jakearchibald.github.io/trained-to-thrill/', |
| 86 'https://townwork.net', | 86 'https://townwork.net', |
| 87 'https://flipboard.com/topic/yoga', | 87 'https://flipboard.com/topic/yoga', |
| 88 ], cache_temperatures, traffic_settings) | 88 ], cache_temperatures, traffic_settings) |
| 89 | 89 |
| 90 self.AddStories(['tough_ttfmp'], [ | 90 self.AddStories(['tough_ttfmp'], [ |
| 91 'http://www.localmoxie.com', | 91 'http://www.localmoxie.com', |
| 92 'http://www.dawn.com', | 92 'http://www.dawn.com', |
| 93 'http://www.thairath.co.th', | 93 'http://www.thairath.co.th', |
| 94 'http://www.hashocean.com', | 94 # Disabled to avoid Nexus5X bot timeout crbug.com/702175 |
| 95 'http://www.163.com', | 95 # 'http://www.hashocean.com', |
| 96 # 'http://www.163.com', |
| 96 ], cache_temperatures, traffic_settings) | 97 ], cache_temperatures, traffic_settings) |
| 97 | 98 |
| 98 self.AddStories(['easy_ttfmp'], [ | 99 self.AddStories(['easy_ttfmp'], [ |
| 99 'http://www.slideshare.net', | 100 'http://www.slideshare.net', |
| 100 'http://www.bradesco.com.br', | 101 'http://www.bradesco.com.br', |
| 101 'http://www.gsshop.com', | 102 'http://www.gsshop.com', |
| 102 'http://www.sbs.co.kr', | 103 # Disabled to avoid Nexus5X bot timeout crbug.com/702175 |
| 103 'http://www.futura-sciences.com', | 104 # 'http://www.sbs.co.kr', |
| 105 # 'http://www.futura-sciences.com', |
| 104 ], cache_temperatures, traffic_settings) | 106 ], cache_temperatures, traffic_settings) |
| 105 | 107 |
| 106 self.AddStories(['tough_tti'], [ | 108 self.AddStories(['tough_tti'], [ |
| 107 'http://www.thestar.com.my', | 109 'http://www.thestar.com.my', |
| 108 'http://www.58pic.com', | 110 'http://www.58pic.com', |
| 109 'http://www.hongkiat.com', | 111 'http://www.hongkiat.com', |
| 110 'http://www.ebs.in', | 112 # Disabled to avoid Nexus5X bot timeout crbug.com/702175 |
| 111 'http://www.ibicn.com', | 113 # 'http://www.ebs.in', |
| 114 # 'http://www.ibicn.com', |
| 112 ], cache_temperatures, traffic_settings) | 115 ], cache_temperatures, traffic_settings) |
| 113 | 116 |
| 114 self.AddStories(['easy_tti'], [ | 117 self.AddStories(['easy_tti'], [ |
| 115 'http://www.dramaq.com.tw', | 118 'http://www.dramaq.com.tw', |
| 116 'http://www.locanto.in', | 119 'http://www.locanto.in', |
| 117 'http://www.francetvinfo.fr', | 120 'http://www.francetvinfo.fr', |
| 118 'http://www.gfk.com', | 121 # Disabled to avoid Nexus5X bot timeout crbug.com/702175 |
| 119 'http://www.mlsmatrix.com' | 122 # 'http://www.gfk.com', |
| 123 # 'http://www.mlsmatrix.com' |
| 120 ], cache_temperatures, traffic_settings) | 124 ], cache_temperatures, traffic_settings) |
| 121 | 125 |
| 122 def AddStories(self, tags, urls, cache_temperatures, traffic_settings): | 126 def AddStories(self, tags, urls, cache_temperatures, traffic_settings): |
| 123 for url in urls: | 127 for url in urls: |
| 124 for temp in cache_temperatures: | 128 for temp in cache_temperatures: |
| 125 for traffic in traffic_settings: | 129 for traffic in traffic_settings: |
| 126 self.AddStory(page_cycler_story.PageCyclerStory(url, self, | 130 self.AddStory(page_cycler_story.PageCyclerStory(url, self, |
| 127 shared_page_state_class=shared_page_state.SharedMobilePageState, | 131 shared_page_state_class=shared_page_state.SharedMobilePageState, |
| 128 cache_temperature=temp, traffic_setting=traffic, tags=tags)) | 132 cache_temperature=temp, traffic_setting=traffic, tags=tags)) |
| OLD | NEW |