| 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.page import shared_page_state | 5 from telemetry.page import shared_page_state |
| 6 from telemetry import story | 6 from telemetry import story |
| 7 | 7 |
| 8 | 8 |
| 9 class BrowserStartupSharedState(shared_page_state.SharedPageState): | 9 class BrowserStartupSharedState(shared_page_state.SharedPageState): |
| 10 """Shared state that restarts the browser for every single story.""" | 10 """Shared state that restarts the browser for every single story.""" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 class StartupPagesPageSet(story.StorySet): | 41 class StartupPagesPageSet(story.StorySet): |
| 42 """Pages for testing starting Chrome with a URL. | 42 """Pages for testing starting Chrome with a URL. |
| 43 | 43 |
| 44 Note that this file can't be used with record_wpr, since record_wpr requires | 44 Note that this file can't be used with record_wpr, since record_wpr requires |
| 45 a true navigate step, which we do not want for startup testing. Instead use | 45 a true navigate step, which we do not want for startup testing. Instead use |
| 46 record_wpr startup_pages_record to record data for this test.""" | 46 record_wpr startup_pages_record to record data for this test.""" |
| 47 | 47 |
| 48 def __init__(self): | 48 def __init__(self): |
| 49 super(StartupPagesPageSet, self).__init__( | 49 super(StartupPagesPageSet, self).__init__( |
| 50 archive_data_file='data/startup_pages.json', | 50 archive_data_file='data/startup_pages.json', |
| 51 cloud_storage_bucket=story.PARTNER_BUCKET, | 51 cloud_storage_bucket=story.PARTNER_BUCKET) |
| 52 verify_names=True) | |
| 53 | 52 |
| 54 # Typical page. | 53 # Typical page. |
| 55 self.AddStory(StartedPage('about:blank', self)) | 54 self.AddStory(StartedPage('about:blank', self)) |
| 56 # Typical page. | 55 # Typical page. |
| 57 self.AddStory(StartedPage('http://bbc.co.uk', self)) | 56 self.AddStory(StartedPage('http://bbc.co.uk', self)) |
| 58 # TODO(charliea): Reenable this when kabook.com is working again. | 57 # TODO(charliea): Reenable this when kabook.com is working again. |
| 59 # crbug.com/667470 | 58 # crbug.com/667470 |
| 60 # Horribly complex page - stress test! | 59 # Horribly complex page - stress test! |
| 61 # self.AddStory(StartedPage('http://kapook.com', self)) | 60 # self.AddStory(StartedPage('http://kapook.com', self)) |
| OLD | NEW |