mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-22 17:08:53 +02:00
gio/tests: fix test_icon on win32
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
@@ -253,7 +253,9 @@ test_icon (void)
|
|||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
g_assert_true (g_strv_contains (names, "text-*"));
|
g_assert_true (g_strv_contains (names, "text-*"));
|
||||||
#else
|
#else
|
||||||
|
#ifndef G_OS_WIN32
|
||||||
g_assert_true (g_strv_contains (names, "text-plain"));
|
g_assert_true (g_strv_contains (names, "text-plain"));
|
||||||
|
#endif
|
||||||
g_assert_true (g_strv_contains (names, "text-x-generic"));
|
g_assert_true (g_strv_contains (names, "text-x-generic"));
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
@@ -268,9 +270,13 @@ test_icon (void)
|
|||||||
const gchar *const *names;
|
const gchar *const *names;
|
||||||
|
|
||||||
names = g_themed_icon_get_names (G_THEMED_ICON (icon));
|
names = g_themed_icon_get_names (G_THEMED_ICON (icon));
|
||||||
|
#ifdef G_OS_WIN32
|
||||||
|
g_assert_true (g_strv_contains (names, "text-x-generic"));
|
||||||
|
#else
|
||||||
g_assert_true (g_strv_contains (names, "application-rtf"));
|
g_assert_true (g_strv_contains (names, "application-rtf"));
|
||||||
#ifndef __APPLE__
|
#ifndef __APPLE__
|
||||||
g_assert_true (g_strv_contains (names, "x-office-document"));
|
g_assert_true (g_strv_contains (names, "x-office-document"));
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
g_object_unref (icon);
|
g_object_unref (icon);
|
||||||
|
Reference in New Issue
Block a user