[glib: 9/12] tests/contenttype: icon name text/plain doesn't have text-x-generic on win32
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 9/12] tests/contenttype: icon name text/plain doesn't have text-x-generic on win32
- Date: Mon, 17 Oct 2022 09:53:47 +0000 (UTC)
commit 30e7a00017d0e21c033f5dc0da0da48b033b105f
Author: Marc-André Lureau <marcandre lureau redhat com>
Date: Fri Oct 14 17:09:55 2022 +0400
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>
gio/tests/contenttype.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gio/tests/contenttype.c b/gio/tests/contenttype.c
index 6cfd366ff8..7fd97f4530 100644
--- a/gio/tests/contenttype.c
+++ b/gio/tests/contenttype.c
@@ -252,10 +252,10 @@ test_icon (void)
names = g_themed_icon_get_names (G_THEMED_ICON (icon));
#ifdef __APPLE__
g_assert_true (g_strv_contains (names, "text-*"));
+#elif defined(G_OS_WIN32)
+ g_assert_cmpuint (g_strv_length ((GStrv) names), >, 0);
#else
-#ifndef G_OS_WIN32
g_assert_true (g_strv_contains (names, "text-plain"));
-#endif
g_assert_true (g_strv_contains (names, "text-x-generic"));
#endif
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]