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

Side by Side Diff: tools/perf/page_sets/diagonal_scrolling_supported_shared_state.py

Issue 999243003: Adding tests for diagonal scrolling in telemetry. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changing python lists to tuple, changing comment indentation, and changing a test to only run on ch… Created 5 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 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 import logging 4 import logging
5 5
6 from telemetry.page import shared_page_state 6 from telemetry.page import shared_page_state
7 7
8 8
9 class FlingGestureSupportedSharedState(shared_page_state.SharedPageState): 9 class DiagonalScrollingSupportedSharedState(shared_page_state.SharedPageState):
10 def CanRunOnBrowser(self, browser_info): 10 def CanRunOnBrowser(self, browser_info):
11 if not browser_info.HasFlingGestureSupport(): 11 if not browser_info.HasDiagonalScrollingSupport():
12 logging.warning('Browser does not support fling gestures, skipping test') 12 logging.warning('Browser does not support synthetic diagonal scrolling,'
13 ' skipping test')
13 return False 14 return False
14 return True 15 return True
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698