| OLD | NEW |
| (Empty) |
| 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 | |
| 3 # found in the LICENSE file. | |
| 4 import logging | |
| 5 | |
| 6 from telemetry.page import shared_page_state | |
| 7 | |
| 8 | |
| 9 class DiagonalScrollingSupportedSharedState( | |
| 10 shared_page_state.SharedDesktopPageState): | |
| 11 def CanRunOnBrowser(self, browser_info, _): | |
| 12 if not browser_info.HasDiagonalScrollingSupport(): | |
| 13 logging.warning('Browser does not support synthetic diagonal scrolling,' | |
| 14 ' skipping test') | |
| 15 return False | |
| 16 return True | |
| OLD | NEW |