/[suikacvs]/markup/html/whatpm/t/content-model-atom-2.dat
Suika

Contents of /markup/html/whatpm/t/content-model-atom-2.dat

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Thu Mar 20 10:58:17 2008 UTC (17 years, 4 months ago) by wakaba
Branch: MAIN
Changes since 1.2: +160 -0 lines
++ whatpm/t/ChangeLog	20 Mar 2008 10:58:07 -0000
	* content-model-atom-1.dat: New test data are added.

	* content-model-atom-2.dat: New test data are
	added from Atom test suite.

2008-03-20  Wakaba  <wakaba@suika.fam.cx>

++ whatpm/Whatpm/ContentChecker/ChangeLog	20 Mar 2008 10:57:00 -0000
	* Atom.pm: Don't raise an error even if there is
	no |atom:summary| element child in the |atom:entry|
	element when the |type| attribute of the |atom:content|
	element is set to |html|, |xhtml|, or |text|.
	The |atom:rights| elements were implemented
	as Date construct (!?).
	Typo in code for |rel=alternate| are fixed.

2008-03-20  Wakaba  <wakaba@suika.fam.cx>

1 wakaba 1.1 #data
2     <feed xmlns="http://www.w3.org/2005/Atom"><link rel="self" hreflang="en" href="http://example.org/1"/><id>tag:example.org,1</id><title/><updated>2005-07-31T12:29:29Z</updated></feed>
3     #errors
4    
5     #data
6     <feed xmlns="http://www.w3.org/2005/Atom"><link rel="self" hreflang="!" href="http://example.org/1"/><id>tag:example.org,1</id><title/><updated>2005-07-31T12:29:29Z</updated></feed>
7     #errors
8     /feed/link/@hreflang;LangTag:syntax:illegal;m
9     /feed/link/@hreflang;LangTag:nosemantics:language;m
10    
11     #data
12     <feed xmlns="http://www.w3.org/2005/Atom"><link rel="self" hreflang=" en " href="http://example.org/1"/><id>tag:example.org,1</id><title/><updated>2005-07-31T12:29:29Z</updated></feed>
13     #errors
14     /feed/link/@hreflang;LangTag:syntax:illegal;m
15     /feed/link/@hreflang;LangTag:nosemantics:language;m
16    
17     #data
18     <feed xmlns="http://www.w3.org/2005/Atom"><updated>2005-07-31T12:29:29Z</updated><link rel="self" href="http://example.org/1"/><id>tag:example.org,1</id><title/></feed>
19     #errors
20    
21     #data
22     <feed xmlns="http://www.w3.org/2005/Atom"><updated>05-07-31T12:29:29Z</updated><link rel="self" href="http://example.org/1"/><id>tag:example.org,1</id><title/></feed>
23     #errors
24     /feed/updated;datetime:syntax error;m
25    
26     #data
27     <feed xmlns="http://www.w3.org/2005/Atom"><updated>12005-07-31T12:29:29Z</updated><link rel="self" href="http://example.org/1"/><id>tag:example.org,1</id><title/></feed>
28     #errors
29     /feed/updated;datetime:syntax error;m
30    
31     #data
32     <feed xmlns="http://www.w3.org/2005/Atom"><updated>2005-07-31t12:29:29Z</updated><link rel="self" href="http://example.org/1"/><id>tag:example.org,1</id><title/></feed>
33     #errors
34     /feed/updated;datetime:syntax error;m
35    
36     #data
37     <feed xmlns="http://www.w3.org/2005/Atom"><updated>2005-07-31T12:29:29z</updated><link rel="self" href="http://example.org/1"/><id>tag:example.org,1</id><title/></feed>
38     #errors
39     /feed/updated;datetime:syntax error;m
40    
41     #data
42     <feed xmlns="http://www.w3.org/2005/Atom"><updated>2005-07-31T12:29Z</updated><link rel="self" href="http://example.org/1"/><id>tag:example.org,1</id><title/></feed>
43     #errors
44     /feed/updated;datetime:syntax error;m
45    
46     #data
47     <feed xmlns="http://www.w3.org/2005/Atom"><updated>2005-07-31T12:29:29.0120Z</updated><link rel="self" href="http://example.org/1"/><id>tag:example.org,1</id><title/></feed>
48     #errors
49    
50     #data
51     <feed xmlns="http://www.w3.org/2005/Atom"><updated>2005-17-31T12:29:29Z</updated><link rel="self" href="http://example.org/1"/><id>tag:example.org,1</id><title/></feed>
52     #errors
53     /feed/updated;datetime:bad month;m
54    
55     #data
56     <feed xmlns="http://www.w3.org/2005/Atom"><updated>2005-07-32T12:29:29Z</updated><link rel="self" href="http://example.org/1"/><id>tag:example.org,1</id><title/></feed>
57     #errors
58     /feed/updated;datetime:bad day;m
59    
60     #data
61     <feed xmlns="http://www.w3.org/2005/Atom"><updated>2005-02-29T12:29:29Z</updated><link rel="self" href="http://example.org/1"/><id>tag:example.org,1</id><title/></feed>
62     #errors
63     /feed/updated;datetime:bad day;m
64    
65     #data
66     <feed xmlns="http://www.w3.org/2005/Atom"><updated>2005-07-31T24:29:29Z</updated><link rel="self" href="http://example.org/1"/><id>tag:example.org,1</id><title/></feed>
67     #errors
68     /feed/updated;datetime:bad hour;m
69    
70     #data
71     <feed xmlns="http://www.w3.org/2005/Atom"><updated>2005-07-31T12:69:29Z</updated><link rel="self" href="http://example.org/1"/><id>tag:example.org,1</id><title/></feed>
72     #errors
73     /feed/updated;datetime:bad minute;m
74    
75     #data
76     <feed xmlns="http://www.w3.org/2005/Atom"><updated>2005-07-31T12:29:69Z</updated><link rel="self" href="http://example.org/1"/><id>tag:example.org,1</id><title/></feed>
77     #errors
78     /feed/updated;datetime:bad second;m
79    
80     #data
81     <feed xmlns="http://www.w3.org/2005/Atom"><updated>2005-07-31T12:29:29+24:00</updated><link rel="self" href="http://example.org/1"/><id>tag:example.org,1</id><title/></feed>
82     #errors
83     /feed/updated;datetime:bad timezone hour;m
84    
85     #data
86     <feed xmlns="http://www.w3.org/2005/Atom"><updated>2005-07-31T12:29:29+02:60</updated><link rel="self" href="http://example.org/1"/><id>tag:example.org,1</id><title/></feed>
87     #errors
88     /feed/updated;datetime:bad timezone minute;m
89    
90     #data
91     <feed xmlns="http://www.w3.org/2005/Atom"><updated>1972-12-31T23:59:60+00:00</updated><link rel="self" href="http://example.org/1"/><id>tag:example.org,1</id><title/></feed>
92     #errors
93    
94     #data
95     <feed xmlns="http://www.w3.org/2005/Atom"><updated>1973-01-01T00:59:60+00:00</updated><link rel="self" href="http://example.org/1"/><id>tag:example.org,1</id><title/></feed>
96     #errors
97    
98 wakaba 1.2 #data
99     <feed xmlns="http://www.w3.org/2005/Atom"><link title="" rel="self" href="http://example.org/1"/><updated>1973-01-01T00:59:60+00:00</updated><id>tag:example.org,1</id><title/></feed>
100     #errors
101    
102     #data
103     <feed xmlns="http://www.w3.org/2005/Atom"><link title="a b c" rel="self" href="http://example.org/1"/><updated>1973-01-01T00:59:60+00:00</updated><id>tag:example.org,1</id><title/></feed>
104     #errors
105    
106 wakaba 1.3 #data
107     <!-- From <http://www.snellspace.com/public/ordertest.xml> -->
108     <feed xmlns="http://www.w3.org/2005/Atom">
109     <id>tag:example.org,2006:atom/conformance/element_order</id>
110     <title>Order Matters</title>
111     <subtitle>Testing how feed readers handle the order of entry elements</subtitle>
112     <updated>2006-01-26T09:16:00Z</updated>
113     <author><name>James Snell</name></author>
114     <link href="http://www.snellspace.com/wp/?p=255" />
115     <link rel="self" href="http://www.snellspace.com/public/ordertest.xml" />
116     <entry>
117     <id>tag:example.org,2006:atom/conformance/element_order/1</id>
118     <title>Simple order, nothing fancy</title>
119     <summary>Simple ordering, nothing fancy</summary>
120     <updated>2006-01-26T09:20:01Z</updated>
121     <link href="http://www.snellspace.com/public/alternate" />
122     </entry>
123     <entry>
124     <updated>2006-01-26T09:20:02Z</updated>
125     <summary>Same as the first, only mixed up a bit</summary>
126     <id>tag:example.org,2006:atom/conformance/element_order/2</id>
127     <link href="http://www.snellspace.com/public/alternate" />
128     <title>Same as the first, only mixed up a bit</title>
129     </entry>
130     <entry>
131     <id>tag:example.org,2006:atom/conformance/element_order/3</id>
132     <title>Multiple alt link elements, which one does your reader show?</title>
133     <summary>Multiple alt link elements, which does your reader show?</summary>
134     <updated>2006-01-26T09:20:03Z</updated>
135     <link href="http://www.snellspace.com/public/alternate" />
136     <link type="text/plain" href="http://www.snellspace.com/public/alternate2" />
137     </entry>
138     <entry>
139     <id>tag:example.org,2006:atom/conformance/element_order/4</id>
140     <title>Multiple link elements, does your feed reader show the "alternate" correctly?</title>
141     <summary>Multiple link elements, does your feed reader show the "alternate" correctly? (also checks to see if the reader is paying attention to link rel values)</summary>
142     <updated>2006-01-26T09:20:04Z</updated>
143     <link href="http://www.snellspace.com/public/alternate" />
144     <link rel="related" href="http://www.snellspace.com/public/related" />
145     <link rel="urn:foo" href="http://www.snellspace.com/public/foo" />
146     </entry>
147     <entry>
148     <source>
149     <id>tag:example.org,2006:atom/conformance/element_order</id>
150     <title>Order Matters</title>
151     <subtitle>Testing how feed readers handle the order of entry elements</subtitle>
152     <updated>2006-01-26T09:16:00Z</updated>
153     <author><name>James Snell</name></author>
154     <link href="http://www.snellspace.com/wp/?p=255" />
155     <link rel="self" href="http://www.snellspace.com/public/ordertest.xml" />
156     </source>
157     <id>tag:example.org,2006:atom/conformance/element_order/5</id>
158     <title>Entry with a source first</title>
159     <summary>Entry with a source first.. does your feed reader show the right title, updated, and alt link?</summary>
160     <updated>2006-01-26T09:20:05Z</updated>
161     <link href="http://www.snellspace.com/public/alternate" />
162     </entry>
163     <entry>
164     <id>tag:example.org,2006:atom/conformance/element_order/6</id>
165     <title>Entry with a source last</title>
166     <summary>Entry with a source first.. does your feed reader show the right title, updated, and alt link?</summary>
167     <updated>2006-01-26T09:20:06Z</updated>
168     <link href="http://www.snellspace.com/public/alternate" />
169     <source>
170     <id>tag:example.org,2006:atom/conformance/element_order</id>
171     <title>Order Matters</title>
172     <subtitle>Testing how feed readers handle the order of entry elements</subtitle>
173     <updated>2006-01-26T09:16:00Z</updated>
174     <author><name>James Snell</name></author>
175     <link href="http://www.snellspace.com/wp/?p=255" />
176     <link rel="self" href="http://www.snellspace.com/public/ordertest.xml" />
177     </source>
178     </entry>
179     <entry>
180     <id>tag:example.org,2006:atom/conformance/element_order/7</id>
181     <title>Entry with a source in the middle</title>
182     <source>
183     <id>tag:example.org,2006:atom/conformance/element_order</id>
184     <title>Order Matters</title>
185     <subtitle>Testing how feed readers handle the order of entry elements</subtitle>
186     <updated>2006-01-26T09:16:00Z</updated>
187     <author><name>James Snell</name></author>
188     <link href="http://www.snellspace.com/wp/?p=255" />
189     <link rel="self" href="http://www.snellspace.com/public/ordertest.xml" />
190     </source>
191     <summary>Entry with a source in the middle.. does your feed reader show the right id, title, updated, and alt link?</summary>
192     <updated>2006-01-26T09:20:07Z</updated>
193     <link href="http://www.snellspace.com/public/alternate" />
194     </entry>
195     <entry>
196     <x:foo xmlns:x="urn:foo">
197     <id>tag:example.org,2006:atom/conformance/element_order/9</id>
198     <title>Something is wrong if you're seeing this</title>
199     <updated>2006-01-26T09:20:00Z</updated>
200     </x:foo>
201     <id>tag:example.org,2006:atom/conformance/element_order/8</id>
202     <title>Atom elements in an extension element</title>
203     <summary>Atom elements in an extension element</summary>
204     <updated>2006-01-26T09:20:08Z</updated>
205     <link href="http://www.snellspace.com/public/alternate" />
206     </entry>
207     <entry>
208     <id>tag:example.org,2006:atom/conformance/element_order/9</id>
209     <title>Atom elements in an extension element</title>
210     <summary>Atom elements in an extension element</summary>
211     <updated>2006-01-26T09:20:09Z</updated>
212     <link href="http://www.snellspace.com/public/alternate" />
213     <x:foo xmlns:x="urn:foo">
214     <id>tag:example.org,2006:atom/conformance/element_order/8</id>
215     <title>Something is wrong if you're seeing this</title>
216     <updated>2006-01-26T09:20:00Z</updated>
217     </x:foo>
218     </entry>
219    
220     </feed>
221     #errors
222     /feed/entry/foo;element not allowed
223     /feed/entry/foo;element;unsupported
224     /feed/entry/foo;element not allowed
225     /feed/entry/foo;element;unsupported
226    
227     #data
228     <?xml version="1.0" encoding="iso-8859-1"?>
229     <!-- From <http://www.franklinmint.fm/2006/06/divtest.atom> -->
230     <feed xmlns="http://www.w3.org/2005/Atom">
231    
232     <title>hmm</title>
233     <id>http://franklinmint.fm/2006/06/27/divtest</id>
234     <link href="http://www.intertwingly.net/wiki/pie/XhtmlContentDivConformanceTests"/>
235     <link rel="self" href="http://www.franklinmint.fm/2006/06/divtest.atom"/>
236     <updated>2006-06-27T12:26:54+01:00</updated>
237     <author>
238     <email>hmm@example.com</email>
239     <name>foo</name>
240     </author>
241     <generator version="1.1" uri="http://example.org">Hmm</generator>
242     <author>
243     <email>bar@example.com</email>
244     <name>foo</name>
245     </author>
246     <rights type="xhtml">
247     <div xmlns="http://www.w3.org/1999/xhtml"><i>test</i> rights</div>
248     </rights>
249    
250     <entry>
251     <title>test</title>
252     <updated>2006-06-27T12:26:54+01:00</updated>
253     <id>http://franklinmint.fm/2006/06/27/divtest.entry</id>
254     <link rel="alternate" href="http://www.intertwingly.net/wiki/pie/XhtmlContentDivConformanceTests"/>
255     <content type="xhtml">
256     <div xmlns="http://www.w3.org/1999/xhtml"><b>test</b> content</div>
257     </content>
258     </entry>
259    
260     </feed>
261     #errors
262     /feed/author/email;addr-spec not supported;u
263     /feed/author/email;addr-spec not supported;u
264     /feed/generator/@uri;URI::empty path;w
265    

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24