blob: 58c3b11f3fe90374240abfaf8bd4d7345281870d [file] [log] [blame]
# Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from fuzzy_check import FuzzyCheck
from validators import *
# originally generated gestures:
# Scroll d=2158 x=0 y=2158 r=43.63
# Fling d=31493 x=0 y=31493 r=0.00
def Validate(raw, events, gestures):
fuzzy = FuzzyCheck()
fuzzy.expected = [
FlingStopValidator(),
ScrollValidator(">= 1750.0 ~ 416.7"),
FlingValidator(),
]
fuzzy.unexpected = [
]
return fuzzy.Check(gestures)