[lasem/lasem-0-2] test: fix mathml mime type detection.



commit e4aeaa54930183160dd38961ac26b50a3b76d4ee
Author: Emmanuel Pacaud <emmanuel gnome org>
Date:   Wed Apr 21 10:49:42 2010 +0200

    test: fix mathml mime type detection.
    
    It looks like the mime type for mml files has changed.

 src/lasemtest.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/lasemtest.c b/src/lasemtest.c
index fac36e1..bc74842 100644
--- a/src/lasemtest.c
+++ b/src/lasemtest.c
@@ -106,7 +106,7 @@ lasem_test_render (char const *filename)
 	mime = g_content_type_guess (filename, NULL, 0, NULL);
 
 	is_svg = strcmp (mime, "image/svg+xml") == 0;
-	is_mathml = strcmp (mime, "text/mathml") == 0;
+	is_mathml = (strcmp (mime, "text/mathml") == 0) || (strcmp (mime, "application/mathml+xml") == 0);
 	is_xml = is_svg || is_mathml;
 
 	g_printf ("\trender %s (%s)\n", filename, mime);



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