Fix tests - add missing FlingValdiator()
BUG=chromium-os:33866
TEST=pass the regression test with the command
(chroot) touchtests run all
Change-Id: I40637d84feb041b579861dd8e5bed1e1adc399d7
Reviewed-on: https://gerrit.chromium.org/gerrit/33476
Reviewed-by: Joseph Shyh-In Hwang <josephsih@chromium.org>
Commit-Ready: Chung-yih Wang <cywang@chromium.org>
Reviewed-by: Chung-yih Wang <cywang@chromium.org>
Tested-by: Chung-yih Wang <cywang@chromium.org>
diff --git a/tests/link/base_scroll_up.py b/tests/link/base_scroll_up.py
index 25db588..d456f65 100644
--- a/tests/link/base_scroll_up.py
+++ b/tests/link/base_scroll_up.py
@@ -13,6 +13,7 @@
fuzzy = FuzzyCheck()
fuzzy.expected = [
ScrollValidator("== 234 ~ 100"),
+ FlingValidator(),
]
fuzzy.unexpected = [
MotionValidator("== 0 ~ 40"),
diff --git a/tests/link/base_scroll_up_regardless_prior_state.py b/tests/link/base_scroll_up_regardless_prior_state.py
index c5fd42f..7a7b52a 100644
--- a/tests/link/base_scroll_up_regardless_prior_state.py
+++ b/tests/link/base_scroll_up_regardless_prior_state.py
@@ -13,10 +13,11 @@
def Validate(raw, events, gestures):
fuzzy = FuzzyCheck()
fuzzy.expected = [
+ MotionValidator("== 2331 ~ 1000"),
ScrollValidator("== 156 ~ 100"),
+ FlingValidator(),
]
fuzzy.unexpected = [
- MotionValidator("== 2331 ~ 1000"),
FlingStopValidator("<10"),
]
return fuzzy.Check(gestures)