[xiph-commits] r12490 - in trunk/xspf/testcase: . for_version_0
for_version_0/fail for_version_1/fail for_version_1/pass
dllmain at svn.xiph.org
dllmain at svn.xiph.org
Sat Feb 17 10:39:37 PST 2007
Author: dllmain
Date: 2007-02-17 10:39:31 -0800 (Sat, 17 Feb 2007)
New Revision: 12490
Added:
trunk/xspf/testcase/for_version_0/
trunk/xspf/testcase/for_version_0/fail/
trunk/xspf/testcase/for_version_0/fail/playlist-extension-forbidden.xspf
trunk/xspf/testcase/for_version_0/fail/track-extension-forbidden.xspf
trunk/xspf/testcase/for_version_0/fail/tracklist-no-tracks.xspf
trunk/xspf/testcase/for_version_0/pass/
trunk/xspf/testcase/for_version_1/fail/playlist-attribute-forbidden-annotation.xspf
trunk/xspf/testcase/for_version_1/fail/playlist-element-forbidden-attribution.xspf
trunk/xspf/testcase/for_version_1/fail/playlist-root-name.xspf
trunk/xspf/testcase/for_version_1/fail/xml-error.xspf
trunk/xspf/testcase/for_version_1/pass/playlist-extension.xspf
trunk/xspf/testcase/for_version_1/pass/track-extension.xspf
Log:
9 more testcases from libSpiff
Added: trunk/xspf/testcase/for_version_0/fail/playlist-extension-forbidden.xspf
===================================================================
--- trunk/xspf/testcase/for_version_0/fail/playlist-extension-forbidden.xspf 2007-02-17 18:34:48 UTC (rev 12489)
+++ trunk/xspf/testcase/for_version_0/fail/playlist-extension-forbidden.xspf 2007-02-17 18:39:31 UTC (rev 12490)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="utf-8"?>
+<playlist version="0" xmlns="http://xspf.org/ns/0/">
+ <extension application="http://localhost/valid/url/">
+ <sometag />
+ </extension>
+ <trackList />
+</playlist>
Added: trunk/xspf/testcase/for_version_0/fail/track-extension-forbidden.xspf
===================================================================
--- trunk/xspf/testcase/for_version_0/fail/track-extension-forbidden.xspf 2007-02-17 18:34:48 UTC (rev 12489)
+++ trunk/xspf/testcase/for_version_0/fail/track-extension-forbidden.xspf 2007-02-17 18:39:31 UTC (rev 12490)
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="utf-8"?>
+<playlist version="0" xmlns="http://xspf.org/ns/0/">
+ <trackList>
+ <track>
+ <extension application="http://localhost/valid/url/">
+ <sometag />
+ </extension>
+ <track>
+ <trackList>
+</playlist>
Added: trunk/xspf/testcase/for_version_0/fail/tracklist-no-tracks.xspf
===================================================================
--- trunk/xspf/testcase/for_version_0/fail/tracklist-no-tracks.xspf 2007-02-17 18:34:48 UTC (rev 12489)
+++ trunk/xspf/testcase/for_version_0/fail/tracklist-no-tracks.xspf 2007-02-17 18:39:31 UTC (rev 12490)
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="utf-8"?>
+<playlist version="0" xmlns="http://xspf.org/ns/0/">
+ <creator>The author</creator>
+ <trackList />
+</playlist>
Added: trunk/xspf/testcase/for_version_1/fail/playlist-attribute-forbidden-annotation.xspf
===================================================================
--- trunk/xspf/testcase/for_version_1/fail/playlist-attribute-forbidden-annotation.xspf 2007-02-17 18:34:48 UTC (rev 12489)
+++ trunk/xspf/testcase/for_version_1/fail/playlist-attribute-forbidden-annotation.xspf 2007-02-17 18:39:31 UTC (rev 12490)
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="utf-8"?>
+<playlist version="1" xmlns="http://xspf.org/ns/0/">
+ <annotation rel="http://localhost/forbidden/attribute">Some text</annotation>
+ <trackList />
+</playlist>
Added: trunk/xspf/testcase/for_version_1/fail/playlist-element-forbidden-attribution.xspf
===================================================================
--- trunk/xspf/testcase/for_version_1/fail/playlist-element-forbidden-attribution.xspf 2007-02-17 18:34:48 UTC (rev 12489)
+++ trunk/xspf/testcase/for_version_1/fail/playlist-element-forbidden-attribution.xspf 2007-02-17 18:39:31 UTC (rev 12490)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="utf-8"?>
+<playlist version="1" xmlns="http://xspf.org/ns/0/">
+ <attribution>
+ <info>http://element/forbidden</info>
+ </attribution>
+ <trackList />
+</playlist>
Added: trunk/xspf/testcase/for_version_1/fail/playlist-root-name.xspf
===================================================================
--- trunk/xspf/testcase/for_version_1/fail/playlist-root-name.xspf 2007-02-17 18:34:48 UTC (rev 12489)
+++ trunk/xspf/testcase/for_version_1/fail/playlist-root-name.xspf 2007-02-17 18:39:31 UTC (rev 12490)
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
+<notaplaylist version="1" xmlns="http://xspf.org/ns/0/">
+ <trackList />
+</notaplaylist>
Added: trunk/xspf/testcase/for_version_1/fail/xml-error.xspf
===================================================================
--- trunk/xspf/testcase/for_version_1/fail/xml-error.xspf 2007-02-17 18:34:48 UTC (rev 12489)
+++ trunk/xspf/testcase/for_version_1/fail/xml-error.xspf 2007-02-17 18:39:31 UTC (rev 12490)
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="utf-8"?>
+<playlist version="1" xmlns="http://xspf.org/ns/0/" xmlns="http://xspf.org/ns/0/">
+ <annotation>Notice the double attribute xmlns above</annotation>
+ <trackList />
+</playlist>
Added: trunk/xspf/testcase/for_version_1/pass/playlist-extension.xspf
===================================================================
--- trunk/xspf/testcase/for_version_1/pass/playlist-extension.xspf 2007-02-17 18:34:48 UTC (rev 12489)
+++ trunk/xspf/testcase/for_version_1/pass/playlist-extension.xspf 2007-02-17 18:39:31 UTC (rev 12490)
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="utf-8"?>
+<playlist version="1" xmlns="http://xspf.org/ns/0/">
+ <extension application="http://localhost/some/valid/url">
+ <track>
+ <info>Does NOT have to be an URL</info>
+ <info>And can appear more than once</info>
+ </track>
+ <three>
+ <four>
+ <five>Deeper than usual</five>
+ </four>
+ </three>
+ </extension>
+ <trackList />
+</playlist>
Added: trunk/xspf/testcase/for_version_1/pass/track-extension.xspf
===================================================================
--- trunk/xspf/testcase/for_version_1/pass/track-extension.xspf 2007-02-17 18:34:48 UTC (rev 12489)
+++ trunk/xspf/testcase/for_version_1/pass/track-extension.xspf 2007-02-17 18:39:31 UTC (rev 12490)
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="utf-8"?>
+<playlist version="1" xmlns="http://xspf.org/ns/0/">
+ <trackList>
+ <track>
+ <extension application="http://localhost/some/valid/url">
+ <info>Does NOT have to be an URL</info>
+ <info>And can appear more than once</info>
+ </extension>
+ </track>
+ </trackList>
+</playlist>
More information about the commits
mailing list