blob: 58664c80b6a189564ff4518d5dc61a98f9225f69 [file] [log] [blame]
# Copyright (c) 2014 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:
# Scroll d=407 x=407 y=0 r=22.33 s=3948
# Fling d=3969 x=3969 y=0 r=4.547e-13 s=4.936e+05
# FlingStop
def Validate(raw, events, gestures):
fuzzy = FuzzyCheck()
fuzzy.expected = [
FlingStopValidator(),
ScrollValidator(">= 100"),
FlingValidator(">= 100"),
]
fuzzy.unexpected = [
]
return fuzzy.Check(gestures)