summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2017-08-17 19:04:01 +0200
committerDave Davenport <qball@gmpclient.org>2017-08-17 19:04:01 +0200
commit686be5856ce421edf79d147abd52954f7d0cb634 (patch)
tree60ec94dbe1488630e77557e6d152bfe0f1c4c992 /test
parentfb8f56dab3f8d2d1eaa54e33b1c4873af5473983 (diff)
Move PropertyType into rofi-types header and add check for names pairs.
Diffstat (limited to 'test')
-rw-r--r--test/theme-parser-test.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/theme-parser-test.c b/test/theme-parser-test.c
index b14b358a..cd9e6ca6 100644
--- a/test/theme-parser-test.c
+++ b/test/theme-parser-test.c
@@ -1233,6 +1233,25 @@ START_TEST ( test_prepare_path )
g_free ( current_dir );
}
END_TEST
+
+
+START_TEST(test_properties_types_names)
+{
+ ck_assert_str_eq ( PropertyTypeName[P_INTEGER], "Integer");
+ ck_assert_str_eq ( PropertyTypeName[P_DOUBLE], "Double");
+ ck_assert_str_eq ( PropertyTypeName[P_STRING], "String");
+ ck_assert_str_eq ( PropertyTypeName[P_BOOLEAN], "Boolean");
+ ck_assert_str_eq ( PropertyTypeName[P_COLOR], "Color");
+ ck_assert_str_eq ( PropertyTypeName[P_PADDING], "Padding");
+ ck_assert_str_eq ( PropertyTypeName[P_LINK], "Reference");
+ ck_assert_str_eq ( PropertyTypeName[P_POSITION], "Position");
+ ck_assert_str_eq ( PropertyTypeName[P_HIGHLIGHT], "Highlight");
+ ck_assert_str_eq ( PropertyTypeName[P_LIST], "List");
+ ck_assert_str_eq ( PropertyTypeName[P_ORIENTATION], "Orientation");
+
+}
+END_TEST
+
static Suite * theme_parser_suite (void)
{
Suite *s;
@@ -1244,6 +1263,7 @@ static Suite * theme_parser_suite (void)
{
tc_core = tcase_create("Core");
tcase_add_checked_fixture(tc_core, theme_parser_setup, theme_parser_teardown);
+ tcase_add_test(tc_core, test_properties_types_names);
tcase_add_test(tc_core, test_core_empty_string);
tcase_add_test(tc_core, test_core_empty_global_section);
tcase_add_test(tc_core, test_core_empty_section);