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

Side by Side Diff: tools/perf/page_sets/key_silk_cases.json

Issue 132183003: Add swipe_to_dismiss to Silk benchmark (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Adjust constants to work on Android Created 6 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | tools/perf/page_sets/key_silk_cases/inbox_app.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 { 1 {
2 "description": "Pages hand-picked for project Silk.", 2 "description": "Pages hand-picked for project Silk.",
3 "archive_data_file": "data/key_silk_cases.json", 3 "archive_data_file": "data/key_silk_cases.json",
4 "credentials_path": "data/credentials.json", 4 "credentials_path": "data/credentials.json",
5 "user_agent_type": "mobile", 5 "user_agent_type": "mobile",
6 "smoothness": { "action": "scroll" }, 6 "smoothness": { "action": "scroll" },
7 "navigate_steps" : [ 7 "navigate_steps" : [
8 { "action": "navigate" }, 8 { "action": "navigate" },
9 { "action": "wait", "seconds": 2 } 9 { "action": "wait", "seconds": 2 }
10 ], 10 ],
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 }, 129 },
130 { 130 {
131 "url": "file://key_silk_cases/rectangle_transition.html", 131 "url": "file://key_silk_cases/rectangle_transition.html",
132 "smoothness": { "action": "wait", "seconds": 5 } 132 "smoothness": { "action": "wait", "seconds": 5 }
133 }, 133 },
134 { 134 {
135 "url": "file://key_silk_cases/font_wipe.html", 135 "url": "file://key_silk_cases/font_wipe.html",
136 "smoothness": { "action": "wait", "seconds": 5 } 136 "smoothness": { "action": "wait", "seconds": 5 }
137 }, 137 },
138 { 138 {
139 "url": "file://key_silk_cases/inbox_app.html?swipe_to_dismiss",
140 "navigate_steps" : [
141 { "action": "navigate" },
142 { "action": "wait", "seconds": 2 }
143 ],
144 "smoothness": {
145 "action": "swipe_to_dismiss"
146 },
147 "swipe_to_dismiss": [
148 {
149 "action": "swipe",
150 "element_function": "function(callback) { callback(document.getElement sByClassName('message')[2]); }",
151 "distance": 200,
152 "direction": "left",
153 "left_start_percentage": 0.8,
154 "top_start_percentage": 0.2,
155 "wait_after": {
156 "javascript": "document.getElementsByClassName('message').length < 1 8"
157 }
158 }
159 ]
160 },
161 {
162 "url": "file://key_silk_cases/inbox_app.html?stress_hidey_bars",
163 "navigate_steps" : [
164 { "action": "navigate" },
165 { "action": "wait", "seconds": 2 }
166 ],
167 "smoothness": {
168 "action": "stress_hidey_bars"
169 },
170 "stress_hidey_bars": [
171 {
172 "action": "scroll",
173 "scrollable_element_function": "function(callback) { callback(document .getElementById('messages')); }",
174 "direction": "down",
175 "speed": 200
176 },
177 {
178 "action": "scroll",
179 "scrollable_element_function": "function(callback) { callback(document .getElementById('messages')); }",
180 "direction": "up",
181 "speed": 200
182 },
183 {
184 "action": "scroll",
185 "scrollable_element_function": "function(callback) { callback(document .getElementById('messages')); }",
186 "direction": "down",
187 "speed": 200
188 }
189 ]
190 },
191 {
139 "url": "file://key_silk_cases/inbox_app.html?toggle_drawer", 192 "url": "file://key_silk_cases/inbox_app.html?toggle_drawer",
140 "navigate_steps" : [ 193 "navigate_steps" : [
141 { "action": "navigate" }, 194 { "action": "navigate" },
142 { "action": "wait", "seconds": 2 } 195 { "action": "wait", "seconds": 2 }
143 ], 196 ],
144 "smoothness": { 197 "smoothness": {
145 "action": "toggle_drawer", 198 "action": "toggle_drawer",
146 "repeat": 6 199 "repeat": 6
147 }, 200 },
148 "toggle_drawer": [ 201 "toggle_drawer": [
149 { 202 {
150 "action": "click_element", 203 "action": "click_element",
151 "selector": "#menu-button" 204 "selector": "#menu-button"
152 }, 205 },
153 { "action": "wait", "seconds": 1 } 206 { "action": "wait", "seconds": 1 }
154 ] 207 ]
155 }, 208 },
156 { 209 {
157 "url": "file://key_silk_cases/inbox_app.html?slide_drawer", 210 "url": "file://key_silk_cases/old_inbox_app.html?slide_drawer",
158 "navigate_steps" : [ 211 "navigate_steps" : [
159 { "action": "navigate" }, 212 { "action": "navigate" },
160 { "action": "wait", "seconds": 2 } 213 { "action": "wait", "seconds": 2 }
161 ], 214 ],
162 "smoothness": { 215 "smoothness": {
163 "action": "slide_drawer" 216 "action": "slide_drawer"
164 }, 217 },
165 "slide_drawer": [ 218 "slide_drawer": [
166 { 219 {
167 "action": "swipe", 220 "action": "swipe",
168 "element_function": "function(callback) { callback(document.getElement ById('nav-drawer')); }", 221 "element_function": "function(callback) { callback(document.getElement ById('nav-drawer')); }",
169 "distance": 200, 222 "distance": 200,
170 "direction": "left", 223 "direction": "left",
171 "left_start_percentage": 0.8, 224 "left_start_percentage": 0.8,
172 "top_start_percentage": 0.2, 225 "top_start_percentage": 0.2,
173 "wait_after": { 226 "wait_after": {
174 "javascript": "!document.getElementById('nav-drawer').active" 227 "javascript": "!document.getElementById('nav-drawer').active"
175 } 228 }
176 } 229 }
177 ] 230 ]
178 } 231 }
179 ] 232 ]
180 } 233 }
OLDNEW
« no previous file with comments | « no previous file | tools/perf/page_sets/key_silk_cases/inbox_app.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698