blob: aea7a8428e0a7e14bf8e290269c4a59989a0001f [file] [edit]
# 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 __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from fuzzy_check import FuzzyCheck
from validators import *
# originally generated gestures:
# Motion d=525 x=365 y=270 r=3.48
# FlingStop
# FlingStop
# ButtonDown(1)
# ButtonUp(1)
def Validate(raw, events, gestures):
fuzzy = FuzzyCheck()
fuzzy.expected = [
MotionValidator("> 400 ~ 50"),
# The important thing is that the click doesn't happen
]
fuzzy.unexpected = [
FlingStopValidator("<10"),
]
return fuzzy.Check(gestures)
# We don't support this behavior. Too many people click after moving.
Validate.disabled = True;