| 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 SimplePage(page_module.Page): | 9 class SimplePage(page_module.Page): |
| 10 def __init__(self, url, page_set, credentials='', name=''): | 10 def __init__(self, url, page_set, credentials='', name=''): |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 super(Facebook, self).RunNavigateSteps(action_runner) | 87 super(Facebook, self).RunNavigateSteps(action_runner) |
| 88 action_runner.WaitForElement(text='About') | 88 action_runner.WaitForElement(text='About') |
| 89 | 89 |
| 90 | 90 |
| 91 class Top10PageSet(story.StorySet): | 91 class Top10PageSet(story.StorySet): |
| 92 """10 Pages chosen from Alexa top sites""" | 92 """10 Pages chosen from Alexa top sites""" |
| 93 | 93 |
| 94 def __init__(self): | 94 def __init__(self): |
| 95 super(Top10PageSet, self).__init__( | 95 super(Top10PageSet, self).__init__( |
| 96 archive_data_file='data/top_10.json', | 96 archive_data_file='data/top_10.json', |
| 97 cloud_storage_bucket=story.PARTNER_BUCKET, | 97 cloud_storage_bucket=story.PARTNER_BUCKET) |
| 98 verify_names=True) | |
| 99 | 98 |
| 100 # top google property; a google tab is often open | 99 # top google property; a google tab is often open |
| 101 self.AddStory(Google(self)) | 100 self.AddStory(Google(self)) |
| 102 | 101 |
| 103 # productivity, top google properties | 102 # productivity, top google properties |
| 104 # TODO(dominikg): fix crbug.com/386152 | 103 # TODO(dominikg): fix crbug.com/386152 |
| 105 #self.AddStory(Gmail(self)) | 104 #self.AddStory(Gmail(self)) |
| 106 | 105 |
| 107 # productivity, top google properties | 106 # productivity, top google properties |
| 108 self.AddStory(GoogleCalendar(self)) | 107 self.AddStory(GoogleCalendar(self)) |
| (...skipping 12 matching lines...) Expand all Loading... |
| 121 self.AddStory(SimplePage('http://www.amazon.com', self)) | 120 self.AddStory(SimplePage('http://www.amazon.com', self)) |
| 122 | 121 |
| 123 # #4 Alexa | 122 # #4 Alexa |
| 124 self.AddStory(SimplePage('http://www.yahoo.com/', self)) | 123 self.AddStory(SimplePage('http://www.yahoo.com/', self)) |
| 125 | 124 |
| 126 # #16 Alexa | 125 # #16 Alexa |
| 127 self.AddStory(SimplePage('http://www.bing.com/', self)) | 126 self.AddStory(SimplePage('http://www.bing.com/', self)) |
| 128 | 127 |
| 129 # #20 Alexa | 128 # #20 Alexa |
| 130 self.AddStory(SimplePage('http://www.ask.com/', self)) | 129 self.AddStory(SimplePage('http://www.ask.com/', self)) |
| OLD | NEW |