[totem-pl-parser] tests: Add test for ignored MP2T file
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem-pl-parser] tests: Add test for ignored MP2T file
- Date: Fri, 15 Jun 2012 13:27:14 +0000 (UTC)
commit e3b8ffeaa706e40bdd939aeed9d39f5847fb33a4
Author: Bastien Nocera <hadess hadess net>
Date: Fri Jun 15 14:21:58 2012 +0100
tests: Add test for ignored MP2T file
https://bugzilla.gnome.org/show_bug.cgi?id=678163
plparse/tests/Makefile.am | 3 ++-
plparse/tests/dont-ignore-mp2t.ts | Bin 0 -> 131072 bytes
plparse/tests/parser.c | 12 ++++++++++++
3 files changed, 14 insertions(+), 1 deletions(-)
---
diff --git a/plparse/tests/Makefile.am b/plparse/tests/Makefile.am
index 2e76b33..fc3ab34 100644
--- a/plparse/tests/Makefile.am
+++ b/plparse/tests/Makefile.am
@@ -69,6 +69,7 @@ EXTRA_DIST = \
emptyplaylist.pls \
decrypted-amazon-track.xspf \
WMA9.1_98_quality_48khz_vbr_s.wma \
- rss.xml
+ rss.xml \
+ dont-ignore-mp2t.ts
-include $(top_srcdir)/git.mk
diff --git a/plparse/tests/dont-ignore-mp2t.ts b/plparse/tests/dont-ignore-mp2t.ts
new file mode 100644
index 0000000..8d45d15
Binary files /dev/null and b/plparse/tests/dont-ignore-mp2t.ts differ
diff --git a/plparse/tests/parser.c b/plparse/tests/parser.c
index 33537dc..e43737f 100644
--- a/plparse/tests/parser.c
+++ b/plparse/tests/parser.c
@@ -668,6 +668,17 @@ test_parsing_3gpp_not_ignored (void)
}
static void
+test_parsing_ts_not_ignored (void)
+{
+ char *uri;
+
+ uri = get_relative_uri (TEST_SRCDIR "dont-ignore-mp2t.ts");
+ g_test_bug ("678163");
+ g_assert (simple_parser_test (uri) == TOTEM_PL_PARSER_RESULT_UNHANDLED);
+ g_free (uri);
+}
+
+static void
test_parsing_mp4_is_flv (void)
{
char *uri;
@@ -1066,6 +1077,7 @@ main (int argc, char *argv[])
g_test_add_func ("/parser/parsing/broken_asx", test_parsing_broken_asx);
g_test_add_func ("/parser/parsing/404_error", test_parsing_404_error);
g_test_add_func ("/parser/parsing/3gpp_not_ignored", test_parsing_3gpp_not_ignored);
+ g_test_add_func ("/parser/parsing/parsing_ts_not_ignored", test_parsing_ts_not_ignored);
g_test_add_func ("/parser/parsing/mp4_is_flv", test_parsing_mp4_is_flv);
g_test_add_func ("/parser/parsing/out_of_order_asx", test_parsing_out_of_order_asx);
g_test_add_func ("/parser/parsing/xml_head_comments", test_parsing_xml_head_comments);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]