| 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 import story |
| 5 from telemetry.page import page as page_module |
| 4 from telemetry.page import shared_page_state | 6 from telemetry.page import shared_page_state |
| 5 from telemetry.page import page as page_module | |
| 6 from telemetry.page import page_set as page_set_module | |
| 7 | 7 |
| 8 class BigJsPageSet(page_set_module.PageSet): | 8 |
| 9 class BigJsPageSet(story.StorySet): |
| 9 | 10 |
| 10 """ Sites which load and run big JavaScript files.""" | 11 """ Sites which load and run big JavaScript files.""" |
| 11 | 12 |
| 12 def __init__(self): | 13 def __init__(self): |
| 13 super(BigJsPageSet, self).__init__( | 14 super(BigJsPageSet, self).__init__( |
| 14 archive_data_file='data/big_js.json', | 15 archive_data_file='data/big_js.json', |
| 15 bucket=page_set_module.PARTNER_BUCKET) | 16 cloud_storage_bucket=story.PARTNER_BUCKET) |
| 16 | 17 |
| 17 # www.foo.com is a dummy page to make it easier to run only one interesting | 18 # www.foo.com is a dummy page to make it easier to run only one interesting |
| 18 # page at a time. You can't just run the interesting page on its own: Page | 19 # page at a time. You can't just run the interesting page on its own: Page |
| 19 # sets with only one page don't work well, since we end up reusing a | 20 # sets with only one page don't work well, since we end up reusing a |
| 20 # renderer all the time and it keeps its memory caches alive (see | 21 # renderer all the time and it keeps its memory caches alive (see |
| 21 # crbug.com/403735). | 22 # crbug.com/403735). |
| 22 urls_list = [ | 23 urls_list = [ |
| 23 'http://beta.unity3d.com/jonas/DT2/', | 24 'http://beta.unity3d.com/jonas/DT2/', |
| 24 'https://www.youtube.com/watch?v=IJNR2EpS0jw', | 25 'https://www.youtube.com/watch?v=IJNR2EpS0jw', |
| 25 'http://www.foo.com', | 26 'http://www.foo.com', |
| 26 ] | 27 ] |
| 27 for url in urls_list: | 28 for url in urls_list: |
| 28 self.AddUserStory(page_module.Page( | 29 self.AddUserStory(page_module.Page( |
| 29 url, self, | 30 url, self, |
| 30 shared_page_state_class=shared_page_state.SharedDesktopPageState)) | 31 shared_page_state_class=shared_page_state.SharedDesktopPageState)) |
| OLD | NEW |