blob: 50498874652e4b59c55204c4c243be7a8edcfb50 [file] [log] [blame]
# Copyright 2017 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 *
# Four fingers moving with a fifth stationary finger should result in a four
# finger swipe gesture only
def Validate(raw, events, gestures):
fuzzy = FuzzyCheck()
fuzzy.expected = [
FourFingerSwipeValidator(),
FourFingerSwipeValidator(),
FourFingerSwipeValidator(),
FourFingerSwipeValidator(),
]
fuzzy.unexpected = [
FlingStopValidator("<10"),
FourFingerSwipeLiftValidator("== 4"),
]
return fuzzy.Check(gestures)