blob: d58059cbfc11285a9e8a3d0d1802e943e1b205b4 [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:
# Motion d=1394 x=1250 y=484 r=1.81
# FlingStop
# ButtonDown(1)
# ButtonUp(1)
# FlingStop
def Validate(raw, events, gestures):
fuzzy = FuzzyCheck()
fuzzy.expected = [
# The important thing is that the tap occurs. We don't test the motion here.
ButtonDownValidator(1),
ButtonUpValidator(1),
]
fuzzy.unexpected = [
MotionValidator(),
FlingStopValidator("<10"),
]
return fuzzy.Check(gestures)