blob: 8651a76b6001b1af2ba0ff6e2ad69b10a8d2eea6 [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=1251 x=722 y=802 r=2.96
# 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)