blob: eb1fcb73b4e800f5364a04e9a9d7a9643283c92b [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:
# Scroll d=1520 x=0 y=1520 r=21.62
# Fling d=15299 x=0 y=15299 r=0.00
def Validate(raw, events, gestures):
fuzzy = FuzzyCheck()
fuzzy.expected = [
FlingStopValidator(),
ScrollValidator(">= 1250.0 ~ 416.7"),
FlingValidator(),
]
fuzzy.unexpected = [
]
return fuzzy.Check(gestures)