mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-29 02:50:04 +01:00
tests/contenttype: icon name text/plain doesn't have text-x-generic on win32
The g_content_type_get_icon() function for win32 can lookup the DefaultIcon associated with .txt and return a different result. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
parent
99847d36ed
commit
30e7a00017
@ -252,10 +252,10 @@ test_icon (void)
|
|||||||
names = g_themed_icon_get_names (G_THEMED_ICON (icon));
|
names = g_themed_icon_get_names (G_THEMED_ICON (icon));
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
g_assert_true (g_strv_contains (names, "text-*"));
|
g_assert_true (g_strv_contains (names, "text-*"));
|
||||||
|
#elif defined(G_OS_WIN32)
|
||||||
|
g_assert_cmpuint (g_strv_length ((GStrv) names), >, 0);
|
||||||
#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
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user