tests: Test feedback theme name

This commit is contained in:
Guido Günther
2022-12-08 10:05:47 +01:00
parent 3c124e8ecd
commit 96b6af3766
+5
View File
@@ -97,10 +97,15 @@ test_fbd_feedback_theme_parse (void)
g_autoptr (GError) err = NULL; g_autoptr (GError) err = NULL;
g_autoptr (FbdFeedbackTheme) theme = NULL; g_autoptr (FbdFeedbackTheme) theme = NULL;
FbdFeedbackProfile *profile; FbdFeedbackProfile *profile;
const char *name;
theme = fbd_feedback_theme_new_from_data (json, &err); theme = fbd_feedback_theme_new_from_data (json, &err);
g_assert_no_error (err); g_assert_no_error (err);
g_assert_nonnull (theme); g_assert_nonnull (theme);
name = fbd_feedback_theme_get_name (theme);
g_assert_cmpstr ("test", ==, name);
profile = fbd_feedback_theme_get_profile (theme, "full"); profile = fbd_feedback_theme_get_profile (theme, "full");
g_assert_true (FBD_IS_FEEDBACK_PROFILE(profile)); g_assert_true (FBD_IS_FEEDBACK_PROFILE(profile));
g_assert_cmpstr ("full", ==, g_assert_cmpstr ("full", ==,