From: Peter Hutterer Date: Thu, 10 Sep 2020 23:31:20 +0000 (+1000) Subject: test: move the x/y coords a bit when testing tool type switches X-Git-Tag: 1.16.901~75 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5cda7dfa1baf5dfe9b11cdb96cc0aff0e15e5862;p=platform%2Fupstream%2Flibinput.git test: move the x/y coords a bit when testing tool type switches More realistic, there's no way you can get the x/y coordinates exactly the same when moving the pen back into prox. Signed-off-by: Peter Hutterer --- diff --git a/test/test-tablet.c b/test/test-tablet.c index d0b728ec..7feeb22c 100644 --- a/test/test-tablet.c +++ b/test/test-tablet.c @@ -2807,6 +2807,7 @@ START_TEST(tool_type) { -1, -1 } }; struct tool_type_match *tt; + double x = 50, y = 50; litest_drain_events(li); @@ -2821,7 +2822,7 @@ START_TEST(tool_type) continue; litest_tablet_set_tool_type(dev, tt->code); - litest_tablet_proximity_in(dev, 50, 50, axes); + litest_tablet_proximity_in(dev, x, y, axes); libinput_dispatch(li); event = libinput_get_event(li); @@ -2837,6 +2838,9 @@ START_TEST(tool_type) litest_tablet_proximity_out(dev); litest_drain_events(li); + + x++; + y++; } } END_TEST