[totem-pl-parser] tests: Add test for out-of-order XSPF signals
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem-pl-parser] tests: Add test for out-of-order XSPF signals
- Date: Wed, 20 Mar 2013 11:12:38 +0000 (UTC)
commit 71d2e347034edbed2ffa587dd115e17ae371ed4f
Author: Bastien Nocera <hadess hadess net>
Date: Tue Mar 19 21:59:42 2013 +0100
tests: Add test for out-of-order XSPF signals
plparse/tests/new-lastfm-output.xspf | 2 +-
plparse/tests/parser.c | 13 +++++++++++++
2 files changed, 14 insertions(+), 1 deletions(-)
---
diff --git a/plparse/tests/new-lastfm-output.xspf b/plparse/tests/new-lastfm-output.xspf
index 36539d7..3d41188 100644
--- a/plparse/tests/new-lastfm-output.xspf
+++ b/plparse/tests/new-lastfm-output.xspf
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<playlist version="1" xmlns="http://xspf.org/ns/0/">
-<title>Free Download Tag Radio</title>
<creator>Last.fm</creator>
<date>2010-08-02T13:02:22</date>
<link rel="http://www.last.fm/expiry">3600</link>
@@ -34,4 +33,5 @@
</extension>
</track>
</trackList>
+<title>Free Download Tag Radio</title>
</playlist>
diff --git a/plparse/tests/parser.c b/plparse/tests/parser.c
index d357658..34ac27a 100644
--- a/plparse/tests/parser.c
+++ b/plparse/tests/parser.c
@@ -732,6 +732,18 @@ test_parsing_out_of_order_asx (void)
}
static void
+test_parsing_out_of_order_xspf (void)
+{
+ char *uri;
+ gboolean result;
+
+ uri = get_relative_uri (TEST_SRCDIR "new-lastfm-output.xspf");
+ result = parser_test_get_order_result (uri);
+ g_free (uri);
+ g_assert (result != FALSE);
+}
+
+static void
test_parsing_num_entries (void)
{
char *uri;
@@ -1197,6 +1209,7 @@ main (int argc, char *argv[])
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/out_of_order_xspf", test_parsing_out_of_order_xspf);
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_multi);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]