mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-01-04 17:50:15 +01:00
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 <peter.hutterer@who-t.net>
This commit is contained in:
parent
df2759706f
commit
5cda7dfa1b
1 changed files with 5 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue