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

Unified Diff: tools/telemetry/telemetry/internal/actions/scroll_bounce.py

Issue 1425723003: Provide fallback for scrollingElement in telemetry tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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
Index: tools/telemetry/telemetry/internal/actions/scroll_bounce.py
diff --git a/tools/telemetry/telemetry/internal/actions/scroll_bounce.py b/tools/telemetry/telemetry/internal/actions/scroll_bounce.py
index 7782fcc3090461be776aad9583a00ae4b4574962..672351f04f124d4589633b21eea3acc4008fac62 100644
--- a/tools/telemetry/telemetry/internal/actions/scroll_bounce.py
+++ b/tools/telemetry/telemetry/internal/actions/scroll_bounce.py
@@ -38,7 +38,7 @@ class ScrollBounceAction(page_action.PageAction):
if (self._selector is None and self._text is None and
self._element_function is None):
- self._element_function = 'document.scrollingElement'
+ self._element_function = '(document.scrollingElement || document.body)'
def WillRunAction(self, tab):
for js_file in ['gesture_common.js', 'scroll_bounce.js']:
« no previous file with comments | « tools/telemetry/telemetry/internal/actions/scroll.py ('k') | tools/telemetry/telemetry/internal/actions/swipe.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698