[PATCH libinput v2 08/11] test: s/test_2fg_scroll/test_trackpoint_scroll/
Hans de Goede
hdegoede at redhat.com
Mon Nov 10 02:59:19 PST 2014
Fix copy and paste error, causing the function to test trackpoint scrolling
to be named test_2fg_scroll.
Signed-off-by: Hans de Goede <hdegoede at redhat.com>
---
test/trackpoint.c | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/test/trackpoint.c b/test/trackpoint.c
index d4dfe41..eb9ddfb 100644
--- a/test/trackpoint.c
+++ b/test/trackpoint.c
@@ -50,7 +50,7 @@ START_TEST(trackpoint_middlebutton)
END_TEST
static void
-test_2fg_scroll(struct litest_device *dev, double dx, double dy)
+test_trackpoint_scroll(struct litest_device *dev, double dx, double dy)
{
struct libinput *li = dev->libinput;
@@ -76,19 +76,19 @@ START_TEST(trackpoint_scroll)
litest_drain_events(li);
- test_2fg_scroll(dev, 1, 6);
+ test_trackpoint_scroll(dev, 1, 6);
litest_assert_scroll(li, LIBINPUT_POINTER_AXIS_SCROLL_VERTICAL, 6);
- test_2fg_scroll(dev, 1, -7);
+ test_trackpoint_scroll(dev, 1, -7);
litest_assert_scroll(li, LIBINPUT_POINTER_AXIS_SCROLL_VERTICAL, -7);
- test_2fg_scroll(dev, 8, 1);
+ test_trackpoint_scroll(dev, 8, 1);
litest_assert_scroll(li, LIBINPUT_POINTER_AXIS_SCROLL_HORIZONTAL, 8);
- test_2fg_scroll(dev, -9, 1);
+ test_trackpoint_scroll(dev, -9, 1);
litest_assert_scroll(li, LIBINPUT_POINTER_AXIS_SCROLL_HORIZONTAL, -9);
/* scroll smaller than the threshold should not generate events */
- test_2fg_scroll(dev, 1, 1);
+ test_trackpoint_scroll(dev, 1, 1);
/* long middle press without movement should not generate events */
- test_2fg_scroll(dev, 0, 0);
+ test_trackpoint_scroll(dev, 0, 0);
litest_assert_empty_queue(li);
}
--
2.1.0
More information about the wayland-devel
mailing list