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

Unified Diff: tools/perf/page_sets/mac_gpu_sites.py

Issue 2100223002: Add a power test for blinking cursor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/perf/benchmarks/power.py ('k') | tools/perf/page_sets/trivial_sites/trivial_blinking_cursor.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/page_sets/mac_gpu_sites.py
diff --git a/tools/perf/page_sets/mac_gpu_sites.py b/tools/perf/page_sets/mac_gpu_sites.py
index 39cd0194b87004b6af72f9ab93b4284f553c6a87..f95e0994988288b5f2aa50854ad27acfecdb610b 100644
--- a/tools/perf/page_sets/mac_gpu_sites.py
+++ b/tools/perf/page_sets/mac_gpu_sites.py
@@ -11,7 +11,7 @@ class _NoGpuSharedPageState(shared_page_state.SharedPageState):
super(_NoGpuSharedPageState, self).__init__(
test, finder_options, story_set)
finder_options.browser_options.AppendExtraBrowserArgs(
- ['--no-gpu'])
+ ['--disable-gpu'])
class _NoOverlaysSharedPageState(shared_page_state.SharedPageState):
@@ -32,13 +32,27 @@ class TrivialScrollingPage(page_module.Page):
shared_page_state_class=shared_page_state_class)
-class MacGpuTrivialScrollStorySet(story.StorySet):
+class TrivialBlinkingCursorPage(page_module.Page):
+
+ def __init__(self, page_set, shared_page_state_class):
+ super(TrivialBlinkingCursorPage, self).__init__(
+ url='file://trivial_sites/trivial_blinking_cursor.html',
+ page_set=page_set,
+ name=self.__class__.__name__ + shared_page_state_class.__name__,
+ shared_page_state_class=shared_page_state_class)
+
+
+class MacGpuTrivialPagesStorySet(story.StorySet):
def __init__(self):
- super(MacGpuTrivialScrollStorySet, self).__init__()
+ super(MacGpuTrivialPagesStorySet, self).__init__()
self.AddStory(TrivialScrollingPage(self, shared_page_state.SharedPageState))
+ self.AddStory(TrivialBlinkingCursorPage(
+ self, shared_page_state.SharedPageState))
self.AddStory(TrivialScrollingPage(self, _NoOverlaysSharedPageState))
+ self.AddStory(TrivialBlinkingCursorPage(self, _NoOverlaysSharedPageState))
self.AddStory(TrivialScrollingPage(self, _NoGpuSharedPageState))
+ self.AddStory(TrivialBlinkingCursorPage(self, _NoGpuSharedPageState))
@property
def allow_mixed_story_states(self):
« no previous file with comments | « tools/perf/benchmarks/power.py ('k') | tools/perf/page_sets/trivial_sites/trivial_blinking_cursor.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698