aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorCismonX <admin@cismon.net>2023-07-04 16:19:21 +0000
committerDaniel Eklöf <daniel@ekloef.se>2023-07-05 14:22:28 +0000
commitd2fcb5343f57c132abec9a21ad89d1505a32c47c (patch)
tree2580765e5cb9d5c7470488c4f32acc50f09c3855 /tests
parentchangelog: fractional-scaling-v1 -> fractional-scale-v1 (diff)
input: add basic support for touchscreen input
Closes #517
Diffstat (limited to 'tests')
-rw-r--r--tests/test-config.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/test-config.c b/tests/test-config.c
index c70f7a43..e59c104e 100644
--- a/tests/test-config.c
+++ b/tests/test-config.c
@@ -663,6 +663,21 @@ test_section_mouse(void)
}
static void
+test_section_touch(void)
+{
+ struct config conf = {0};
+ struct context ctx = {
+ .conf = &conf, .section = "touch", .path = "unittest"};
+
+ test_invalid_key(&ctx, &parse_section_touch, "invalid-key");
+
+ test_uint32(&ctx, &parse_section_touch, "long-press-delay",
+ &conf.touch.long_press_delay);
+
+ config_free(&conf);
+}
+
+static void
test_section_colors(void)
{
struct config conf = {0};
@@ -1347,6 +1362,7 @@ main(int argc, const char *const *argv)
test_section_url();
test_section_cursor();
test_section_mouse();
+ test_section_touch();
test_section_colors();
test_section_csd();
test_section_key_bindings();