[totem-pl-parser] Add test case for single line RTSPText files



commit 1dd2ca4bad26d6dc1e5944457e601dbf3845ec28
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Dec 4 13:26:47 2009 +0000

    Add test case for single line RTSPText files

 plparse/tests/parser.c        |   11 +++++++++--
 plparse/tests/single-line.qtl |    1 +
 2 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/plparse/tests/parser.c b/plparse/tests/parser.c
index bf37c5e..7a6e9fe 100644
--- a/plparse/tests/parser.c
+++ b/plparse/tests/parser.c
@@ -265,13 +265,19 @@ simple_parser_test (const char *uri)
 }
 
 static void
-test_parsing_rtsp_text (void)
+test_parsing_rtsp_text_multi (void)
 {
 	g_test_bug ("602127");
 	g_assert_cmpstr (parser_test_get_parse_result ("file://" TEST_FILE_DIR "602127.qtl"), ==, "rtsp://host.org/video.mp4");
 }
 
 static void
+test_parsing_rtsp_text (void)
+{
+	g_assert_cmpstr (parser_test_get_parse_result ("file://" TEST_FILE_DIR "single-line.qtl"), ==, "rtsp://host.org/video.mp4");
+}
+
+static void
 test_parsing_hadess (void)
 {
 	if (g_strcmp0 (g_get_user_name (), "hadess"))
@@ -480,7 +486,8 @@ main (int argc, char *argv[])
 		g_test_add_func ("/parser/parsing/404_error", test_parsing_404_error);
 		g_test_add_func ("/parser/parsing/xml_head_comments", test_parsing_xml_head_comments);
 		g_test_add_func ("/parser/parsing/xml_comment_whitespace", test_parsing_xml_comment_whitespace);
-		g_test_add_func ("/parser/parsing/multi_line_rtsptext", test_parsing_rtsp_text);
+		g_test_add_func ("/parser/parsing/multi_line_rtsptext", test_parsing_rtsp_text_multi);
+		g_test_add_func ("/parser/parsing/single_line_rtsptext", test_parsing_rtsp_text);
 
 		return g_test_run ();
 	}
diff --git a/plparse/tests/single-line.qtl b/plparse/tests/single-line.qtl
new file mode 100644
index 0000000..da857dd
--- /dev/null
+++ b/plparse/tests/single-line.qtl
@@ -0,0 +1 @@
+RTSPtext rtsp://host.org/video.mp4



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