aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2022-12-15 10:10:32 +0000
committerDaniel Eklöf <daniel@ekloef.se>2022-12-17 09:59:17 +0000
commitf6ca8c90e11d9b1ecdfe8a5bf69b1b793376a91c (patch)
treec8a6e83c143f6d973b9cdc4c3498901089ba263b /tests
parentmain: Graceful fallback if user has configured an invalid locale (diff)
config: add ‘font-size-adjustment=N[px|%]’ option
This patch adds a new config option, font-size-adjustment. It lets you configure how much the font size should be incremented/decremented when zooming in or out (ctrl-+, ctrl+-). Values can be specified in points, pixels or percent. Closes #1188
Diffstat (limited to 'tests')
-rw-r--r--tests/test-config.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/test-config.c b/tests/test-config.c
index ae7969dc..4f8b0c3b 100644
--- a/tests/test-config.c
+++ b/tests/test-config.c
@@ -467,6 +467,7 @@ test_section_main(void)
test_boolean(&ctx, &parse_section_main, "locked-title", &conf.locked_title);
test_boolean(&ctx, &parse_section_main, "notify-focus-inhibit", &conf.notify_focus_inhibit);
+ test_pt_or_px(&ctx, &parse_section_main, "font-size-adjustment", &conf.font_size_adjustment.pt_or_px); /* TODO: test ‘N%’ values too */
test_pt_or_px(&ctx, &parse_section_main, "line-height", &conf.line_height);
test_pt_or_px(&ctx, &parse_section_main, "letter-spacing", &conf.letter_spacing);
test_pt_or_px(&ctx, &parse_section_main, "horizontal-letter-offset", &conf.horizontal_letter_offset);