[glib] Add test-case for g_content_type_is_mime_type()



commit ecc27a0cbaaa0ec87e0ac362d2ada17dab519a42
Author: Daniel Macks <dmacks netspace org>
Date:   Mon Apr 24 01:40:51 2017 -0400

    Add test-case for g_content_type_is_mime_type()
    
    Verify presence of new interface.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=734946

 gio/tests/contenttype.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gio/tests/contenttype.c b/gio/tests/contenttype.c
index 407186b..4b4be46 100644
--- a/gio/tests/contenttype.c
+++ b/gio/tests/contenttype.c
@@ -144,6 +144,7 @@ test_subtype (void)
   xml = g_content_type_from_mime_type ("application/xml");
 
   g_assert (g_content_type_is_a (xml, plain));
+  g_assert (g_content_type_is_mime_type (xml, plain));
 
   g_free (plain);
   g_free (xml);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]