OLD | NEW |
---|---|
(Empty) | |
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 | |
3 # found in the LICENSE file. | |
4 | |
5 from page_sets import extension_profile_shared_state | |
6 from telemetry.page import page as page_module | |
7 from telemetry import story | |
8 | |
9 | |
10 class BlankPageWithExtensionProfile(page_module.Page): | |
robliao
2015/07/16 18:33:23
Add a docstring to this toplevel class.
sydli
2015/07/16 20:01:29
Done.
| |
11 def __init__(self, url, page_set): | |
12 super(BlankPageWithExtensionProfile, self).__init__( | |
13 url=url, page_set=page_set, | |
14 shared_page_state_class=extension_profile_shared_state. | |
15 ExtensionProfileSharedState) | |
robliao
2015/07/16 18:33:23
This should line up with the extension_profile_sha
sydli
2015/07/16 20:01:29
Done.
| |
16 | |
17 | |
18 class BlankPageSetWithExtensionProfile(story.StorySet): | |
19 """A single blank page loaded with a profile with many extensions.""" | |
20 | |
21 def __init__(self): | |
22 super(BlankPageSetWithExtensionProfile, self).__init__() | |
23 self.AddStory(BlankPageWithExtensionProfile( | |
24 'file://blank_page/blank_page.html', self)) | |
OLD | NEW |