blob: fa94370a1227a282d35c69453467c1d3c5efaa1e [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=2158 x=0 y=2158 r=43.63
# Fling d=31493 x=0 y=31493 r=0.00
def Validate(raw, events, gestures):
fuzzy = FuzzyCheck()
fuzzy.expected = [
ScrollValidator(">= 1750.0 ~ 416.7"),
FlingValidator(),
]
fuzzy.unexpected = [
]
return fuzzy.Check(gestures)