| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 cache_temperature as cache_temperature_module | 4 from telemetry.page import cache_temperature as cache_temperature_module |
| 5 from telemetry.page import page | 5 from telemetry.page import page |
| 6 from telemetry import story | 6 from telemetry import story |
| 7 | 7 |
| 8 class OopifBasicPageSet(story.StorySet): | 8 class OopifBasicPageSet(story.StorySet): |
| 9 """ Basic set of pages used to measure performance of out-of-process | 9 """ Basic set of pages used to measure performance of out-of-process |
| 10 iframes. | 10 iframes. |
| 11 """ | 11 """ |
| 12 | 12 |
| 13 def __init__(self, cache_temperatures=None): | 13 def __init__(self, cache_temperatures=None): |
| 14 super(OopifBasicPageSet, self).__init__( | 14 super(OopifBasicPageSet, self).__init__( |
| 15 archive_data_file='data/oopif_basic.json', | 15 archive_data_file='data/oopif_basic.json', |
| 16 cloud_storage_bucket=story.PARTNER_BUCKET, | 16 cloud_storage_bucket=story.PARTNER_BUCKET) |
| 17 verify_names=True) | |
| 18 if cache_temperatures is None: | 17 if cache_temperatures is None: |
| 19 cache_temperatures = [cache_temperature_module.ANY] | 18 cache_temperatures = [cache_temperature_module.ANY] |
| 20 | 19 |
| 21 urls = [ | 20 urls = [ |
| 22 'http://www.cnn.com', | 21 'http://www.cnn.com', |
| 23 'http://www.ebay.com', | 22 'http://www.ebay.com', |
| 24 'http://booking.com', | 23 'http://booking.com', |
| 25 # Disabled because it causes flaky runs https://crbug.com/522870 | 24 # Disabled because it causes flaky runs https://crbug.com/522870 |
| 26 #'http://www.rei.com/', | 25 #'http://www.rei.com/', |
| 27 'http://www.fifa.com/', | 26 'http://www.fifa.com/', |
| 28 # Disabled because it is flaky on Windows and Android | 27 # Disabled because it is flaky on Windows and Android |
| 29 #'http://arstechnica.com/', | 28 #'http://arstechnica.com/', |
| 30 'http://www.nationalgeographic.com/', | 29 'http://www.nationalgeographic.com/', |
| 31 # Cross-site heavy! Enable them once they render without crashing. | 30 # Cross-site heavy! Enable them once they render without crashing. |
| 32 #'http://www.nba.com/', | 31 #'http://www.nba.com/', |
| 33 #'http://www.phonearena.com/', | 32 #'http://www.phonearena.com/', |
| 34 #'http://slickdeals.net/', | 33 #'http://slickdeals.net/', |
| 35 #'http://www.163.com/', | 34 #'http://www.163.com/', |
| 36 ] | 35 ] |
| 37 | 36 |
| 38 for url in urls: | 37 for url in urls: |
| 39 for temp in cache_temperatures: | 38 for temp in cache_temperatures: |
| 40 self.AddStory(page.Page(url, self, cache_temperature=temp, name=url)) | 39 self.AddStory(page.Page(url, self, cache_temperature=temp, name=url)) |
| OLD | NEW |