blob: 900e61ca91c0a4a96603cf0af8c944a0d0f83e1d [file] [edit]
# 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 __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from fuzzy_check import FuzzyCheck
from validators import *
# originally generated gestures:
# Scroll d=2746 x=9 y=2737 r=41.96
# Fling d=24440 x=0 y=24440 r=0.00
def Validate(raw, events, gestures):
fuzzy = FuzzyCheck()
fuzzy.expected = [
ScrollValidator("== 2288.3 ~ 1666.7"),
FlingValidator("== 20366.7 ~ 8333.3"),
]
fuzzy.unexpected = [
FlingStopValidator("<10"),
]
return fuzzy.Check(gestures)