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

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

Issue 2941663002: Removing verify_names=True now that the default for verify_names is True (Closed)
Patch Set: Created 3 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
« no previous file with comments | « tools/perf/page_sets/key_hit_test_cases.py ('k') | tools/perf/page_sets/key_mobile_sites.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
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.display_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__(verify_names=True) 61 super(KeyIdlePowerCasesPageSet, self).__init__()
62 62
63 foreground_urls_list = [ 63 foreground_urls_list = [
64 # Why: Ensure minimal activity for static, empty pages in the foreground. 64 # Why: Ensure minimal activity for static, empty pages in the foreground.
65 'file://key_idle_power_cases/blank.html', 65 'file://key_idle_power_cases/blank.html',
66 ] 66 ]
67 67
68 for url in foreground_urls_list: 68 for url in foreground_urls_list:
69 self.AddStory(KeyIdlePowerPage(url, self, False)) 69 self.AddStory(KeyIdlePowerPage(url, self, False))
70 70
71 background_urls_list = [ 71 background_urls_list = [
72 # Why: Ensure animated GIFs aren't processed when Chrome is backgrounded. 72 # Why: Ensure animated GIFs aren't processed when Chrome is backgrounded.
73 'file://key_idle_power_cases/animated-gif.html', 73 'file://key_idle_power_cases/animated-gif.html',
74 # Why: Ensure CSS animations aren't processed when Chrome is backgrounded. 74 # Why: Ensure CSS animations aren't processed when Chrome is backgrounded.
75 'file://key_idle_power_cases/css-animation.html', 75 'file://key_idle_power_cases/css-animation.html',
76 # Why: Ensure rAF is suppressed when Chrome is backgrounded. 76 # Why: Ensure rAF is suppressed when Chrome is backgrounded.
77 'file://key_idle_power_cases/request-animation-frame.html', 77 'file://key_idle_power_cases/request-animation-frame.html',
78 # Why: Ensure setTimeout is throttled when Chrome is backgrounded. 78 # Why: Ensure setTimeout is throttled when Chrome is backgrounded.
79 'file://key_idle_power_cases/set-timeout.html', 79 'file://key_idle_power_cases/set-timeout.html',
80 ] 80 ]
81 81
82 for url in background_urls_list: 82 for url in background_urls_list:
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))
OLDNEW
« no previous file with comments | « tools/perf/page_sets/key_hit_test_cases.py ('k') | tools/perf/page_sets/key_mobile_sites.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698