[PATCH libinput 3/3] test-pointer: Test that the default accel profile doesn't change

Jonas Ådahl jadahl at gmail.com
Fri Apr 8 07:51:28 UTC 2016


Make sure that changing the accel profile doesn't affect the default
accel profile.

Signed-off-by: Jonas Ådahl <jadahl at gmail.com>
---
 test/pointer.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/test/pointer.c b/test/pointer.c
index 32e3fd2..a34740a 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);
-- 
2.4.3



More information about the wayland-devel mailing list