mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
Improve coverage of icon tests
This commit is contained in:
parent
7710c50fb2
commit
17d4898d75
@ -239,9 +239,13 @@ test_themed_icon (void)
|
|||||||
const gchar *const *names;
|
const gchar *const *names;
|
||||||
const gchar *names2[] = { "first", "testicon", "last", NULL };
|
const gchar *names2[] = { "first", "testicon", "last", NULL };
|
||||||
gchar *str;
|
gchar *str;
|
||||||
|
gboolean fallbacks;
|
||||||
|
|
||||||
icon1 = g_themed_icon_new ("testicon");
|
icon1 = g_themed_icon_new ("testicon");
|
||||||
|
|
||||||
|
g_object_get (icon1, "use-default-fallbacks", &fallbacks, NULL);
|
||||||
|
g_assert (!fallbacks);
|
||||||
|
|
||||||
names = g_themed_icon_get_names (G_THEMED_ICON (icon1));
|
names = g_themed_icon_get_names (G_THEMED_ICON (icon1));
|
||||||
g_assert_cmpint (g_strv_length ((gchar **)names), ==, 1);
|
g_assert_cmpint (g_strv_length ((gchar **)names), ==, 1);
|
||||||
g_assert_cmpstr (names[0], ==, "testicon");
|
g_assert_cmpstr (names[0], ==, "testicon");
|
||||||
|
Loading…
Reference in New Issue
Block a user