blob: 3ad839381963f6aa300e1f2fbce863f05437f94d [file] [log] [blame]
# Copyright (c) 2013 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:
# FlingStop
# Motion d=413.8 x=343.6 y=168.5 r=0.9151
def Validate(raw, events, gestures):
fuzzy = FuzzyCheck()
fuzzy.expected = [
MotionValidator(),
MotionValidator("<= 3 ~ 3"),
MotionValidator("== 0 ~ 8", merge=True, integralPixels=True)
]
fuzzy.unexpected = [
FlingStopValidator("<10"),
]
return fuzzy.Check(gestures)