diff options
author | Bastien Nocera <hadess@hadess.net> | 2021-01-28 15:10:29 +0100 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2021-01-28 15:29:42 +0100 |
commit | 46056d2c8a6d537f5d50cbf2aefa4acb9e912d37 (patch) | |
tree | 703bc9618d683abbef26fd6630926d10041e3ba6 | |
parent | 9235a10f15a0cb530605051a6e4eb28dcd41a35b (diff) | |
download | totem-pl-parser-46056d2c8a6d537f5d50cbf2aefa4acb9e912d37.tar.gz |
tests: Detect missing shared-mime-info
-rw-r--r-- | plparse/tests/parser.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/plparse/tests/parser.c b/plparse/tests/parser.c index 64109ad..c85085d 100644 --- a/plparse/tests/parser.c +++ b/plparse/tests/parser.c @@ -97,6 +97,12 @@ test_resolution (void) return; } + if (g_strcmp0 (g_content_type_guess ("foo.html", NULL, 0, NULL), "text/html") != 0) { + g_test_message ("“foo.html” isn't detected as text/html, is shared-mime-info installed?"); + g_test_fail (); + return; + } + /* http://bugzilla.gnome.org/show_bug.cgi?id=555417 */ g_assert_cmpstr (test_resolution_real ("http://www.yle.fi/player/player.jsp", "288629.asx?s=1000"), ==, "http://www.yle.fi/player/288629.asx?s=1000"); g_assert_cmpstr (test_resolution_real ("http://www.yle.fi/player/player.jsp?actionpage=3&id=288629&locale", "288629.asx?s=1000"), ==, "http://www.yle.fi/player/288629.asx?s=1000"); |