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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tools/perf/page_sets/key_silk_cases/inbox_app.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/page_sets/key_silk_cases.json
diff --git a/tools/perf/page_sets/key_silk_cases.json b/tools/perf/page_sets/key_silk_cases.json
index 498f12a1e7efd6c04ca3ab9f28ff00d86edcdfcb..cecd53fdc758c48cc7f8f4e169afde0b315e749f 100644
--- a/tools/perf/page_sets/key_silk_cases.json
+++ b/tools/perf/page_sets/key_silk_cases.json
@@ -136,6 +136,59 @@
"smoothness": { "action": "wait", "seconds": 5 }
},
{
+ "url": "file://key_silk_cases/inbox_app.html?swipe_to_dismiss",
+ "navigate_steps" : [
+ { "action": "navigate" },
+ { "action": "wait", "seconds": 2 }
+ ],
+ "smoothness": {
+ "action": "swipe_to_dismiss"
+ },
+ "swipe_to_dismiss": [
+ {
+ "action": "swipe",
+ "element_function": "function(callback) { callback(document.getElementsByClassName('message')[2]); }",
+ "distance": 200,
+ "direction": "left",
+ "left_start_percentage": 0.8,
+ "top_start_percentage": 0.2,
+ "wait_after": {
+ "javascript": "document.getElementsByClassName('message').length < 18"
+ }
+ }
+ ]
+ },
+ {
+ "url": "file://key_silk_cases/inbox_app.html?stress_hidey_bars",
+ "navigate_steps" : [
+ { "action": "navigate" },
+ { "action": "wait", "seconds": 2 }
+ ],
+ "smoothness": {
+ "action": "stress_hidey_bars"
+ },
+ "stress_hidey_bars": [
+ {
+ "action": "scroll",
+ "scrollable_element_function": "function(callback) { callback(document.getElementById('messages')); }",
+ "direction": "down",
+ "speed": 200
+ },
+ {
+ "action": "scroll",
+ "scrollable_element_function": "function(callback) { callback(document.getElementById('messages')); }",
+ "direction": "up",
+ "speed": 200
+ },
+ {
+ "action": "scroll",
+ "scrollable_element_function": "function(callback) { callback(document.getElementById('messages')); }",
+ "direction": "down",
+ "speed": 200
+ }
+ ]
+ },
+ {
"url": "file://key_silk_cases/inbox_app.html?toggle_drawer",
"navigate_steps" : [
{ "action": "navigate" },
@@ -154,7 +207,7 @@
]
},
{
- "url": "file://key_silk_cases/inbox_app.html?slide_drawer",
+ "url": "file://key_silk_cases/old_inbox_app.html?slide_drawer",
"navigate_steps" : [
{ "action": "navigate" },
{ "action": "wait", "seconds": 2 }
« 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