summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJonas Ådahl <jadahl@gmail.com>2016-04-08 15:51:28 +0800
committerPeter Hutterer <peter.hutterer@who-t.net>2016-04-11 07:53:45 +1000
commitc830f51b2e1e4fa37d9ec3849d2807c139ebef05 (patch)
tree1a473cf7df92a482abffaef44a188408df5144c3 /test
parentee6501d12f773d7b4a67a23463b91a3ce741b6a7 (diff)
test-pointer: Test that the default accel profile doesn't change
Make sure that changing the accel profile doesn't affect the default accel profile. Signed-off-by: Jonas Ådahl <jadahl@gmail.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'test')
-rw-r--r--test/pointer.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/pointer.c b/test/pointer.c
index 32e3fd2e..a34740a2 100644
--- a/test/pointer.c
+++ b/test/pointer.c
@@ -1079,6 +1079,9 @@ START_TEST(pointer_accel_profile_defaults)
profile = libinput_device_config_accel_get_profile(device);
ck_assert_int_eq(profile, LIBINPUT_CONFIG_ACCEL_PROFILE_FLAT);
+ profile = libinput_device_config_accel_get_default_profile(device);
+ ck_assert_int_eq(profile, LIBINPUT_CONFIG_ACCEL_PROFILE_ADAPTIVE);
+
status = libinput_device_config_accel_set_profile(device,
LIBINPUT_CONFIG_ACCEL_PROFILE_ADAPTIVE);
ck_assert_int_eq(status, LIBINPUT_CONFIG_STATUS_SUCCESS);