[xiph-commits] r10693 - in trunk/xspf: . testcase testcase/fail
testcase/pass
lgonze at svn.xiph.org
lgonze at svn.xiph.org
Fri Jan 6 18:07:38 PST 2006
Author: lgonze
Date: 2006-01-06 18:07:27 -0800 (Fri, 06 Jan 2006)
New Revision: 10693
Added:
trunk/xspf/testcase/
trunk/xspf/testcase/README.txt
trunk/xspf/testcase/fail/
trunk/xspf/testcase/fail/playlist-baddate.xspf
trunk/xspf/testcase/fail/playlist-badversion.xspf
trunk/xspf/testcase/fail/playlist-containshtml-annotation.xspf
trunk/xspf/testcase/fail/playlist-containshtml-creator.xspf
trunk/xspf/testcase/fail/playlist-containshtml-title.xspf
trunk/xspf/testcase/fail/playlist-invalidnamespace.xspf
trunk/xspf/testcase/fail/playlist-missingnamespace.xspf
trunk/xspf/testcase/fail/playlist-missingtracklist.xspf
trunk/xspf/testcase/fail/playlist-missingversion.xspf
trunk/xspf/testcase/fail/playlist-noturi-attribution-identifier.xspf
trunk/xspf/testcase/fail/playlist-noturi-attribution-location.xspf
trunk/xspf/testcase/fail/playlist-noturi-extension.xspf
trunk/xspf/testcase/fail/playlist-noturi-identifier.xspf
trunk/xspf/testcase/fail/playlist-noturi-image.xspf
trunk/xspf/testcase/fail/playlist-noturi-info.xspf
trunk/xspf/testcase/fail/playlist-noturi-license.xspf
trunk/xspf/testcase/fail/playlist-noturi-link-content.xspf
trunk/xspf/testcase/fail/playlist-noturi-link-rel.xspf
trunk/xspf/testcase/fail/playlist-noturi-location.xspf
trunk/xspf/testcase/fail/playlist-noturi-meta.xspf
trunk/xspf/testcase/fail/playlist-toomany-annotation.xspf
trunk/xspf/testcase/fail/playlist-toomany-attribution.xspf
trunk/xspf/testcase/fail/playlist-toomany-creator.xspf
trunk/xspf/testcase/fail/playlist-toomany-date.xspf
trunk/xspf/testcase/fail/playlist-toomany-identifier.xspf
trunk/xspf/testcase/fail/playlist-toomany-image.xspf
trunk/xspf/testcase/fail/playlist-toomany-info.xspf
trunk/xspf/testcase/fail/playlist-toomany-license.xspf
trunk/xspf/testcase/fail/playlist-toomany-location.xspf
trunk/xspf/testcase/fail/playlist-toomany-title.xspf
trunk/xspf/testcase/fail/playlist-toomany-tracklist.xspf
trunk/xspf/testcase/fail/track-badint-duration.xspf
trunk/xspf/testcase/fail/track-badint-tracknum.xspf
trunk/xspf/testcase/fail/track-markup-album.xspf
trunk/xspf/testcase/fail/track-markup-annotation.xspf
trunk/xspf/testcase/fail/track-markup-creator.xspf
trunk/xspf/testcase/fail/track-markup-title.xspf
trunk/xspf/testcase/fail/track-noturi-extension.xspf
trunk/xspf/testcase/fail/track-noturi-identifier.xspf
trunk/xspf/testcase/fail/track-noturi-image.xspf
trunk/xspf/testcase/fail/track-noturi-info.xspf
trunk/xspf/testcase/fail/track-noturi-link-rel.xspf
trunk/xspf/testcase/fail/track-noturi-link.xspf
trunk/xspf/testcase/fail/track-noturi-location.xspf
trunk/xspf/testcase/fail/track-noturi-meta-rel.xspf
trunk/xspf/testcase/fail/track-toomany-album.xspf
trunk/xspf/testcase/fail/track-toomany-annotation.xspf
trunk/xspf/testcase/fail/track-toomany-creator.xspf
trunk/xspf/testcase/fail/track-toomany-duration.xspf
trunk/xspf/testcase/fail/track-toomany-image.xspf
trunk/xspf/testcase/fail/track-toomany-info.xspf
trunk/xspf/testcase/fail/track-toomany-title.xspf
trunk/xspf/testcase/fail/track-toomany-tracknum.xspf
trunk/xspf/testcase/pass/
trunk/xspf/testcase/pass/playlist-extensive.xspf
trunk/xspf/testcase/pass/track-extensive.xspf
Log:
Add testcases for XSPF developers.
Added: trunk/xspf/testcase/README.txt
===================================================================
--- trunk/xspf/testcase/README.txt 2006-01-04 01:28:47 UTC (rev 10692)
+++ trunk/xspf/testcase/README.txt 2006-01-07 02:07:27 UTC (rev 10693)
@@ -0,0 +1,18 @@
+
+An XSPF parser should be able to handle all files in the "pass"
+directory and should detect the error in all files in the "fail"
+directory.
+
+This is initially intended for use by feedvalidator
+(http://feedvalidator.org), which is where the syntax for "Expect:"
+clauses comes from. That said, these test cases should be useful for
+anybody writing a parser.
+
+The author of these documents is Lucas Gonze.
+Contact:
+- lucas at gonze.com
+- http://gonze.com/about
+
+Copyright c. 2005 Lucas Gonze
+These may be freely used for any purpose, in any way, by any entity.
+
Property changes on: trunk/xspf/testcase/README.txt
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/xspf/testcase/fail/playlist-baddate.xspf
===================================================================
--- trunk/xspf/testcase/fail/playlist-baddate.xspf 2006-01-04 01:28:47 UTC (rev 10692)
+++ trunk/xspf/testcase/fail/playlist-baddate.xspf 2006-01-07 02:07:27 UTC (rev 10693)
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+ Description: date must be XML Schema dateTime
+ Expect: InvalidISO8601Date{element:date,parent:playlist}
+-->
+<!--
+ A fine point: date is IS0 8601 in version 0, xsd:dateTime in version 1
+-->
+
+<playlist version="1" xmlns="http://xspf.org/ns/0/">
+
+ <date>2005-32-08T17:10:47-05:00</date>
+
+ <trackList>
+ </trackList>
+
+</playlist>
Property changes on: trunk/xspf/testcase/fail/playlist-baddate.xspf
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/xspf/testcase/fail/playlist-badversion.xspf
===================================================================
--- trunk/xspf/testcase/fail/playlist-badversion.xspf 2006-01-04 01:28:47 UTC (rev 10692)
+++ trunk/xspf/testcase/fail/playlist-badversion.xspf 2006-01-07 02:07:27 UTC (rev 10693)
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+ Description: The "version" attribute for the playlist element must be 0 or 1.
+ Expect:
+-->
+
+<playlist version="25" xmlns="http://xspf.org/ns/0/">
+
+ <trackList>
+ </trackList>
+
+</playlist>
Property changes on: trunk/xspf/testcase/fail/playlist-badversion.xspf
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/xspf/testcase/fail/playlist-containshtml-annotation.xspf
===================================================================
--- trunk/xspf/testcase/fail/playlist-containshtml-annotation.xspf 2006-01-04 01:28:47 UTC (rev 10692)
+++ trunk/xspf/testcase/fail/playlist-containshtml-annotation.xspf 2006-01-07 02:07:27 UTC (rev 10693)
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+ Description: Element must not contain HTML
+ Expect: ContainsHTML{element:annotation,parent:playlist}
+-->
+
+<playlist version="1" xmlns="http://xspf.org/ns/0/">
+
+ <annotation><blink>This must not be markup.</blink></annotation>
+
+ <trackList>
+ </trackList>
+
+</playlist>
Property changes on: trunk/xspf/testcase/fail/playlist-containshtml-annotation.xspf
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/xspf/testcase/fail/playlist-containshtml-creator.xspf
===================================================================
--- trunk/xspf/testcase/fail/playlist-containshtml-creator.xspf 2006-01-04 01:28:47 UTC (rev 10692)
+++ trunk/xspf/testcase/fail/playlist-containshtml-creator.xspf 2006-01-07 02:07:27 UTC (rev 10693)
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+ Description: Element must not contain HTML
+ Expect: ContainsHTML{element:creator,parent:playlist}
+-->
+
+<playlist version="1" xmlns="http://xspf.org/ns/0/">
+
+ <creator><blink>This must not be markup.</blink></creator>
+
+ <trackList>
+ </trackList>
+
+</playlist>
Property changes on: trunk/xspf/testcase/fail/playlist-containshtml-creator.xspf
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/xspf/testcase/fail/playlist-containshtml-title.xspf
===================================================================
--- trunk/xspf/testcase/fail/playlist-containshtml-title.xspf 2006-01-04 01:28:47 UTC (rev 10692)
+++ trunk/xspf/testcase/fail/playlist-containshtml-title.xspf 2006-01-07 02:07:27 UTC (rev 10693)
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+ Description: Element must not contain HTML
+ Expect: ContainsHTML{element:title,parent:playlist}
+-->
+
+<playlist version="1" xmlns="http://xspf.org/ns/0/">
+
+ <title><blink>This must not be markup.</blink></title>
+
+ <trackList>
+ </trackList>
+
+</playlist>
Property changes on: trunk/xspf/testcase/fail/playlist-containshtml-title.xspf
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/xspf/testcase/fail/playlist-invalidnamespace.xspf
===================================================================
--- trunk/xspf/testcase/fail/playlist-invalidnamespace.xspf 2006-01-04 01:28:47 UTC (rev 10692)
+++ trunk/xspf/testcase/fail/playlist-invalidnamespace.xspf 2006-01-07 02:07:27 UTC (rev 10693)
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+ Description: Namespace must be http://xspf.org/ns/0/
+ Expect: InvalidNamespace
+-->
+
+<playlist version="1" xmlns="http://not.xspf.org/ns/0/">
+
+ <trackList>
+ </trackList>
+
+</playlist>
Property changes on: trunk/xspf/testcase/fail/playlist-invalidnamespace.xspf
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/xspf/testcase/fail/playlist-missingnamespace.xspf
===================================================================
--- trunk/xspf/testcase/fail/playlist-missingnamespace.xspf 2006-01-04 01:28:47 UTC (rev 10692)
+++ trunk/xspf/testcase/fail/playlist-missingnamespace.xspf 2006-01-07 02:07:27 UTC (rev 10693)
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+ Description: Missing namespace
+ Expect: MissingNamespace{element:playlist}
+-->
+
+<playlist version="1">
+
+ <trackList>
+ </trackList>
+
+</playlist>
Property changes on: trunk/xspf/testcase/fail/playlist-missingnamespace.xspf
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/xspf/testcase/fail/playlist-missingtracklist.xspf
===================================================================
--- trunk/xspf/testcase/fail/playlist-missingtracklist.xspf 2006-01-04 01:28:47 UTC (rev 10692)
+++ trunk/xspf/testcase/fail/playlist-missingtracklist.xspf 2006-01-07 02:07:27 UTC (rev 10693)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+ Description: Missing root-level trackList element
+ Expect: MissingElement{element:trackList,parent:playlist}
+-->
+
+<playlist version="1" xmlns="http://xspf.org/ns/0/">
+</playlist>
Property changes on: trunk/xspf/testcase/fail/playlist-missingtracklist.xspf
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/xspf/testcase/fail/playlist-missingversion.xspf
===================================================================
--- trunk/xspf/testcase/fail/playlist-missingversion.xspf 2006-01-04 01:28:47 UTC (rev 10692)
+++ trunk/xspf/testcase/fail/playlist-missingversion.xspf 2006-01-07 02:07:27 UTC (rev 10693)
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+ Description: Missing version number
+ Expect:
+-->
+
+<playlist xmlns="http://xspf.org/ns/0/">
+
+ <trackList>
+ </trackList>
+
+</playlist>
Property changes on: trunk/xspf/testcase/fail/playlist-missingversion.xspf
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/xspf/testcase/fail/playlist-noturi-attribution-identifier.xspf
===================================================================
--- trunk/xspf/testcase/fail/playlist-noturi-attribution-identifier.xspf 2006-01-04 01:28:47 UTC (rev 10692)
+++ trunk/xspf/testcase/fail/playlist-noturi-attribution-identifier.xspf 2006-01-07 02:07:27 UTC (rev 10693)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+ Description: Must contain a legal URI
+ Expect: InvalidLink{element:identifier,parent:attribution}
+-->
+
+<playlist version="1" xmlns="http://xspf.org/ns/0/">
+
+ <attribution>
+ <identifier>This should be a URI</identifier>
+ </attribution>
+
+ <trackList>
+ </trackList>
+
+</playlist>
Property changes on: trunk/xspf/testcase/fail/playlist-noturi-attribution-identifier.xspf
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/xspf/testcase/fail/playlist-noturi-attribution-location.xspf
===================================================================
--- trunk/xspf/testcase/fail/playlist-noturi-attribution-location.xspf 2006-01-04 01:28:47 UTC (rev 10692)
+++ trunk/xspf/testcase/fail/playlist-noturi-attribution-location.xspf 2006-01-07 02:07:27 UTC (rev 10693)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+ Description: Must contain a legal URI
+ Expect: InvalidLink{element:location,parent:attribution}
+-->
+
+<playlist version="1" xmlns="http://xspf.org/ns/0/">
+
+ <attribution>
+ <location>This should be a URI</location>
+ </attribution>
+
+ <trackList>
+ </trackList>
+
+</playlist>
Property changes on: trunk/xspf/testcase/fail/playlist-noturi-attribution-location.xspf
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/xspf/testcase/fail/playlist-noturi-extension.xspf
===================================================================
--- trunk/xspf/testcase/fail/playlist-noturi-extension.xspf 2006-01-04 01:28:47 UTC (rev 10692)
+++ trunk/xspf/testcase/fail/playlist-noturi-extension.xspf 2006-01-07 02:07:27 UTC (rev 10693)
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+ Description: Must contain a legal URI
+ Expect: InvalidLink{attr:application,element:extension,parent:playlist}
+-->
+
+<playlist version="1" xmlns="http://xspf.org/ns/0/">
+
+ <extension application="This should be a URI" />
+
+ <trackList>
+ </trackList>
+
+</playlist>
Property changes on: trunk/xspf/testcase/fail/playlist-noturi-extension.xspf
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/xspf/testcase/fail/playlist-noturi-identifier.xspf
===================================================================
--- trunk/xspf/testcase/fail/playlist-noturi-identifier.xspf 2006-01-04 01:28:47 UTC (rev 10692)
+++ trunk/xspf/testcase/fail/playlist-noturi-identifier.xspf 2006-01-07 02:07:27 UTC (rev 10693)
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+ Description: Must contain a legal URI
+ Expect: InvalidLink{element:identifier,parent:playlist}
+-->
+
+<playlist version="1" xmlns="http://xspf.org/ns/0/">
+
+ <identifier>This should be a URI</identifier>
+
+ <trackList>
+ </trackList>
+
+</playlist>
Property changes on: trunk/xspf/testcase/fail/playlist-noturi-identifier.xspf
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/xspf/testcase/fail/playlist-noturi-image.xspf
===================================================================
--- trunk/xspf/testcase/fail/playlist-noturi-image.xspf 2006-01-04 01:28:47 UTC (rev 10692)
+++ trunk/xspf/testcase/fail/playlist-noturi-image.xspf 2006-01-07 02:07:27 UTC (rev 10693)
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+ Description: Must contain a legal URI
+ Expect: InvalidLink{element:image,parent:playlist}
+-->
+
+<playlist version="1" xmlns="http://xspf.org/ns/0/">
+
+ <image>This should be a URI</image>
+
+ <trackList>
+ </trackList>
+
+</playlist>
Property changes on: trunk/xspf/testcase/fail/playlist-noturi-image.xspf
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/xspf/testcase/fail/playlist-noturi-info.xspf
===================================================================
--- trunk/xspf/testcase/fail/playlist-noturi-info.xspf 2006-01-04 01:28:47 UTC (rev 10692)
+++ trunk/xspf/testcase/fail/playlist-noturi-info.xspf 2006-01-07 02:07:27 UTC (rev 10693)
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+ Description: Must contain a legal URI
+ Expect: InvalidLink{element:info,parent:playlist}
+-->
+
+<playlist version="1" xmlns="http://xspf.org/ns/0/">
+
+ <info>This should be a URI</info>
+
+ <trackList>
+ </trackList>
+
+</playlist>
Property changes on: trunk/xspf/testcase/fail/playlist-noturi-info.xspf
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/xspf/testcase/fail/playlist-noturi-license.xspf
===================================================================
--- trunk/xspf/testcase/fail/playlist-noturi-license.xspf 2006-01-04 01:28:47 UTC (rev 10692)
+++ trunk/xspf/testcase/fail/playlist-noturi-license.xspf 2006-01-07 02:07:27 UTC (rev 10693)
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+ Description: Must contain a legal URI
+ Expect: InvalidLink{element:license,parent:playlist}
+-->
+
+<playlist version="1" xmlns="http://xspf.org/ns/0/">
+
+ <license>This should be a URI</license>
+
+ <trackList>
+ </trackList>
+
+</playlist>
Property changes on: trunk/xspf/testcase/fail/playlist-noturi-license.xspf
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/xspf/testcase/fail/playlist-noturi-link-content.xspf
===================================================================
--- trunk/xspf/testcase/fail/playlist-noturi-link-content.xspf 2006-01-04 01:28:47 UTC (rev 10692)
+++ trunk/xspf/testcase/fail/playlist-noturi-link-content.xspf 2006-01-07 02:07:27 UTC (rev 10693)
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+ Description: Must contain a legal URI
+ Expect: InvalidLink{element:link,parent:playlist}
+-->
+
+<playlist version="1" xmlns="http://xspf.org/ns/0/">
+
+ <link rel="http://example.com">This should be a URI</link>
+
+ <trackList>
+ </trackList>
+
+</playlist>
Property changes on: trunk/xspf/testcase/fail/playlist-noturi-link-content.xspf
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/xspf/testcase/fail/playlist-noturi-link-rel.xspf
===================================================================
--- trunk/xspf/testcase/fail/playlist-noturi-link-rel.xspf 2006-01-04 01:28:47 UTC (rev 10692)
+++ trunk/xspf/testcase/fail/playlist-noturi-link-rel.xspf 2006-01-07 02:07:27 UTC (rev 10693)
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+ Description: Must contain a legal URI
+ Expect: InvalidLink{attr:rel,element:link,parent:playlist}
+-->
+
+<playlist version="1" xmlns="http://xspf.org/ns/0/">
+
+ <link rel="This should be a URI">http://example.com</link>
+
+ <trackList>
+ </trackList>
+
+</playlist>
Property changes on: trunk/xspf/testcase/fail/playlist-noturi-link-rel.xspf
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/xspf/testcase/fail/playlist-noturi-location.xspf
===================================================================
--- trunk/xspf/testcase/fail/playlist-noturi-location.xspf 2006-01-04 01:28:47 UTC (rev 10692)
+++ trunk/xspf/testcase/fail/playlist-noturi-location.xspf 2006-01-07 02:07:27 UTC (rev 10693)
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+ Description: Must contain a legal URI
+ Expect: InvalidLink{element:location,parent:playlist}
+-->
+
+<playlist version="1" xmlns="http://xspf.org/ns/0/">
+
+ <location>This should be a URI</location>
+
+ <trackList>
+ </trackList>
+
+</playlist>
Property changes on: trunk/xspf/testcase/fail/playlist-noturi-location.xspf
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/xspf/testcase/fail/playlist-noturi-meta.xspf
===================================================================
--- trunk/xspf/testcase/fail/playlist-noturi-meta.xspf 2006-01-04 01:28:47 UTC (rev 10692)
+++ trunk/xspf/testcase/fail/playlist-noturi-meta.xspf 2006-01-07 02:07:27 UTC (rev 10693)
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+ Description: Must contain a legal URI
+ Expect: InvalidLink{attr:rel,element:meta,parent:playlist}
+-->
+
+<playlist version="1" xmlns="http://xspf.org/ns/0/">
+
+ <meta rel="This should be a URI">content</meta>
+
+ <trackList>
+ </trackList>
+
+</playlist>
Property changes on: trunk/xspf/testcase/fail/playlist-noturi-meta.xspf
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/xspf/testcase/fail/playlist-toomany-annotation.xspf
===================================================================
--- trunk/xspf/testcase/fail/playlist-toomany-annotation.xspf 2006-01-04 01:28:47 UTC (rev 10692)
+++ trunk/xspf/testcase/fail/playlist-toomany-annotation.xspf 2006-01-07 02:07:27 UTC (rev 10693)
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+ Description: Only one occurrence allowed
+ Expect: DuplicateElement{element:annotation,parent:playlist}
+-->
+
+<playlist version="1" xmlns="http://xspf.org/ns/0/">
+
+ <annotation>content</annotation>
+ <annotation>content</annotation>
+
+ <trackList/>
+</playlist>
Property changes on: trunk/xspf/testcase/fail/playlist-toomany-annotation.xspf
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/xspf/testcase/fail/playlist-toomany-attribution.xspf
===================================================================
--- trunk/xspf/testcase/fail/playlist-toomany-attribution.xspf 2006-01-04 01:28:47 UTC (rev 10692)
+++ trunk/xspf/testcase/fail/playlist-toomany-attribution.xspf 2006-01-07 02:07:27 UTC (rev 10693)
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+ Description: Only one occurrence allowed
+ Expect: DuplicateElement{element:attribution,parent:playlist}
+-->
+
+<playlist version="1" xmlns="http://xspf.org/ns/0/">
+
+ <attribution/>
+ <attribution/>
+
+ <trackList/>
+
+</playlist>
Property changes on: trunk/xspf/testcase/fail/playlist-toomany-attribution.xspf
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/xspf/testcase/fail/playlist-toomany-creator.xspf
===================================================================
--- trunk/xspf/testcase/fail/playlist-toomany-creator.xspf 2006-01-04 01:28:47 UTC (rev 10692)
+++ trunk/xspf/testcase/fail/playlist-toomany-creator.xspf 2006-01-07 02:07:27 UTC (rev 10693)
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+ Description: Only one occurrence allowed
+ Expect: DuplicateElement{element:creator,parent:playlist}
+-->
+
+<playlist version="1" xmlns="http://xspf.org/ns/0/">
+
+ <creator>content</creator>
+ <creator>content</creator>
+
+ <trackList />
+</playlist>
Property changes on: trunk/xspf/testcase/fail/playlist-toomany-creator.xspf
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/xspf/testcase/fail/playlist-toomany-date.xspf
===================================================================
--- trunk/xspf/testcase/fail/playlist-toomany-date.xspf 2006-01-04 01:28:47 UTC (rev 10692)
+++ trunk/xspf/testcase/fail/playlist-toomany-date.xspf 2006-01-07 02:07:27 UTC (rev 10693)
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+ Description: Only one occurrence allowed
+ Expect: DuplicateElement{element:date,parent:playlist}
+-->
+
+<playlist version="1" xmlns="http://xspf.org/ns/0/">
+
+ <date>2005-01-08T17:10:47-05:00</date>
+ <date>2005-01-08T17:10:47-05:00</date>
+
+ <trackList/>
+
+</playlist>
Property changes on: trunk/xspf/testcase/fail/playlist-toomany-date.xspf
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/xspf/testcase/fail/playlist-toomany-identifier.xspf
===================================================================
--- trunk/xspf/testcase/fail/playlist-toomany-identifier.xspf 2006-01-04 01:28:47 UTC (rev 10692)
+++ trunk/xspf/testcase/fail/playlist-toomany-identifier.xspf 2006-01-07 02:07:27 UTC (rev 10693)
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+ Description: Only one occurrence allowed
+ Expect: DuplicateElement{element:identifier,parent:playlist}
+-->
+
+<playlist version="1" xmlns="http://xspf.org/ns/0/">
+
+ <identifier>http://example.com</identifier>
+ <identifier>http://example.com</identifier>
+
+ <trackList/>
+
+</playlist>
Property changes on: trunk/xspf/testcase/fail/playlist-toomany-identifier.xspf
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/xspf/testcase/fail/playlist-toomany-image.xspf
===================================================================
--- trunk/xspf/testcase/fail/playlist-toomany-image.xspf 2006-01-04 01:28:47 UTC (rev 10692)
+++ trunk/xspf/testcase/fail/playlist-toomany-image.xspf 2006-01-07 02:07:27 UTC (rev 10693)
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+ Description: Only one occurrence allowed
+ Expect: DuplicateElement{element:image,parent:playlist}
+-->
+
+<playlist version="1" xmlns="http://xspf.org/ns/0/">
+
+ <image>http://example.com</image>
+ <image>http://example.com</image>
+
+ <trackList/>
+
+</playlist>
Added: trunk/xspf/testcase/fail/playlist-toomany-info.xspf
===================================================================
--- trunk/xspf/testcase/fail/playlist-toomany-info.xspf 2006-01-04 01:28:47 UTC (rev 10692)
+++ trunk/xspf/testcase/fail/playlist-toomany-info.xspf 2006-01-07 02:07:27 UTC (rev 10693)
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+ Description: Only one occurrence allowed
+ Expect: DuplicateElement{element:info,parent:playlist}
+-->
+
+<playlist version="1" xmlns="http://xspf.org/ns/0/">
+
+ <info>http://example.com/myplaylists</info>
+ <info>http://example.com/myplaylists</info>
+
+ <trackList/>
+
+</playlist>
Property changes on: trunk/xspf/testcase/fail/playlist-toomany-info.xspf
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/xspf/testcase/fail/playlist-toomany-license.xspf
===================================================================
--- trunk/xspf/testcase/fail/playlist-toomany-license.xspf 2006-01-04 01:28:47 UTC (rev 10692)
+++ trunk/xspf/testcase/fail/playlist-toomany-license.xspf 2006-01-07 02:07:27 UTC (rev 10693)
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+ Description: Only one occurrence allowed
+ Expect: DuplicateElement{element:license,parent:playlist}
+-->
+
+<playlist version="1" xmlns="http://xspf.org/ns/0/">
+
+ <license>http://example.com</license>
+ <license>http://example.com</license>
+
+ <trackList/>
+
+</playlist>
Added: trunk/xspf/testcase/fail/playlist-toomany-location.xspf
===================================================================
--- trunk/xspf/testcase/fail/playlist-toomany-location.xspf 2006-01-04 01:28:47 UTC (rev 10692)
+++ trunk/xspf/testcase/fail/playlist-toomany-location.xspf 2006-01-07 02:07:27 UTC (rev 10693)
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+ Description: Only one occurrence allowed
+ Expect: DuplicateElement{element:location,parent:playlist}
+-->
+
+<playlist version="1" xmlns="http://xspf.org/ns/0/">
+
+ <location>http://example.com/myplaylists</location>
+ <location>http://example.com/myplaylists</location>
+
+ <trackList/>
+
+</playlist>
Property changes on: trunk/xspf/testcase/fail/playlist-toomany-location.xspf
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/xspf/testcase/fail/playlist-toomany-title.xspf
===================================================================
--- trunk/xspf/testcase/fail/playlist-toomany-title.xspf 2006-01-04 01:28:47 UTC (rev 10692)
+++ trunk/xspf/testcase/fail/playlist-toomany-title.xspf 2006-01-07 02:07:27 UTC (rev 10693)
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+ Description: Only one occurrence allowed
+ Expect: DuplicateElement{element:title,parent:playlist}
+-->
+
+<playlist version="1" xmlns="http://xspf.org/ns/0/">
+
+ <title>content</title>
+ <title>content</title>
+
+ <trackList/>
+
+</playlist>
Property changes on: trunk/xspf/testcase/fail/playlist-toomany-title.xspf
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/xspf/testcase/fail/playlist-toomany-tracklist.xspf
===================================================================
--- trunk/xspf/testcase/fail/playlist-toomany-tracklist.xspf 2006-01-04 01:28:47 UTC (rev 10692)
+++ trunk/xspf/testcase/fail/playlist-toomany-tracklist.xspf 2006-01-07 02:07:27 UTC (rev 10693)
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+ Description: Only one occurrence allowed
+ Expect: DuplicateElement{element:trackList,parent:playlist}
+-->
+
+<playlist version="1" xmlns="http://xspf.org/ns/0/">
+
+ <trackList/>
+ <trackList/>
+
+</playlist>
Property changes on: trunk/xspf/testcase/fail/playlist-toomany-tracklist.xspf
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/xspf/testcase/fail/track-badint-duration.xspf
===================================================================
--- trunk/xspf/testcase/fail/track-badint-duration.xspf 2006-01-04 01:28:47 UTC (rev 10692)
+++ trunk/xspf/testcase/fail/track-badint-duration.xspf 2006-01-07 02:07:27 UTC (rev 10693)
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+ Description: duration must be an XML Schema nonNegativeInteger
+ Expect: InvalidPositiveInteger{element:duration,parent:track}
+-->
+
+<playlist version="1" xmlns="http://xspf.org/ns/0/">
+ <trackList>
+ <track>
+
+ <duration>This should be xsd:nonNegativeInteger</duration>
+
+ </track>
+ </trackList>
+</playlist>
Property changes on: trunk/xspf/testcase/fail/track-badint-duration.xspf
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/xspf/testcase/fail/track-badint-tracknum.xspf
===================================================================
--- trunk/xspf/testcase/fail/track-badint-tracknum.xspf 2006-01-04 01:28:47 UTC (rev 10692)
+++ trunk/xspf/testcase/fail/track-badint-tracknum.xspf 2006-01-07 02:07:27 UTC (rev 10693)
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+ Description: trackNum must be an XML Schema nonNegativeInteger
+ Expect: InvalidPositiveInteger{element:trackNum,parent:track}
+-->
+
+<playlist version="1" xmlns="http://xspf.org/ns/0/">
+ <trackList>
+ <track>
+
+ <trackNum>This should be xsd:nonNegativeInteger</trackNum>
+
+ </track>
+ </trackList>
+</playlist>
Property changes on: trunk/xspf/testcase/fail/track-badint-tracknum.xspf
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/xspf/testcase/fail/track-markup-album.xspf
===================================================================
--- trunk/xspf/testcase/fail/track-markup-album.xspf 2006-01-04 01:28:47 UTC (rev 10692)
+++ trunk/xspf/testcase/fail/track-markup-album.xspf 2006-01-07 02:07:27 UTC (rev 10693)
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+ Description: album must not contain HTML
+
+ Expect: ContainsHTML{element:album,parent:track}
+-->
+
+<playlist version="1" xmlns="http://xspf.org/ns/0/">
+
+ <trackList>
+ <track>
+
+ <album><blink>My Way</blink></album>
+
+ </track>
+ </trackList>
+
+</playlist>
Added: trunk/xspf/testcase/fail/track-markup-annotation.xspf
===================================================================
--- trunk/xspf/testcase/fail/track-markup-annotation.xspf 2006-01-04 01:28:47 UTC (rev 10692)
+++ trunk/xspf/testcase/fail/track-markup-annotation.xspf 2006-01-07 02:07:27 UTC (rev 10693)
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+ Description: annotation must not contain HTML
+
+ Expect: ContainsHTML{element:annotation,parent:track}
+-->
+
+<playlist version="1" xmlns="http://xspf.org/ns/0/">
+
+ <trackList>
+ <track>
+
+ <annotation><blink>My Way</blink></annotation>
+
+ </track>
+ </trackList>
+
+</playlist>
Added: trunk/xspf/testcase/fail/track-markup-creator.xspf
===================================================================
--- trunk/xspf/testcase/fail/track-markup-creator.xspf 2006-01-04 01:28:47 UTC (rev 10692)
+++ trunk/xspf/testcase/fail/track-markup-creator.xspf 2006-01-07 02:07:27 UTC (rev 10693)
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+ Description: creator must not contain HTML
+
+ Expect: ContainsHTML{element:creator,parent:track}
+-->
+
+<playlist version="1" xmlns="http://xspf.org/ns/0/">
+
+ <trackList>
+ <track>
+
+ <creator><blink>My Way</blink></creator>
+
+ </track>
+ </trackList>
+
+</playlist>
Property changes on: trunk/xspf/testcase/fail/track-markup-creator.xspf
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/xspf/testcase/fail/track-markup-title.xspf
===================================================================
--- trunk/xspf/testcase/fail/track-markup-title.xspf 2006-01-04 01:28:47 UTC (rev 10692)
+++ trunk/xspf/testcase/fail/track-markup-title.xspf 2006-01-07 02:07:27 UTC (rev 10693)
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+ Description: title must not contain HTML
+
+ Expect: ContainsHTML{element:title,parent:track}
+-->
+
+<playlist version="1" xmlns="http://xspf.org/ns/0/">
+
+ <trackList>
+ <track>
+
+ <title><blink>My Way</blink></title>
+
+ </track>
+ </trackList>
+
+</playlist>
Property changes on: trunk/xspf/testcase/fail/track-markup-title.xspf
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/xspf/testcase/fail/track-noturi-extension.xspf
===================================================================
--- trunk/xspf/testcase/fail/track-noturi-extension.xspf 2006-01-04 01:28:47 UTC (rev 10692)
+++ trunk/xspf/testcase/fail/track-noturi-extension.xspf 2006-01-07 02:07:27 UTC (rev 10693)
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+ Description: link must be a legal URI
+ Expect: InvalidLink{attr:application,element:extension,parent:track}
+-->
+
+<playlist version="1" xmlns="http://xspf.org/ns/0/">
+ <trackList>
+ <track>
+
+ <extension application="This should be a URI" />
+
+ </track>
+ </trackList>
+</playlist>
Property changes on: trunk/xspf/testcase/fail/track-noturi-extension.xspf
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/xspf/testcase/fail/track-noturi-identifier.xspf
===================================================================
--- trunk/xspf/testcase/fail/track-noturi-identifier.xspf 2006-01-04 01:28:47 UTC (rev 10692)
+++ trunk/xspf/testcase/fail/track-noturi-identifier.xspf 2006-01-07 02:07:27 UTC (rev 10693)
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+ Description: identifier must be a legal URI
+ Expect: InvalidLink{element:identifier,parent:track}
+-->
+
+<playlist version="1" xmlns="http://xspf.org/ns/0/">
+ <trackList>
+ <track>
+
+ <identifier>This should be a URI</identifier>
+
+ </track>
+ </trackList>
+</playlist>
Added: trunk/xspf/testcase/fail/track-noturi-image.xspf
===================================================================
--- trunk/xspf/testcase/fail/track-noturi-image.xspf 2006-01-04 01:28:47 UTC (rev 10692)
+++ trunk/xspf/testcase/fail/track-noturi-image.xspf 2006-01-07 02:07:27 UTC (rev 10693)
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+ Description: image must be a legal URI
+ Expect: InvalidLink{element:image,parent:track}
+-->
+
+<playlist version="1" xmlns="http://xspf.org/ns/0/">
+ <trackList>
+ <track>
+
+ <image>This should be a URI</image>
+
+ </track>
+ </trackList>
+</playlist>
Added: trunk/xspf/testcase/fail/track-noturi-info.xspf
===================================================================
--- trunk/xspf/testcase/fail/track-noturi-info.xspf 2006-01-04 01:28:47 UTC (rev 10692)
+++ trunk/xspf/testcase/fail/track-noturi-info.xspf 2006-01-07 02:07:27 UTC (rev 10693)
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+ Description: info must be a legal URI
+ Expect: InvalidLink{element:info,parent:track}
+-->
+
+<playlist version="1" xmlns="http://xspf.org/ns/0/">
+ <trackList>
+ <track>
+
+ <info>This should be a URI</info>
+
+ </track>
+ </trackList>
+</playlist>
Added: trunk/xspf/testcase/fail/track-noturi-link-rel.xspf
===================================================================
--- trunk/xspf/testcase/fail/track-noturi-link-rel.xspf 2006-01-04 01:28:47 UTC (rev 10692)
+++ trunk/xspf/testcase/fail/track-noturi-link-rel.xspf 2006-01-07 02:07:27 UTC (rev 10693)
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+ Description: link rel attribute must be a legal URI
+ Expect: InvalidLink{attr:rel,element:link,parent:track}
+-->
+
+<playlist version="1" xmlns="http://xspf.org/ns/0/">
+ <trackList>
+ <track>
+
+ <link rel="This should be a URI">http://example.com</link>
+
+ </track>
+ </trackList>
+</playlist>
Property changes on: trunk/xspf/testcase/fail/track-noturi-link-rel.xspf
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/xspf/testcase/fail/track-noturi-link.xspf
===================================================================
--- trunk/xspf/testcase/fail/track-noturi-link.xspf 2006-01-04 01:28:47 UTC (rev 10692)
+++ trunk/xspf/testcase/fail/track-noturi-link.xspf 2006-01-07 02:07:27 UTC (rev 10693)
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+ Description: link must be a legal URI
+ Expect: InvalidLink{element:link,parent:track}
+-->
+
+<playlist version="1" xmlns="http://xspf.org/ns/0/">
+ <trackList>
+ <track>
+
+ <link rel="http://example.com">This should be a URI</link>
+
+ </track>
+ </trackList>
+</playlist>
Property changes on: trunk/xspf/testcase/fail/track-noturi-link.xspf
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/xspf/testcase/fail/track-noturi-location.xspf
===================================================================
--- trunk/xspf/testcase/fail/track-noturi-location.xspf 2006-01-04 01:28:47 UTC (rev 10692)
+++ trunk/xspf/testcase/fail/track-noturi-location.xspf 2006-01-07 02:07:27 UTC (rev 10693)
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+ Description: location must be a legal URI
+ Expect: InvalidLink{element:location,parent:track}
+-->
+
+<playlist version="1" xmlns="http://xspf.org/ns/0/">
+ <trackList>
+ <track>
+
+ <location>This should be a URI</location>
+
+ </track>
+ </trackList>
+</playlist>
Property changes on: trunk/xspf/testcase/fail/track-noturi-location.xspf
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/xspf/testcase/fail/track-noturi-meta-rel.xspf
===================================================================
--- trunk/xspf/testcase/fail/track-noturi-meta-rel.xspf 2006-01-04 01:28:47 UTC (rev 10692)
+++ trunk/xspf/testcase/fail/track-noturi-meta-rel.xspf 2006-01-07 02:07:27 UTC (rev 10693)
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+ Description: meta rel attribute must be a legal URI
+ Expect: InvalidLink{attr:rel,element:meta,parent:track}
+-->
+
+<playlist version="1" xmlns="http://xspf.org/ns/0/">
+ <trackList>
+ <track>
+
+ <meta rel="This should be a URI">content</meta>
+
+ </track>
+ </trackList>
+</playlist>
Property changes on: trunk/xspf/testcase/fail/track-noturi-meta-rel.xspf
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/xspf/testcase/fail/track-toomany-album.xspf
===================================================================
--- trunk/xspf/testcase/fail/track-toomany-album.xspf 2006-01-04 01:28:47 UTC (rev 10692)
+++ trunk/xspf/testcase/fail/track-toomany-album.xspf 2006-01-07 02:07:27 UTC (rev 10693)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+ Description: Only one occurrence of album allowed.
+ Expect: DuplicateElement{element:album,parent:track}
+-->
+
+<playlist version="1" xmlns="http://xspf.org/ns/0/">
+ <trackList>
+ <track>
+
+ <album>content</album>
+ <album>content</album>
+
+ </track>
+ </trackList>
+</playlist>
Property changes on: trunk/xspf/testcase/fail/track-toomany-album.xspf
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/xspf/testcase/fail/track-toomany-annotation.xspf
===================================================================
--- trunk/xspf/testcase/fail/track-toomany-annotation.xspf 2006-01-04 01:28:47 UTC (rev 10692)
+++ trunk/xspf/testcase/fail/track-toomany-annotation.xspf 2006-01-07 02:07:27 UTC (rev 10693)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+ Description: Only one occurrence of annotation allowed.
+ Expect: DuplicateElement{element:annotation,parent:track}
+-->
+
+<playlist version="1" xmlns="http://xspf.org/ns/0/">
+ <trackList>
+ <track>
+
+ <annotation>content</annotation>
+ <annotation>content</annotation>
+
+ </track>
+ </trackList>
+</playlist>
Property changes on: trunk/xspf/testcase/fail/track-toomany-annotation.xspf
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/xspf/testcase/fail/track-toomany-creator.xspf
===================================================================
--- trunk/xspf/testcase/fail/track-toomany-creator.xspf 2006-01-04 01:28:47 UTC (rev 10692)
+++ trunk/xspf/testcase/fail/track-toomany-creator.xspf 2006-01-07 02:07:27 UTC (rev 10693)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+ Description: Only one occurrence of creator allowed.
+ Expect: DuplicateElement{element:creator,parent:track}
+-->
+
+<playlist version="1" xmlns="http://xspf.org/ns/0/">
+ <trackList>
+ <track>
+
+ <creator>content</creator>
+ <creator>content</creator>
+
+ </track>
+ </trackList>
+</playlist>
Property changes on: trunk/xspf/testcase/fail/track-toomany-creator.xspf
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/xspf/testcase/fail/track-toomany-duration.xspf
===================================================================
--- trunk/xspf/testcase/fail/track-toomany-duration.xspf 2006-01-04 01:28:47 UTC (rev 10692)
+++ trunk/xspf/testcase/fail/track-toomany-duration.xspf 2006-01-07 02:07:27 UTC (rev 10693)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+ Description: Only one occurrence of duration allowed.
+ Expect: DuplicateElement{element:duration,parent:track}
+-->
+
+<playlist version="1" xmlns="http://xspf.org/ns/0/">
+ <trackList>
+ <track>
+
+ <duration>123</duration>
+ <duration>123</duration>
+
+ </track>
+ </trackList>
+</playlist>
Property changes on: trunk/xspf/testcase/fail/track-toomany-duration.xspf
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/xspf/testcase/fail/track-toomany-image.xspf
===================================================================
--- trunk/xspf/testcase/fail/track-toomany-image.xspf 2006-01-04 01:28:47 UTC (rev 10692)
+++ trunk/xspf/testcase/fail/track-toomany-image.xspf 2006-01-07 02:07:27 UTC (rev 10693)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+ Description: Only one occurrence of image allowed.
+ Expect: DuplicateElement{element:image,parent:track}
+-->
+
+<playlist version="1" xmlns="http://xspf.org/ns/0/">
+ <trackList>
+ <track>
+
+ <image>http://example.com</image>
+ <image>http://example.com</image>
+
+ </track>
+ </trackList>
+</playlist>
Property changes on: trunk/xspf/testcase/fail/track-toomany-image.xspf
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/xspf/testcase/fail/track-toomany-info.xspf
===================================================================
--- trunk/xspf/testcase/fail/track-toomany-info.xspf 2006-01-04 01:28:47 UTC (rev 10692)
+++ trunk/xspf/testcase/fail/track-toomany-info.xspf 2006-01-07 02:07:27 UTC (rev 10693)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+ Description: Only one occurrence of info allowed.
+ Expect: DuplicateElement{element:info,parent:track}
+-->
+
+<playlist version="1" xmlns="http://xspf.org/ns/0/">
+ <trackList>
+ <track>
+
+ <info>http://example.com</info>
+ <info>http://example.com</info>
+
+ </track>
+ </trackList>
+</playlist>
Property changes on: trunk/xspf/testcase/fail/track-toomany-info.xspf
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/xspf/testcase/fail/track-toomany-title.xspf
===================================================================
--- trunk/xspf/testcase/fail/track-toomany-title.xspf 2006-01-04 01:28:47 UTC (rev 10692)
+++ trunk/xspf/testcase/fail/track-toomany-title.xspf 2006-01-07 02:07:27 UTC (rev 10693)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+ Description: Only one occurrence of title allowed.
+ Expect: DuplicateElement{element:title,parent:track}
+-->
+
+<playlist version="1" xmlns="http://xspf.org/ns/0/">
+ <trackList>
+ <track>
+
+ <title>content</title>
+ <title>content</title>
+
+ </track>
+ </trackList>
+</playlist>
Property changes on: trunk/xspf/testcase/fail/track-toomany-title.xspf
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/xspf/testcase/fail/track-toomany-tracknum.xspf
===================================================================
--- trunk/xspf/testcase/fail/track-toomany-tracknum.xspf 2006-01-04 01:28:47 UTC (rev 10692)
+++ trunk/xspf/testcase/fail/track-toomany-tracknum.xspf 2006-01-07 02:07:27 UTC (rev 10693)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+ Description: Only one occurrence of trackNum allowed.
+ Expect: DuplicateElement{element:trackNum,parent:track}
+-->
+
+<playlist version="1" xmlns="http://xspf.org/ns/0/">
+ <trackList>
+ <track>
+
+ <trackNum>123</trackNum>
+ <trackNum>123</trackNum>
+
+ </track>
+ </trackList>
+</playlist>
Property changes on: trunk/xspf/testcase/fail/track-toomany-tracknum.xspf
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/xspf/testcase/pass/playlist-extensive.xspf
===================================================================
--- trunk/xspf/testcase/pass/playlist-extensive.xspf 2006-01-04 01:28:47 UTC (rev 10692)
+++ trunk/xspf/testcase/pass/playlist-extensive.xspf 2006-01-07 02:07:27 UTC (rev 10693)
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+ Description: All legal root-level items
+ Expect: !Error
+-->
+
+<playlist version="1" xmlns="http://xspf.org/ns/0/">
+
+ <!-- A human-readable title for the playlist. xspf:playlist elements MAY contain exactly one. -->
+ <title>My playlist</title>
+
+ <!-- Human-readable name of the entity (author, authors, group, company, etc) that authored the playlist. xspf:playlist elements MAY contain exactly one. -->
+ <creator>Jane Doe</creator>
+
+ <!-- A human-readable comment on the playlist. This is character data, not HTML, and it may not contain markup. xspf:playlist elements MAY contain exactly one. -->
+ <annotation>My favorite songs</annotation>
+
+ <!-- URL of a web page to find out more about this playlist. Likely to be homepage of the author, and would be used to find out more about the author and to find more playlists by the author. xspf:playlist elements MAY contain exactly one. -->
+ <info>http://example.com/myplaylists</info>
+
+ <!-- Source URL for this playlist. xspf:playlist elements MAY contain exactly one. -->
+ <location>http://example.com/myplaylists/myplaylist</location>
+
+ <!-- Canonical ID for this playlist. Likely to be a hash or other location-independent name. MUST be a legal URI. xspf:playlist elements MAY contain exactly one. -->
+ <identifier>magnet:?xt=urn:sha1:YNCKHTQCWBTRNJIV4WNAE52SJUQCZO5C</identifier>
+
+ <!-- URL of an image to display in the absence of a //playlist/trackList/image element. xspf:playlist elements MAY contain exactly one. -->
+ <image>http://example.com/img/mypicture</image>
+
+ <!-- Creation date (not last-modified date) of the playlist, formatted as a XML schema dateTime. xspf:playlist elements MAY contain exactly one. -->
+ <date>2005-01-08T17:10:47-05:00</date>
+
+ <!-- URL of a resource that describes the license under which this playlist was released. xspf:playlist elements may contain zero or one license element. -->
+ <license>http://creativecommons.org/licenses/by/1.0/</license>
+
+ <!-- An ordered list of URIs. xspf:playlist elements MAY contain exactly one xspf:attribution element. xspf:attribution elements may contain 0 or N children. Children must be an xspf:location element or an xspf:identifier element. -->
+ <attribution>
+ <identifier>http://bar.com/secondderived.xspf</identifier>
+ <location>http://foo.com/original.xspf</location>
+ </attribution>
+
+ <!-- URI of a resource associated with this playlist, with relationship to this document named in rel attribute. xspf:playlist elements MAY contain zero or more link elements. -->
+ <link rel="http://foaf.example.org/namespace/version1">http://socialnetwork.example.org/foaf/mary.rdfs</link>
+
+ <!-- The meta element allows non-XSPF metadata to be included in XSPF documents without breaking XSPF validation. xspf:playlist elements MAY contain zero or more meta elements. -->
+ <meta rel="http://example.org/key">value</meta>
+
+ <!-- The extension element allows non-XSPF XML to be included in XSPF documents without breaking XSPF validation. The purpose is to allow nested XML, which the meta and link elements do not. xspf:playlist elements MAY contain zero or more extension elements. -->
+ <extension application="http://example.com">
+ <clip start="25000" end="34500"/>
+ </extension>
+
+ <trackList>
+ </trackList>
+
+</playlist>
Property changes on: trunk/xspf/testcase/pass/playlist-extensive.xspf
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/xspf/testcase/pass/track-extensive.xspf
===================================================================
--- trunk/xspf/testcase/pass/track-extensive.xspf 2006-01-04 01:28:47 UTC (rev 10692)
+++ trunk/xspf/testcase/pass/track-extensive.xspf 2006-01-07 02:07:27 UTC (rev 10693)
@@ -0,0 +1,59 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+ Description: All legal track-level items
+ Expect: !Error
+-->
+
+<playlist version="1" xmlns="http://xspf.org/ns/0/">
+
+ <trackList>
+
+ <track>
+
+ <!-- URL of resource to be rendered. Probably an audio resource, but MAY be any type of resource with a well-known duration, such as video, a SMIL document, or an XSPF document. The duration of the resource defined in this element defines the duration of rendering. xspf:track elements MAY contain zero or more location elements, but a user-agent MUST NOT render more than one of the named resources. -->
+ <location>http://example.com/my.mp3</location>
+
+ <!-- Canonical ID for this resource. Likely to be a hash or other location-independent name, such as a MusicBrainz identifier or isbn URN (if there existed isbn numbers for audio). MUST be a legal URN. xspf:playlist elements MAY contain zero or more identifier elements. -->
+ <identifier>magnet:?xt=urn:sha1:YNCKHTQCWBTRNJIV4WNAE52SJUQCZO5C</identifier>
+
+ <!-- Human-readable name of the track that authored the resource which defines the duration of track rendering. This value is primarily for fuzzy lookups, though a user-agent may display it. xspf:track elements MAY contain exactly one. -->
+ <title>My Way</title>
+
+ <!-- Human-readable name of the entity (author, authors, group, company, etc) that authored the resource which defines the duration of track rendering. This value is primarily for fuzzy lookups, though a user-agent may display it. xspf:track elements MAY contain exactly one. -->
+ <creator>Frank Sinatra</creator>
+
+ <!-- A human-readable comment on the track. This is character data, not HTML, and it may not contain markup. xspf:track elements MAY contain exactly one. -->
+ <annotation>This is my theme song.</annotation>
+
+ <!-- URL of a place where this resource can be bought or more info can be found. -->
+ <info>http://franksinatra.com/myway</info>
+
+ <!-- URL of an image to display for the duration of the track. xspf:track elements MAY contain exactly one. -->
+ <image>http://franksinatra.com/img/myway</image>
+
+ <!-- Human-readable name of the collection from which the resource which defines the duration of track rendering comes. For a song originally published as a part of a CD or LP, this would be the title of the original release. This value is primarily for fuzzy lookups, though a user-agent may display it. xspf:track elements MAY contain exactly one. -->
+ <album>Frank Sinatra's Greatest Hits</album>
+
+ <!-- Integer with value greater than zero giving the ordinal position of the media on the xspf:album. This value is primarily for fuzzy lookups, though a user-agent may display it. xspf:track elements MAY contain exactly one. It MUST be a valid XML Schema nonNegativeInteger. -->
+ <trackNum>3</trackNum>
+
+ <!-- The time to render a resource, in milliseconds. It MUST be a valid XML Schema nonNegativeInteger. This value is only a hint -- different XSPF generators will generate slightly different values. A user-agent MUST NOT use this value to determine the rendering duration, since the data will likely be low quality. xspf:track elements MAY contain exactly one duration element. -->
+ <duration>19200</duration>
+
+ <!-- The link element allows non-XSPF web resources to be included in xspf:track elements without breaking XSPF validation. -->
+ <link rel="http://foaf.org/namespace/version1">http://socialnetwork.org/foaf/mary.rdfs</link>
+
+ <!-- The meta element allows non-XSPF metadata to be included in xspf:track elements without breaking XSPF validation. -->
+ <meta rel="http://example.org/key">value</meta>
+
+ <!-- The extension element allows non-XSPF XML to be included in XSPF documents without breaking XSPF validation. The purpose is to allow nested XML, which the meta and link elements do not. xspf:playlist elements MAY contain zero or more extension elements. -->
+ <extension application="http://example.com">
+ <clip start="25000" end="34500"/>
+ </extension>
+
+ </track>
+
+ </trackList>
+
+</playlist>
Property changes on: trunk/xspf/testcase/pass/track-extensive.xspf
___________________________________________________________________
Name: svn:executable
+ *
More information about the commits
mailing list