add titlebar config option tests
This commit is contained in:
parent
760368942a
commit
af4b373478
11
src/tests.c
11
src/tests.c
@ -631,7 +631,11 @@ static void test_wm_config(void **state)
|
|||||||
"focused_border_color #445566\n"
|
"focused_border_color #445566\n"
|
||||||
"border_width 1\n"
|
"border_width 1\n"
|
||||||
"keybind Windows+Alt+Shift+h focus left\n"
|
"keybind Windows+Alt+Shift+h focus left\n"
|
||||||
"focus_on_motion true\n";
|
"show_titlebar true\n"
|
||||||
|
"titlebar_color #001234\n"
|
||||||
|
"titlebar_focused_color #004321\n"
|
||||||
|
"titlebar_font monospace:size=17:antialias=true\n"
|
||||||
|
"titlebar_text_color #aabbcc\n";
|
||||||
|
|
||||||
char tmp[] = "/tmp/XXXXXX";
|
char tmp[] = "/tmp/XXXXXX";
|
||||||
mkstemp(tmp);
|
mkstemp(tmp);
|
||||||
@ -675,6 +679,11 @@ static void test_wm_config(void **state)
|
|||||||
|
|
||||||
assert_true(found_keybind);
|
assert_true(found_keybind);
|
||||||
assert_true(config.focus_on_motion);
|
assert_true(config.focus_on_motion);
|
||||||
|
assert_true(config.show_titlebar);
|
||||||
|
assert_string_equal(config.titlebar_color, "#001234");
|
||||||
|
assert_string_equal(config.titlebar_focused_color, "#004321");
|
||||||
|
assert_string_equal(config.titlebar_font, "monospace:size=17:antialias=true");
|
||||||
|
assert_string_equal(config.titlebar_text_color, "#aabbcc");
|
||||||
|
|
||||||
wm_configfile_free(&file);
|
wm_configfile_free(&file);
|
||||||
wm_keybinds_free(&config);
|
wm_keybinds_free(&config);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user