From: Matthias Clasen Date: Mon, 5 Jul 2010 03:42:07 +0000 (-0400) Subject: Add some more tests X-Git-Tag: 2.25.11~92 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f90eb144d404c76180ba7facf32b4c9751aed4b5;p=platform%2Fupstream%2Fglib.git Add some more tests --- diff --git a/gio/tests/contenttype.c b/gio/tests/contenttype.c index 5c015a2..1ae6b18 100644 --- a/gio/tests/contenttype.c +++ b/gio/tests/contenttype.c @@ -96,6 +96,20 @@ test_executable (void) g_free (type); } +static void +test_description (void) +{ + gchar *type; + gchar *desc; + + type = g_content_type_from_mime_type ("text/plain"); + desc = g_content_type_get_description (type); + g_assert (desc != NULL); + + g_free (desc); + g_free (type); +} + int main (int argc, char *argv[]) { @@ -108,6 +122,7 @@ main (int argc, char *argv[]) g_test_add_func ("/contenttype/subtype", test_subtype); g_test_add_func ("/contenttype/list", test_list); g_test_add_func ("/contenttype/executable", test_executable); + g_test_add_func ("/contenttype/description", test_description); return g_test_run (); }