Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(268)

Side by Side Diff: tools/perf/page_sets/tough_energy_cases.py

Issue 1198823004: Update perf page_set to use story_set (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
4 from telemetry.page import page as page_module 5 from telemetry.page import page as page_module
5 from telemetry.page import page_set as page_set_module
6 6
7 7
8 class ToughEnergyCasesPage(page_module.Page): 8 class ToughEnergyCasesPage(page_module.Page):
9 9
10 def __init__(self, url, page_set): 10 def __init__(self, url, page_set):
11 super(ToughEnergyCasesPage, self).__init__( 11 super(ToughEnergyCasesPage, self).__init__(
12 url=url, page_set=page_set, credentials_path = 'data/credentials.json') 12 url=url, page_set=page_set, credentials_path = 'data/credentials.json')
13 13
14 class CodePenPage(ToughEnergyCasesPage): 14 class CodePenPage(ToughEnergyCasesPage):
15 15
(...skipping 10 matching lines...) Expand all
26 page_set=page_set) 26 page_set=page_set)
27 self.credentials = 'google2' 27 self.credentials = 'google2'
28 28
29 def RunNavigateSteps(self, action_runner): 29 def RunNavigateSteps(self, action_runner):
30 super(GooglePage, self).RunNavigateSteps(action_runner) 30 super(GooglePage, self).RunNavigateSteps(action_runner)
31 action_runner.WaitForJavaScriptCondition( 31 action_runner.WaitForJavaScriptCondition(
32 'window.gmonkey !== undefined &&' 32 'window.gmonkey !== undefined &&'
33 'document.getElementById("gb") !== null') 33 'document.getElementById("gb") !== null')
34 34
35 35
36 class ToughEnergyCasesPageSet(page_set_module.PageSet): 36 class ToughEnergyCasesPageSet(story.StorySet):
37 """Pages for measuring Chrome power draw.""" 37 """Pages for measuring Chrome power draw."""
38 38
39 def __init__(self): 39 def __init__(self):
40 super(ToughEnergyCasesPageSet, self).__init__( 40 super(ToughEnergyCasesPageSet, self).__init__(
41 archive_data_file='data/tough_energy_cases.json', 41 archive_data_file='data/tough_energy_cases.json',
42 bucket=page_set_module.PARTNER_BUCKET) 42 cloud_storage_bucket=story.PARTNER_BUCKET)
43 43
44 # TODO: this part of the test is disabled because it fails when 44 # TODO: this part of the test is disabled because it fails when
45 # run with replay data and not with live data. See crbug.com/465692 45 # run with replay data and not with live data. See crbug.com/465692
46 # for complete details. 46 # for complete details.
47 # Why: productivity, top google properties 47 # Why: productivity, top google properties
48 #self.AddUserStory(GooglePage('https://mail.google.com/mail/', self)) 48 #self.AddUserStory(GooglePage('https://mail.google.com/mail/', self))
49 49
50 # Disabled: pegs CPU too much to get meaningful results. 50 # Disabled: pegs CPU too much to get meaningful results.
51 # Why: Image constantly changed in the background, above the fold 51 # Why: Image constantly changed in the background, above the fold
52 # self.AddUserStory(CodePenPage( 52 # self.AddUserStory(CodePenPage(
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 # self.AddUserStory(CodePenPage( 120 # self.AddUserStory(CodePenPage(
121 # 'http://codepen.io/testificate364/debug/ckItK', self)) 121 # 'http://codepen.io/testificate364/debug/ckItK', self))
122 122
123 # Why: flash video 123 # Why: flash video
124 self.AddUserStory(CodePenPage( 124 self.AddUserStory(CodePenPage(
125 'http://codepen.io/testificate364/debug/slBue', self)) 125 'http://codepen.io/testificate364/debug/slBue', self))
126 126
127 # Why: Blank page in the foreground 127 # Why: Blank page in the foreground
128 self.AddUserStory(CodePenPage( 128 self.AddUserStory(CodePenPage(
129 'http://codepen.io/testificate364/debug/HdIgr', self)) 129 'http://codepen.io/testificate364/debug/HdIgr', self))
OLDNEW
« no previous file with comments | « tools/perf/page_sets/tough_compositor_cases.py ('k') | tools/perf/page_sets/tough_filters_cases.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698