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

Side by Side Diff: telemetry/telemetry/internal/actions/drag.py

Issue 2978643002: Removing bad-continuation param and fixing resulting errors. Fixed indentation errors, in telemetry… (Closed)
Patch Set: Created 3 years, 5 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
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 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 4
5 """A Telemetry page_action that performs the "drag" action on pages. 5 """A Telemetry page_action that performs the "drag" action on pages.
6 6
7 Action parameters are: 7 Action parameters are:
8 - selector: If no selector is defined then the action attempts to drag the 8 - selector: If no selector is defined then the action attempts to drag the
9 document element on the page. 9 document element on the page.
10 - element_function: CSS selector used to evaluate callback when test completes 10 - element_function: CSS selector used to evaluate callback when test completes
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 } 86 }
87 window.__dragAction.start({ 87 window.__dragAction.start({
88 element: element, 88 element: element,
89 left_start_ratio: {{ left_start_ratio }}, 89 left_start_ratio: {{ left_start_ratio }},
90 top_start_ratio: {{ top_start_ratio }}, 90 top_start_ratio: {{ top_start_ratio }},
91 left_end_ratio: {{ left_end_ratio }}, 91 left_end_ratio: {{ left_end_ratio }},
92 top_end_ratio: {{ top_end_ratio }}, 92 top_end_ratio: {{ top_end_ratio }},
93 speed: {{ speed }}, 93 speed: {{ speed }},
94 gesture_source_type: {{ @gesture_source_type }} 94 gesture_source_type: {{ @gesture_source_type }}
95 }); 95 });
96 }''', 96 }''',\
97 left_start_ratio=self._left_start_ratio, 97 left_start_ratio=self._left_start_ratio,\
98 top_start_ratio=self._top_start_ratio, 98 top_start_ratio=self._top_start_ratio,\
99 left_end_ratio=self._left_end_ratio, 99 left_end_ratio=self._left_end_ratio,\
100 top_end_ratio=self._top_end_ratio, 100 top_end_ratio=self._top_end_ratio,\
101 speed=self._speed, 101 speed=self._speed,\
102 gesture_source_type=gesture_source_type) 102 gesture_source_type=gesture_source_type)
103 page_action.EvaluateCallbackWithElement( 103 page_action.EvaluateCallbackWithElement(
104 tab, code, selector=self._selector, text=self._text, 104 tab, code, selector=self._selector, text=self._text,
105 element_function=self._element_function) 105 element_function=self._element_function)
106 tab.WaitForJavaScriptCondition('window.__dragActionDone', timeout=60) 106 tab.WaitForJavaScriptCondition('window.__dragActionDone', timeout=60)
OLDNEW
« no previous file with comments | « telemetry/telemetry/decorators.py ('k') | telemetry/telemetry/internal/actions/drag_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698