[totem-pl-parser] tests: Add test case for compressed content-type streams
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem-pl-parser] tests: Add test case for compressed content-type streams
- Date: Fri, 18 Nov 2011 13:00:22 +0000 (UTC)
commit 6c49d91b6b6f5fe85993129bd091765d7d5a1b7b
Author: Bastien Nocera <hadess hadess net>
Date: Fri Nov 18 12:57:53 2011 +0000
tests: Add test case for compressed content-type streams
See http://thread.gmane.org/gmane.comp.gnome.apps.rhythmbox.devel/11887
and https://bugzilla.gnome.org/show_bug.cgi?id=664200
plparse/tests/parser.c | 17 ++++++++++++++++-
1 files changed, 16 insertions(+), 1 deletions(-)
---
diff --git a/plparse/tests/parser.c b/plparse/tests/parser.c
index 7f982e0..54f5b84 100644
--- a/plparse/tests/parser.c
+++ b/plparse/tests/parser.c
@@ -599,7 +599,21 @@ test_xml_is_text_plain (void)
g_test_bug ("655378");
result = simple_parser_test ("http://leoville.tv/podcasts/floss.xml");
- g_message ("result %d", result);
+ g_assert (result == TOTEM_PL_PARSER_RESULT_SUCCESS);
+}
+
+static void
+test_compressed_content_encoding (void)
+{
+ TotemPlParserResult result;
+
+ if (http_supported == FALSE)
+ g_test_message ("HTTP support required to test compressed content-encoding");
+
+ /* Requires:
+ * http://git.gnome.org/browse/gvfs/commit/?id=6929e9f9661b4d1e68f8912d8e60107366255a47
+ * http://thread.gmane.org/gmane.comp.gnome.apps.rhythmbox.devel/11887 */
+ result = simple_parser_test ("http://escapepod.org/podcast.xml");
g_assert (result == TOTEM_PL_PARSER_RESULT_SUCCESS);
}
@@ -1016,6 +1030,7 @@ main (int argc, char *argv[])
g_test_add_func ("/parser/parsability", test_parsability);
g_test_add_func ("/parser/videosite", test_videosite);
g_test_add_func ("/parser/xml_is_text_plain", test_xml_is_text_plain);
+ g_test_add_func ("/parser/compressed_content_encoding", test_compressed_content_encoding);
g_test_add_func ("/parser/parsing/hadess", test_parsing_hadess);
g_test_add_func ("/parser/parsing/nonexistent_files", test_parsing_nonexistent_files);
g_test_add_func ("/parser/parsing/broken_asx", test_parsing_broken_asx);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]