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

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

Issue 955653003: Adding Maps page to page_sets for telemetry. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mousedrag2
Patch Set: Made changes. Created 5 years, 9 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/data/top_25_smooth.json ('k') | tools/perf/page_sets/top_pages.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 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.page import page as page_module 4 from telemetry.page import page as page_module
5 from telemetry.page import page_set as page_set_module 5 from telemetry.page import page_set as page_set_module
6 6
7 from page_sets import top_pages 7 from page_sets import top_pages
8 8
9 9
10 def _IssueMarkerAndScroll(action_runner): 10 def _IssueMarkerAndScroll(action_runner):
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 68
69 """ Why: productivity, top google properties; Sample doc in the link """ 69 """ Why: productivity, top google properties; Sample doc in the link """
70 70
71 def RunPageInteractions(self, action_runner): 71 def RunPageInteractions(self, action_runner):
72 interaction = action_runner.BeginGestureInteraction( 72 interaction = action_runner.BeginGestureInteraction(
73 'ScrollAction', is_smooth=True) 73 'ScrollAction', is_smooth=True)
74 action_runner.ScrollElement(selector='.kix-appview-editor') 74 action_runner.ScrollElement(selector='.kix-appview-editor')
75 interaction.End() 75 interaction.End()
76 76
77 77
78 class GoogleMapsPage(top_pages.GoogleMapsPage):
79
80 """ Why: productivity, top google properties; Supports drag gestures """
81
82 def RunPageInteractions(self, action_runner):
83 interaction = action_runner.BeginGestureInteraction(
84 'DragAction', is_smooth=True)
85 action_runner.DragPage(left_start_ratio=0.5, top_start_ratio=0.75,
86 left_end_ratio=0.75, top_end_ratio=0.5)
87 interaction.End()
88 action_runner.Wait(2)
89 interaction = action_runner.BeginGestureInteraction(
90 'DragAction', is_smooth=True)
91 action_runner.DragPage(left_start_ratio=0.5, top_start_ratio=0.5,
92 left_end_ratio=0.35, top_end_ratio=0.75)
93 interaction.End()
94 # TODO(ssid): Add zoom gestures after fixing bug crbug.com/462214.
95
96
78 class ESPNSmoothPage(top_pages.ESPNPage): 97 class ESPNSmoothPage(top_pages.ESPNPage):
79 98
80 """ Why: #1 sports """ 99 """ Why: #1 sports """
81 100
82 def RunPageInteractions(self, action_runner): 101 def RunPageInteractions(self, action_runner):
83 interaction = action_runner.BeginGestureInteraction( 102 interaction = action_runner.BeginGestureInteraction(
84 'ScrollAction', is_smooth=True) 103 'ScrollAction', is_smooth=True)
85 action_runner.ScrollPage(left_start_ratio=0.1) 104 action_runner.ScrollPage(left_start_ratio=0.1)
86 interaction.End() 105 interaction.End()
87 106
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 top_pages.WikipediaPage)(self)) 138 top_pages.WikipediaPage)(self))
120 self.AddUserStory(_CreatePageClassWithSmoothInteractions( 139 self.AddUserStory(_CreatePageClassWithSmoothInteractions(
121 top_pages.TwitterPage)(self)) 140 top_pages.TwitterPage)(self))
122 self.AddUserStory(_CreatePageClassWithSmoothInteractions( 141 self.AddUserStory(_CreatePageClassWithSmoothInteractions(
123 top_pages.PinterestPage)(self)) 142 top_pages.PinterestPage)(self))
124 self.AddUserStory(ESPNSmoothPage(self)) 143 self.AddUserStory(ESPNSmoothPage(self))
125 self.AddUserStory(_CreatePageClassWithSmoothInteractions( 144 self.AddUserStory(_CreatePageClassWithSmoothInteractions(
126 top_pages.WeatherPage)(self)) 145 top_pages.WeatherPage)(self))
127 self.AddUserStory(_CreatePageClassWithSmoothInteractions( 146 self.AddUserStory(_CreatePageClassWithSmoothInteractions(
128 top_pages.YahooGamesPage)(self)) 147 top_pages.YahooGamesPage)(self))
148 self.AddUserStory(GoogleMapsPage(self))
129 149
130 other_urls = [ 150 other_urls = [
131 # Why: #1 news worldwide (Alexa global) 151 # Why: #1 news worldwide (Alexa global)
132 'http://news.yahoo.com', 152 'http://news.yahoo.com',
133 # Why: #2 news worldwide 153 # Why: #2 news worldwide
134 'http://www.cnn.com', 154 'http://www.cnn.com',
135 # Why: #1 world commerce website by visits; #3 commerce in the US by 155 # Why: #1 world commerce website by visits; #3 commerce in the US by
136 # time spent 156 # time spent
137 'http://www.amazon.com', 157 'http://www.amazon.com',
138 # Why: #1 commerce website by time spent by users in US 158 # Why: #1 commerce website by time spent by users in US
139 'http://www.ebay.com', 159 'http://www.ebay.com',
140 # Why: #1 Alexa recreation 160 # Why: #1 Alexa recreation
141 'http://booking.com', 161 'http://booking.com',
142 # Why: #1 Alexa reference 162 # Why: #1 Alexa reference
143 'http://answers.yahoo.com', 163 'http://answers.yahoo.com',
144 # Why: #1 Alexa sports 164 # Why: #1 Alexa sports
145 'http://sports.yahoo.com/', 165 'http://sports.yahoo.com/',
146 # Why: top tech blog 166 # Why: top tech blog
147 'http://techcrunch.com' 167 'http://techcrunch.com'
148 ] 168 ]
149 169
150 for url in other_urls: 170 for url in other_urls:
151 self.AddUserStory(TopSmoothPage(url, self)) 171 self.AddUserStory(TopSmoothPage(url, self))
OLDNEW
« no previous file with comments | « tools/perf/page_sets/data/top_25_smooth.json ('k') | tools/perf/page_sets/top_pages.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698