blob: 9ff210f84c2eca3e34b7e78bb53537d57cb9ff4b [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 *
# Two fingers moving with a third stationary finger should result in a scroll
# gesture
def Validate(raw, events, gestures):
fuzzy = FuzzyCheck()
fuzzy.expected = [
FlingStopValidator(),
ScrollValidator(),
FlingValidator(),
]
fuzzy.unexpected = [
]
return fuzzy.Check(gestures)