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

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

Issue 2957153002: Updating references from story.display_name to story.name (Closed)
Patch Set: Created 3 years, 5 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 2015 The Chromium Authors. All rights reserved. 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 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 page_sets import android_screen_restoration_shared_state 4 from page_sets import android_screen_restoration_shared_state
5 5
6 from telemetry.page import page as page_module 6 from telemetry.page import page as page_module
7 from telemetry.page import shared_page_state 7 from telemetry.page import shared_page_state
8 from telemetry import story 8 from telemetry import story
9 9
10 10
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 shared_page_state_class=shared_page_state.SharedMobilePageState): 43 shared_page_state_class=shared_page_state.SharedMobilePageState):
44 # 90 seconds ensures the capture of activity after the 60-second 44 # 90 seconds ensures the capture of activity after the 60-second
45 # PowerMonitor suspend signal. 45 # PowerMonitor suspend signal.
46 super(KeyLongIdlePowerPage, self).__init__( 46 super(KeyLongIdlePowerPage, self).__init__(
47 url=url, 47 url=url,
48 page_set=page_set, 48 page_set=page_set,
49 turn_screen_off=turn_screen_off, 49 turn_screen_off=turn_screen_off,
50 duration_seconds=90, 50 duration_seconds=90,
51 shared_page_state_class=(android_screen_restoration_shared_state 51 shared_page_state_class=(android_screen_restoration_shared_state
52 .AndroidScreenRestorationSharedState)) 52 .AndroidScreenRestorationSharedState))
53 self._name = self.display_name + " (Long Idle)" 53 self._name = self.name + " (Long Idle)"
54 54
55 55
56 class KeyIdlePowerCasesPageSet(story.StorySet): 56 class KeyIdlePowerCasesPageSet(story.StorySet):
57 57
58 """ Key idle power cases """ 58 """ Key idle power cases """
59 59
60 def __init__(self): 60 def __init__(self):
61 super(KeyIdlePowerCasesPageSet, self).__init__() 61 super(KeyIdlePowerCasesPageSet, self).__init__()
62 62
63 foreground_urls_list = [ 63 foreground_urls_list = [
(...skipping 19 matching lines...) Expand all
83 self.AddStory(KeyIdlePowerPage(url, self, True)) 83 self.AddStory(KeyIdlePowerPage(url, self, True))
84 84
85 # Why: Ensure that activity strictly diminishes the longer the idle time. 85 # Why: Ensure that activity strictly diminishes the longer the idle time.
86 self.AddStory(KeyLongIdlePowerPage( 86 self.AddStory(KeyLongIdlePowerPage(
87 'file://key_idle_power_cases/set-timeout.html', self, True)) 87 'file://key_idle_power_cases/set-timeout.html', self, True))
88 88
89 89
90 class KeyIdlePowerCasesStoryExpectations(story.expectations.StoryExpectations): 90 class KeyIdlePowerCasesStoryExpectations(story.expectations.StoryExpectations):
91 def SetExpectations(self): 91 def SetExpectations(self):
92 pass 92 pass
OLDNEW
« no previous file with comments | « tools/perf/contrib/cluster_telemetry/screenshot.py ('k') | tools/perf/page_sets/story_set_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698