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

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

Issue 2742473002: gpu benchmarking swipe for touchpad
Patch Set: Update direction in tests that use swipeElement/Page to maintain the same behavior. Created 3 years, 8 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 | « content/renderer/gpu/gpu_benchmarking_extension.cc ('k') | tools/perf/page_sets/polymer.py » ('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.py
diff --git a/tools/perf/page_sets/key_silk_cases.py b/tools/perf/page_sets/key_silk_cases.py
index ee9395fba2f6506beefb25d044151d2989a01c5c..984c0ee2cf4061517abc9e795e1357ed9c14bd00 100644
--- a/tools/perf/page_sets/key_silk_cases.py
+++ b/tools/perf/page_sets/key_silk_cases.py
@@ -302,7 +302,7 @@ class Page16(KeySilkCasesPage):
with action_runner.CreateGestureInteraction('SwipeAction'):
action_runner.SwipeElement(
left_start_ratio=0.8, top_start_ratio=0.2,
- direction='left', distance=400, speed_in_pixels_per_second=5000,
+ direction='right', distance=400, speed_in_pixels_per_second=5000,
element_function='document.getElementsByClassName("message")[2]')
def PerformPageInteractions(self, action_runner):
@@ -381,7 +381,7 @@ class Page19(KeySilkCasesPage):
with action_runner.CreateInteraction('Action_SwipeAction'):
action_runner.SwipeElement(
left_start_ratio=0.8, top_start_ratio=0.2,
- direction='left', distance=200,
+ direction='right', distance=200,
element_function='document.getElementById("nav-drawer").children[0]')
action_runner.WaitForJavaScriptCondition(
'!document.getElementById("nav-drawer").active')
@@ -539,7 +539,7 @@ class Page25(KeySilkCasesPage):
def PerformPageInteractions(self, action_runner):
with action_runner.CreateGestureInteraction('SwipeAction', repeatable=True):
action_runner.SwipeElement(
- direction='left', distance=100,
+ direction='right', distance=100,
element_function='document.getElementById(":f")')
with action_runner.CreateGestureInteraction('SwipeAction', repeatable=True):
action_runner.Wait(1)
« no previous file with comments | « content/renderer/gpu/gpu_benchmarking_extension.cc ('k') | tools/perf/page_sets/polymer.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698