mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-15 05:33:58 -04:00
parent
4a73828911
commit
d2fcb5343f
12 changed files with 364 additions and 22 deletions
|
|
@ -662,6 +662,21 @@ test_section_mouse(void)
|
|||
config_free(&conf);
|
||||
}
|
||||
|
||||
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)
|
||||
{
|
||||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue