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 | 4 |
5 from telemetry.page import page | 5 from telemetry.page import page |
6 from telemetry.page import page_set | 6 from telemetry.page import page_set |
7 from unittest_data.pages.external_page import ExternalPage | 7 from unittest_data.pages.external_page import ExternalPage |
8 | 8 |
9 | 9 |
10 class InternalPage(page.Page): | 10 class InternalPage(page.Page): |
(...skipping 12 matching lines...) Expand all Loading... |
23 | 23 |
24 #top google property; a google tab is often open | 24 #top google property; a google tab is often open |
25 class Google(page.Page): | 25 class Google(page.Page): |
26 def __init__(self, ps): | 26 def __init__(self, ps): |
27 # pylint: disable=bad-super-call | 27 # pylint: disable=bad-super-call |
28 super(Google, self).__init__('https://www.google.com', page_set=ps) | 28 super(Google, self).__init__('https://www.google.com', page_set=ps) |
29 | 29 |
30 def RunGetActionRunner(self, action_runner): | 30 def RunGetActionRunner(self, action_runner): |
31 return action_runner | 31 return action_runner |
32 | 32 |
33 self.AddPage(Google(self)) | 33 self.AddUserStory(Google(self)) |
34 self.AddPage(InternalPage(self)) | 34 self.AddUserStory(InternalPage(self)) |
35 self.AddPage(ExternalPage(self)) | 35 self.AddUserStory(ExternalPage(self)) |
OLD | NEW |