|
1 "{ Package: 'stx:goodies/xmlsuite' }" |
|
2 |
|
3 "{ NameSpace: XMLv2 }" |
|
4 |
|
5 TestCase subclass:#JamesClarkXMLTests |
|
6 instanceVariableNames:'doc' |
|
7 classVariableNames:'' |
|
8 poolDictionaries:'' |
|
9 category:'XML Suite-Tests W3C' |
|
10 ! |
|
11 |
|
12 |
|
13 !JamesClarkXMLTests methodsFor:'accessing'! |
|
14 |
|
15 resources |
|
16 ^Array with:W3XMLTestSuiteResource |
|
17 |
|
18 "Modified: / 25-10-2005 / 14:59:10 / janfrog" |
|
19 ! ! |
|
20 |
|
21 !JamesClarkXMLTests methodsFor:'tests'! |
|
22 |
|
23 test_invalid__002 |
|
24 |
|
25 |
|
26 "Sections: 3.2.1" |
|
27 "Description: |
|
28 Tests the `Proper Group/PE Nesting` validity constraint by |
|
29 fragmenting a content model between two parameter entities." |
|
30 |
|
31 |
|
32 self shouldnt:[ |
|
33 "This test must pass in non-validating parser." |
|
34 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/invalid/002.xml')). |
|
35 ] raise: Error. |
|
36 |
|
37 "Modified: / 25-10-2005 / 14:59:24 / janfrog" |
|
38 ! |
|
39 |
|
40 test_invalid__005 |
|
41 |
|
42 |
|
43 "Sections: 2.8" |
|
44 "Description: |
|
45 Tests the `Proper Declaration/PE Nesting` validity constraint by |
|
46 fragmenting an element declaration between two parameter entities." |
|
47 |
|
48 |
|
49 self shouldnt:[ |
|
50 "This test must pass in non-validating parser." |
|
51 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/invalid/005.xml')). |
|
52 ] raise: Error. |
|
53 |
|
54 "Modified: / 25-10-2005 / 14:59:24 / janfrog" |
|
55 ! |
|
56 |
|
57 test_invalid__006 |
|
58 |
|
59 |
|
60 "Sections: 2.8" |
|
61 "Description: |
|
62 Tests the `Proper Declaration/PE Nesting` validity constraint by |
|
63 fragmenting an element declaration between two parameter entities." |
|
64 |
|
65 |
|
66 self shouldnt:[ |
|
67 "This test must pass in non-validating parser." |
|
68 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/invalid/006.xml')). |
|
69 ] raise: Error. |
|
70 |
|
71 "Modified: / 25-10-2005 / 14:59:24 / janfrog" |
|
72 ! |
|
73 |
|
74 test_invalid_not_sa_022 |
|
75 |
|
76 |
|
77 "Sections: 3.4 [62]" |
|
78 "Description: |
|
79 Test the `Proper Conditional Section/ PE Nesting` validity constraint. " |
|
80 |
|
81 |
|
82 self shouldnt:[ |
|
83 "This test must pass in non-validating parser." |
|
84 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/invalid/not-sa/022.xml')). |
|
85 ] raise: Error. |
|
86 |
|
87 "Modified: / 25-10-2005 / 14:59:24 / janfrog" |
|
88 ! |
|
89 |
|
90 test_not_wf_ext_sa_001 |
|
91 |
|
92 |
|
93 "Sections: 4.1" |
|
94 "Description: |
|
95 Tests the " |
|
96 |
|
97 |
|
98 self should:[ |
|
99 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/ext-sa/001.xml')). |
|
100 ] raise: SAXParseError. |
|
101 |
|
102 "Modified: / 25-10-2005 / 14:59:24 / janfrog" |
|
103 ! |
|
104 |
|
105 test_not_wf_ext_sa_002 |
|
106 |
|
107 |
|
108 "Sections: 4.3.1 4.3.2 [77, 78]" |
|
109 "Description: |
|
110 External entities have `text declarations`, which do |
|
111 not permit the `standalone=...` attribute that's allowed |
|
112 in XML declarations." |
|
113 |
|
114 |
|
115 self should:[ |
|
116 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/ext-sa/002.xml')). |
|
117 ] raise: SAXParseError. |
|
118 |
|
119 "Modified: / 25-10-2005 / 14:59:24 / janfrog" |
|
120 ! |
|
121 |
|
122 test_not_wf_ext_sa_003 |
|
123 |
|
124 |
|
125 "Sections: 2.6 [17]" |
|
126 "Description: |
|
127 Only one text declaration is permitted; a second one |
|
128 looks like an illegal processing instruction (target names |
|
129 of `xml` in any case are not allowed). " |
|
130 |
|
131 |
|
132 self should:[ |
|
133 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/ext-sa/003.xml')). |
|
134 ] raise: SAXParseError. |
|
135 |
|
136 "Modified: / 25-10-2005 / 14:59:24 / janfrog" |
|
137 ! |
|
138 |
|
139 test_not_wf_not_sa_001 |
|
140 |
|
141 |
|
142 "Sections: 3.4 [62]" |
|
143 "Description: |
|
144 Conditional sections must be properly terminated (`]>` used |
|
145 instead of `]]>`). " |
|
146 |
|
147 |
|
148 self should:[ |
|
149 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/not-sa/001.xml')). |
|
150 ] raise: SAXParseError. |
|
151 |
|
152 "Modified: / 25-10-2005 / 14:59:23 / janfrog" |
|
153 ! |
|
154 |
|
155 test_not_wf_not_sa_002 |
|
156 |
|
157 |
|
158 "Sections: 2.6 [17]" |
|
159 "Description: |
|
160 Processing instruction target names may not be `XML` |
|
161 in any combination of cases. " |
|
162 |
|
163 |
|
164 self should:[ |
|
165 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/not-sa/002.xml')). |
|
166 ] raise: SAXParseError. |
|
167 |
|
168 "Modified: / 25-10-2005 / 14:59:23 / janfrog" |
|
169 ! |
|
170 |
|
171 test_not_wf_not_sa_003 |
|
172 |
|
173 |
|
174 "Sections: 3.4 [62]" |
|
175 "Description: |
|
176 Conditional sections must be properly terminated (`]]>` omitted). " |
|
177 |
|
178 |
|
179 self should:[ |
|
180 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/not-sa/003.xml')). |
|
181 ] raise: SAXParseError. |
|
182 |
|
183 "Modified: / 25-10-2005 / 14:59:23 / janfrog" |
|
184 ! |
|
185 |
|
186 test_not_wf_not_sa_004 |
|
187 |
|
188 |
|
189 "Sections: 3.4 [62]" |
|
190 "Description: |
|
191 Conditional sections must be properly terminated (`]]>` omitted). " |
|
192 |
|
193 |
|
194 self should:[ |
|
195 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/not-sa/004.xml')). |
|
196 ] raise: SAXParseError. |
|
197 |
|
198 "Modified: / 25-10-2005 / 14:59:23 / janfrog" |
|
199 ! |
|
200 |
|
201 test_not_wf_not_sa_005 |
|
202 |
|
203 |
|
204 "Sections: 4.1" |
|
205 "Description: |
|
206 Tests the " |
|
207 |
|
208 |
|
209 self shouldnt:[ |
|
210 "This test must pass in non-validating parser." |
|
211 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/not-sa/005.xml')). |
|
212 ] raise: Error. |
|
213 |
|
214 "Modified: / 25-10-2005 / 14:59:23 / janfrog" |
|
215 ! |
|
216 |
|
217 test_not_wf_not_sa_006 |
|
218 |
|
219 |
|
220 "Sections: 3.4 [62]" |
|
221 "Description: |
|
222 Conditional sections need a '[' after the INCLUDE or IGNORE. " |
|
223 |
|
224 |
|
225 self should:[ |
|
226 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/not-sa/006.xml')). |
|
227 ] raise: SAXParseError. |
|
228 |
|
229 "Modified: / 25-10-2005 / 14:59:23 / janfrog" |
|
230 ! |
|
231 |
|
232 test_not_wf_not_sa_007 |
|
233 |
|
234 |
|
235 "Sections: 4.3.2 [79]" |
|
236 "Description: |
|
237 A <iDOCTYPE ...> declaration may not begin any external |
|
238 entity; it's only found once, in the document entity." |
|
239 |
|
240 |
|
241 self should:[ |
|
242 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/not-sa/007.xml')). |
|
243 ] raise: SAXParseError. |
|
244 |
|
245 "Modified: / 25-10-2005 / 14:59:23 / janfrog" |
|
246 ! |
|
247 |
|
248 test_not_wf_not_sa_008 |
|
249 |
|
250 |
|
251 "Sections: 4.1 [69]" |
|
252 "Description: |
|
253 In DTDs, the '%' character must be part of a parameter |
|
254 entity reference." |
|
255 |
|
256 |
|
257 self should:[ |
|
258 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/not-sa/008.xml')). |
|
259 ] raise: SAXParseError. |
|
260 |
|
261 "Modified: / 25-10-2005 / 14:59:24 / janfrog" |
|
262 ! |
|
263 |
|
264 test_not_wf_not_sa_009 |
|
265 |
|
266 |
|
267 "Sections: 2.8" |
|
268 "Description: |
|
269 This test violates WFC:PE Between Declarations in Production 28a. |
|
270 The last character of a markup declaration is not contained in the same |
|
271 parameter-entity text replacement." |
|
272 |
|
273 |
|
274 self should:[ |
|
275 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/not-sa/009.xml')). |
|
276 ] raise: SAXParseError. |
|
277 |
|
278 "Modified: / 25-10-2005 / 14:59:24 / janfrog" |
|
279 ! |
|
280 |
|
281 test_not_wf_sa_001 |
|
282 |
|
283 |
|
284 "Sections: 3.1 [41]" |
|
285 "Description: |
|
286 Attribute values must start with attribute names, not `?`. " |
|
287 |
|
288 |
|
289 self should:[ |
|
290 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/001.xml')). |
|
291 ] raise: SAXParseError. |
|
292 |
|
293 "Modified: / 25-10-2005 / 14:59:10 / janfrog" |
|
294 ! |
|
295 |
|
296 test_not_wf_sa_002 |
|
297 |
|
298 |
|
299 "Sections: 2.3 [4]" |
|
300 "Description: |
|
301 Names may not start with `.`; it's not a Letter. " |
|
302 |
|
303 |
|
304 self should:[ |
|
305 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/002.xml')). |
|
306 ] raise: SAXParseError. |
|
307 |
|
308 "Modified: / 25-10-2005 / 14:59:10 / janfrog" |
|
309 ! |
|
310 |
|
311 test_not_wf_sa_003 |
|
312 |
|
313 |
|
314 "Sections: 2.6 [16]" |
|
315 "Description: |
|
316 Processing Instruction target name is required." |
|
317 |
|
318 |
|
319 self should:[ |
|
320 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/003.xml')). |
|
321 ] raise: SAXParseError. |
|
322 |
|
323 "Modified: / 25-10-2005 / 14:59:10 / janfrog" |
|
324 ! |
|
325 |
|
326 test_not_wf_sa_004 |
|
327 |
|
328 |
|
329 "Sections: 2.6 [16]" |
|
330 "Description: |
|
331 SGML-ism: processing instructions end in '?>' not '>'. " |
|
332 |
|
333 |
|
334 self should:[ |
|
335 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/004.xml')). |
|
336 ] raise: SAXParseError. |
|
337 |
|
338 "Modified: / 25-10-2005 / 14:59:10 / janfrog" |
|
339 ! |
|
340 |
|
341 test_not_wf_sa_005 |
|
342 |
|
343 |
|
344 "Sections: 2.6 [16]" |
|
345 "Description: |
|
346 Processing instructions end in '?>' not '?'. " |
|
347 |
|
348 |
|
349 self should:[ |
|
350 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/005.xml')). |
|
351 ] raise: SAXParseError. |
|
352 |
|
353 "Modified: / 25-10-2005 / 14:59:10 / janfrog" |
|
354 ! |
|
355 |
|
356 test_not_wf_sa_006 |
|
357 |
|
358 |
|
359 "Sections: 2.5 [16]" |
|
360 "Description: |
|
361 XML comments may not contain `--` " |
|
362 |
|
363 |
|
364 self should:[ |
|
365 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/006.xml')). |
|
366 ] raise: SAXParseError. |
|
367 |
|
368 "Modified: / 25-10-2005 / 14:59:10 / janfrog" |
|
369 ! |
|
370 |
|
371 test_not_wf_sa_007 |
|
372 |
|
373 |
|
374 "Sections: 4.1 [68]" |
|
375 "Description: |
|
376 General entity references have no whitespace after the |
|
377 entity name and before the semicolon. " |
|
378 |
|
379 |
|
380 self should:[ |
|
381 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/007.xml')). |
|
382 ] raise: SAXParseError. |
|
383 |
|
384 "Modified: / 25-10-2005 / 14:59:10 / janfrog" |
|
385 ! |
|
386 |
|
387 test_not_wf_sa_008 |
|
388 |
|
389 |
|
390 "Sections: 2.3 [5]" |
|
391 "Description: |
|
392 Entity references must include names, which don't begin |
|
393 with '.' (it's not a Letter or other name start character). " |
|
394 |
|
395 |
|
396 self should:[ |
|
397 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/008.xml')). |
|
398 ] raise: SAXParseError. |
|
399 |
|
400 "Modified: / 25-10-2005 / 14:59:10 / janfrog" |
|
401 ! |
|
402 |
|
403 test_not_wf_sa_009 |
|
404 |
|
405 |
|
406 "Sections: 4.1 [66]" |
|
407 "Description: |
|
408 Character references may have only decimal or numeric strings." |
|
409 |
|
410 |
|
411 self should:[ |
|
412 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/009.xml')). |
|
413 ] raise: SAXParseError. |
|
414 |
|
415 "Modified: / 25-10-2005 / 14:59:10 / janfrog" |
|
416 ! |
|
417 |
|
418 test_not_wf_sa_010 |
|
419 |
|
420 |
|
421 "Sections: 4.1 [68]" |
|
422 "Description: |
|
423 Ampersand may only appear as part of a general entity reference." |
|
424 |
|
425 |
|
426 self should:[ |
|
427 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/010.xml')). |
|
428 ] raise: SAXParseError. |
|
429 |
|
430 "Modified: / 25-10-2005 / 14:59:11 / janfrog" |
|
431 ! |
|
432 |
|
433 test_not_wf_sa_011 |
|
434 |
|
435 |
|
436 "Sections: 3.1 [41]" |
|
437 "Description: |
|
438 SGML-ism: attribute values must be explicitly assigned a |
|
439 value, it can't act as a boolean toggle. " |
|
440 |
|
441 |
|
442 self should:[ |
|
443 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/011.xml')). |
|
444 ] raise: SAXParseError. |
|
445 |
|
446 "Modified: / 25-10-2005 / 14:59:11 / janfrog" |
|
447 ! |
|
448 |
|
449 test_not_wf_sa_012 |
|
450 |
|
451 |
|
452 "Sections: 2.3 [10]" |
|
453 "Description: |
|
454 SGML-ism: attribute values must be quoted in all cases. " |
|
455 |
|
456 |
|
457 self should:[ |
|
458 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/012.xml')). |
|
459 ] raise: SAXParseError. |
|
460 |
|
461 "Modified: / 25-10-2005 / 14:59:11 / janfrog" |
|
462 ! |
|
463 |
|
464 test_not_wf_sa_013 |
|
465 |
|
466 |
|
467 "Sections: 2.3 [10]" |
|
468 "Description: |
|
469 The quotes on both ends of an attribute value must match. " |
|
470 |
|
471 |
|
472 self should:[ |
|
473 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/013.xml')). |
|
474 ] raise: SAXParseError. |
|
475 |
|
476 "Modified: / 25-10-2005 / 14:59:11 / janfrog" |
|
477 ! |
|
478 |
|
479 test_not_wf_sa_014 |
|
480 |
|
481 |
|
482 "Sections: 2.3 [10]" |
|
483 "Description: |
|
484 Attribute values may not contain literal '<' characters. " |
|
485 |
|
486 |
|
487 self should:[ |
|
488 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/014.xml')). |
|
489 ] raise: SAXParseError. |
|
490 |
|
491 "Modified: / 25-10-2005 / 14:59:11 / janfrog" |
|
492 ! |
|
493 |
|
494 test_not_wf_sa_015 |
|
495 |
|
496 |
|
497 "Sections: 3.1 [41]" |
|
498 "Description: |
|
499 Attribute values need a value, not just an equals sign. " |
|
500 |
|
501 |
|
502 self should:[ |
|
503 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/015.xml')). |
|
504 ] raise: SAXParseError. |
|
505 |
|
506 "Modified: / 25-10-2005 / 14:59:11 / janfrog" |
|
507 ! |
|
508 |
|
509 test_not_wf_sa_016 |
|
510 |
|
511 |
|
512 "Sections: 3.1 [41]" |
|
513 "Description: |
|
514 Attribute values need an associated name." |
|
515 |
|
516 |
|
517 self should:[ |
|
518 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/016.xml')). |
|
519 ] raise: SAXParseError. |
|
520 |
|
521 "Modified: / 25-10-2005 / 14:59:11 / janfrog" |
|
522 ! |
|
523 |
|
524 test_not_wf_sa_017 |
|
525 |
|
526 |
|
527 "Sections: 2.7 [18]" |
|
528 "Description: |
|
529 CDATA sections need a terminating ']]>'. " |
|
530 |
|
531 |
|
532 self should:[ |
|
533 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/017.xml')). |
|
534 ] raise: SAXParseError. |
|
535 |
|
536 "Modified: / 25-10-2005 / 14:59:11 / janfrog" |
|
537 ! |
|
538 |
|
539 test_not_wf_sa_018 |
|
540 |
|
541 |
|
542 "Sections: 2.7 [19]" |
|
543 "Description: |
|
544 CDATA sections begin with a literal '<i[CDATA[', no space." |
|
545 |
|
546 |
|
547 self should:[ |
|
548 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/018.xml')). |
|
549 ] raise: SAXParseError. |
|
550 |
|
551 "Modified: / 25-10-2005 / 14:59:11 / janfrog" |
|
552 ! |
|
553 |
|
554 test_not_wf_sa_019 |
|
555 |
|
556 |
|
557 "Sections: 3.1 [42]" |
|
558 "Description: |
|
559 End tags may not be abbreviated as '</>'." |
|
560 |
|
561 |
|
562 self should:[ |
|
563 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/019.xml')). |
|
564 ] raise: SAXParseError. |
|
565 |
|
566 "Modified: / 25-10-2005 / 14:59:11 / janfrog" |
|
567 ! |
|
568 |
|
569 test_not_wf_sa_020 |
|
570 |
|
571 |
|
572 "Sections: 2.3 [10]" |
|
573 "Description: |
|
574 Attribute values may not contain literal '&' |
|
575 characters except as part of an entity reference. " |
|
576 |
|
577 |
|
578 self should:[ |
|
579 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/020.xml')). |
|
580 ] raise: SAXParseError. |
|
581 |
|
582 "Modified: / 25-10-2005 / 14:59:11 / janfrog" |
|
583 ! |
|
584 |
|
585 test_not_wf_sa_021 |
|
586 |
|
587 |
|
588 "Sections: 2.3 [10]" |
|
589 "Description: |
|
590 Attribute values may not contain literal '&' |
|
591 characters except as part of an entity reference. " |
|
592 |
|
593 |
|
594 self should:[ |
|
595 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/021.xml')). |
|
596 ] raise: SAXParseError. |
|
597 |
|
598 "Modified: / 25-10-2005 / 14:59:11 / janfrog" |
|
599 ! |
|
600 |
|
601 test_not_wf_sa_022 |
|
602 |
|
603 |
|
604 "Sections: 4.1 [66]" |
|
605 "Description: |
|
606 Character references end with semicolons, alwaysi" |
|
607 |
|
608 |
|
609 self should:[ |
|
610 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/022.xml')). |
|
611 ] raise: SAXParseError. |
|
612 |
|
613 "Modified: / 25-10-2005 / 14:59:12 / janfrog" |
|
614 ! |
|
615 |
|
616 test_not_wf_sa_023 |
|
617 |
|
618 |
|
619 "Sections: 2.3 [5]" |
|
620 "Description: |
|
621 Digits are not valid name start characters. " |
|
622 |
|
623 |
|
624 self should:[ |
|
625 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/023.xml')). |
|
626 ] raise: SAXParseError. |
|
627 |
|
628 "Modified: / 25-10-2005 / 14:59:12 / janfrog" |
|
629 ! |
|
630 |
|
631 test_not_wf_sa_024 |
|
632 |
|
633 |
|
634 "Sections: 2.3 [5]" |
|
635 "Description: |
|
636 Digits are not valid name start characters. " |
|
637 |
|
638 |
|
639 self should:[ |
|
640 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/024.xml')). |
|
641 ] raise: SAXParseError. |
|
642 |
|
643 "Modified: / 25-10-2005 / 14:59:12 / janfrog" |
|
644 ! |
|
645 |
|
646 test_not_wf_sa_025 |
|
647 |
|
648 |
|
649 "Sections: 2.4 [14]" |
|
650 "Description: |
|
651 Text may not contain a literal ']]>' sequence. " |
|
652 |
|
653 |
|
654 self should:[ |
|
655 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/025.xml')). |
|
656 ] raise: SAXParseError. |
|
657 |
|
658 "Modified: / 25-10-2005 / 14:59:12 / janfrog" |
|
659 ! |
|
660 |
|
661 test_not_wf_sa_026 |
|
662 |
|
663 |
|
664 "Sections: 2.4 [14]" |
|
665 "Description: |
|
666 Text may not contain a literal ']]>' sequence. " |
|
667 |
|
668 |
|
669 self should:[ |
|
670 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/026.xml')). |
|
671 ] raise: SAXParseError. |
|
672 |
|
673 "Modified: / 25-10-2005 / 14:59:12 / janfrog" |
|
674 ! |
|
675 |
|
676 test_not_wf_sa_027 |
|
677 |
|
678 |
|
679 "Sections: 2.5 [15]" |
|
680 "Description: |
|
681 Comments must be terminated with `-->`." |
|
682 |
|
683 |
|
684 self should:[ |
|
685 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/027.xml')). |
|
686 ] raise: SAXParseError. |
|
687 |
|
688 "Modified: / 25-10-2005 / 14:59:12 / janfrog" |
|
689 ! |
|
690 |
|
691 test_not_wf_sa_028 |
|
692 |
|
693 |
|
694 "Sections: 2.6 [16]" |
|
695 "Description: |
|
696 Processing instructions must end with '?>'. " |
|
697 |
|
698 |
|
699 self should:[ |
|
700 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/028.xml')). |
|
701 ] raise: SAXParseError. |
|
702 |
|
703 "Modified: / 25-10-2005 / 14:59:12 / janfrog" |
|
704 ! |
|
705 |
|
706 test_not_wf_sa_029 |
|
707 |
|
708 |
|
709 "Sections: 2.4 [14]" |
|
710 "Description: |
|
711 Text may not contain a literal ']]>' sequence. " |
|
712 |
|
713 |
|
714 self should:[ |
|
715 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/029.xml')). |
|
716 ] raise: SAXParseError. |
|
717 |
|
718 "Modified: / 25-10-2005 / 14:59:12 / janfrog" |
|
719 ! |
|
720 |
|
721 test_not_wf_sa_030 |
|
722 |
|
723 |
|
724 "Sections: 2.2 [2]" |
|
725 "Description: |
|
726 A form feed is not a legal XML character. " |
|
727 |
|
728 |
|
729 self should:[ |
|
730 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/030.xml')). |
|
731 ] raise: SAXParseError. |
|
732 |
|
733 "Modified: / 25-10-2005 / 14:59:12 / janfrog" |
|
734 ! |
|
735 |
|
736 test_not_wf_sa_031 |
|
737 |
|
738 |
|
739 "Sections: 2.2 [2]" |
|
740 "Description: |
|
741 A form feed is not a legal XML character. " |
|
742 |
|
743 |
|
744 self should:[ |
|
745 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/031.xml')). |
|
746 ] raise: SAXParseError. |
|
747 |
|
748 "Modified: / 25-10-2005 / 14:59:12 / janfrog" |
|
749 ! |
|
750 |
|
751 test_not_wf_sa_032 |
|
752 |
|
753 |
|
754 "Sections: 2.2 [2]" |
|
755 "Description: |
|
756 A form feed is not a legal XML character. " |
|
757 |
|
758 |
|
759 self should:[ |
|
760 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/032.xml')). |
|
761 ] raise: SAXParseError. |
|
762 |
|
763 "Modified: / 25-10-2005 / 14:59:12 / janfrog" |
|
764 ! |
|
765 |
|
766 test_not_wf_sa_033 |
|
767 |
|
768 |
|
769 "Sections: 2.2 [2]" |
|
770 "Description: |
|
771 An ESC (octal 033) is not a legal XML character. " |
|
772 |
|
773 |
|
774 self should:[ |
|
775 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/033.xml')). |
|
776 ] raise: SAXParseError. |
|
777 |
|
778 "Modified: / 25-10-2005 / 14:59:12 / janfrog" |
|
779 ! |
|
780 |
|
781 test_not_wf_sa_034 |
|
782 |
|
783 |
|
784 "Sections: 2.2 [2]" |
|
785 "Description: |
|
786 A form feed is not a legal XML character. " |
|
787 |
|
788 |
|
789 self should:[ |
|
790 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/034.xml')). |
|
791 ] raise: SAXParseError. |
|
792 |
|
793 "Modified: / 25-10-2005 / 14:59:12 / janfrog" |
|
794 ! |
|
795 |
|
796 test_not_wf_sa_035 |
|
797 |
|
798 |
|
799 "Sections: 3.1 [43]" |
|
800 "Description: |
|
801 The '<' character is a markup delimiter and must |
|
802 start an element, CDATA section, PI, or comment. " |
|
803 |
|
804 |
|
805 self should:[ |
|
806 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/035.xml')). |
|
807 ] raise: SAXParseError. |
|
808 |
|
809 "Modified: / 25-10-2005 / 14:59:12 / janfrog" |
|
810 ! |
|
811 |
|
812 test_not_wf_sa_036 |
|
813 |
|
814 |
|
815 "Sections: 2.8 [27]" |
|
816 "Description: |
|
817 Text may not appear after the root element. " |
|
818 |
|
819 |
|
820 self should:[ |
|
821 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/036.xml')). |
|
822 ] raise: SAXParseError. |
|
823 |
|
824 "Modified: / 25-10-2005 / 14:59:12 / janfrog" |
|
825 ! |
|
826 |
|
827 test_not_wf_sa_037 |
|
828 |
|
829 |
|
830 "Sections: 2.8 [27]" |
|
831 "Description: |
|
832 Character references may not appear after the root element. " |
|
833 |
|
834 |
|
835 self should:[ |
|
836 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/037.xml')). |
|
837 ] raise: SAXParseError. |
|
838 |
|
839 "Modified: / 25-10-2005 / 14:59:12 / janfrog" |
|
840 ! |
|
841 |
|
842 test_not_wf_sa_038 |
|
843 |
|
844 |
|
845 "Sections: 3.1" |
|
846 "Description: |
|
847 Tests the `Unique Att Spec` WF constraint by providing |
|
848 multiple values for an attribute." |
|
849 |
|
850 |
|
851 self should:[ |
|
852 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/038.xml')). |
|
853 ] raise: SAXParseError. |
|
854 |
|
855 "Modified: / 25-10-2005 / 14:59:13 / janfrog" |
|
856 ! |
|
857 |
|
858 test_not_wf_sa_039 |
|
859 |
|
860 |
|
861 "Sections: 3" |
|
862 "Description: |
|
863 Tests the Element Type Match WFC - end tag name must |
|
864 match start tag name." |
|
865 |
|
866 |
|
867 self should:[ |
|
868 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/039.xml')). |
|
869 ] raise: SAXParseError. |
|
870 |
|
871 "Modified: / 25-10-2005 / 14:59:13 / janfrog" |
|
872 ! |
|
873 |
|
874 test_not_wf_sa_040 |
|
875 |
|
876 |
|
877 "Sections: 2.8 [27]" |
|
878 "Description: |
|
879 Provides two document elements." |
|
880 |
|
881 |
|
882 self should:[ |
|
883 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/040.xml')). |
|
884 ] raise: SAXParseError. |
|
885 |
|
886 "Modified: / 25-10-2005 / 14:59:13 / janfrog" |
|
887 ! |
|
888 |
|
889 test_not_wf_sa_041 |
|
890 |
|
891 |
|
892 "Sections: 2.8 [27]" |
|
893 "Description: |
|
894 Provides two document elements." |
|
895 |
|
896 |
|
897 self should:[ |
|
898 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/041.xml')). |
|
899 ] raise: SAXParseError. |
|
900 |
|
901 "Modified: / 25-10-2005 / 14:59:13 / janfrog" |
|
902 ! |
|
903 |
|
904 test_not_wf_sa_042 |
|
905 |
|
906 |
|
907 "Sections: 3.1 [42]" |
|
908 "Description: |
|
909 Invalid End Tag " |
|
910 |
|
911 |
|
912 self should:[ |
|
913 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/042.xml')). |
|
914 ] raise: SAXParseError. |
|
915 |
|
916 "Modified: / 25-10-2005 / 14:59:13 / janfrog" |
|
917 ! |
|
918 |
|
919 test_not_wf_sa_043 |
|
920 |
|
921 |
|
922 "Sections: 2.8 [27]" |
|
923 "Description: |
|
924 Provides #PCDATA text after the document element. " |
|
925 |
|
926 |
|
927 self should:[ |
|
928 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/043.xml')). |
|
929 ] raise: SAXParseError. |
|
930 |
|
931 "Modified: / 25-10-2005 / 14:59:13 / janfrog" |
|
932 ! |
|
933 |
|
934 test_not_wf_sa_044 |
|
935 |
|
936 |
|
937 "Sections: 2.8 [27]" |
|
938 "Description: |
|
939 Provides two document elements." |
|
940 |
|
941 |
|
942 self should:[ |
|
943 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/044.xml')). |
|
944 ] raise: SAXParseError. |
|
945 |
|
946 "Modified: / 25-10-2005 / 14:59:13 / janfrog" |
|
947 ! |
|
948 |
|
949 test_not_wf_sa_045 |
|
950 |
|
951 |
|
952 "Sections: 3.1 [44]" |
|
953 "Description: |
|
954 Invalid Empty Element Tag " |
|
955 |
|
956 |
|
957 self should:[ |
|
958 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/045.xml')). |
|
959 ] raise: SAXParseError. |
|
960 |
|
961 "Modified: / 25-10-2005 / 14:59:13 / janfrog" |
|
962 ! |
|
963 |
|
964 test_not_wf_sa_046 |
|
965 |
|
966 |
|
967 "Sections: 3.1 [40]" |
|
968 "Description: |
|
969 This start (or empty element) tag was not terminated correctly. " |
|
970 |
|
971 |
|
972 self should:[ |
|
973 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/046.xml')). |
|
974 ] raise: SAXParseError. |
|
975 |
|
976 "Modified: / 25-10-2005 / 14:59:13 / janfrog" |
|
977 ! |
|
978 |
|
979 test_not_wf_sa_047 |
|
980 |
|
981 |
|
982 "Sections: 3.1 [44]" |
|
983 "Description: |
|
984 Invalid empty element tag invalid whitespace " |
|
985 |
|
986 |
|
987 self should:[ |
|
988 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/047.xml')). |
|
989 ] raise: SAXParseError. |
|
990 |
|
991 "Modified: / 25-10-2005 / 14:59:13 / janfrog" |
|
992 ! |
|
993 |
|
994 test_not_wf_sa_048 |
|
995 |
|
996 |
|
997 "Sections: 2.8 [27]" |
|
998 "Description: |
|
999 Provides a CDATA section after the roor element." |
|
1000 |
|
1001 |
|
1002 self should:[ |
|
1003 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/048.xml')). |
|
1004 ] raise: SAXParseError. |
|
1005 |
|
1006 "Modified: / 25-10-2005 / 14:59:13 / janfrog" |
|
1007 ! |
|
1008 |
|
1009 test_not_wf_sa_049 |
|
1010 |
|
1011 |
|
1012 "Sections: 3.1 [40]" |
|
1013 "Description: |
|
1014 Missing start tag " |
|
1015 |
|
1016 |
|
1017 self should:[ |
|
1018 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/049.xml')). |
|
1019 ] raise: SAXParseError. |
|
1020 |
|
1021 "Modified: / 25-10-2005 / 14:59:13 / janfrog" |
|
1022 ! |
|
1023 |
|
1024 test_not_wf_sa_050 |
|
1025 |
|
1026 |
|
1027 "Sections: 2.1 [1]" |
|
1028 "Description: |
|
1029 Empty document, with no root element. " |
|
1030 |
|
1031 |
|
1032 self should:[ |
|
1033 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/050.xml')). |
|
1034 ] raise: SAXParseError. |
|
1035 |
|
1036 "Modified: / 25-10-2005 / 14:59:14 / janfrog" |
|
1037 ! |
|
1038 |
|
1039 test_not_wf_sa_051 |
|
1040 |
|
1041 |
|
1042 "Sections: 2.7 [18]" |
|
1043 "Description: |
|
1044 CDATA is invalid at top level of document." |
|
1045 |
|
1046 |
|
1047 self should:[ |
|
1048 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/051.xml')). |
|
1049 ] raise: SAXParseError. |
|
1050 |
|
1051 "Modified: / 25-10-2005 / 14:59:14 / janfrog" |
|
1052 ! |
|
1053 |
|
1054 test_not_wf_sa_052 |
|
1055 |
|
1056 |
|
1057 "Sections: 4.1 [66]" |
|
1058 "Description: |
|
1059 Invalid character reference. " |
|
1060 |
|
1061 |
|
1062 self should:[ |
|
1063 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/052.xml')). |
|
1064 ] raise: SAXParseError. |
|
1065 |
|
1066 "Modified: / 25-10-2005 / 14:59:14 / janfrog" |
|
1067 ! |
|
1068 |
|
1069 test_not_wf_sa_053 |
|
1070 |
|
1071 |
|
1072 "Sections: 3.1 [42]" |
|
1073 "Description: |
|
1074 End tag does not match start tag. " |
|
1075 |
|
1076 |
|
1077 self should:[ |
|
1078 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/053.xml')). |
|
1079 ] raise: SAXParseError. |
|
1080 |
|
1081 "Modified: / 25-10-2005 / 14:59:14 / janfrog" |
|
1082 ! |
|
1083 |
|
1084 test_not_wf_sa_054 |
|
1085 |
|
1086 |
|
1087 "Sections: 4.2.2 [75]" |
|
1088 "Description: |
|
1089 PUBLIC requires two literals." |
|
1090 |
|
1091 |
|
1092 self should:[ |
|
1093 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/054.xml')). |
|
1094 ] raise: SAXParseError. |
|
1095 |
|
1096 "Modified: / 25-10-2005 / 14:59:14 / janfrog" |
|
1097 ! |
|
1098 |
|
1099 test_not_wf_sa_055 |
|
1100 |
|
1101 |
|
1102 "Sections: 2.8 [28]" |
|
1103 "Description: |
|
1104 Invalid Document Type Definition format. " |
|
1105 |
|
1106 |
|
1107 self should:[ |
|
1108 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/055.xml')). |
|
1109 ] raise: SAXParseError. |
|
1110 |
|
1111 "Modified: / 25-10-2005 / 14:59:14 / janfrog" |
|
1112 ! |
|
1113 |
|
1114 test_not_wf_sa_056 |
|
1115 |
|
1116 |
|
1117 "Sections: 2.8 [28]" |
|
1118 "Description: |
|
1119 Invalid Document Type Definition format - misplaced comment. " |
|
1120 |
|
1121 |
|
1122 self should:[ |
|
1123 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/056.xml')). |
|
1124 ] raise: SAXParseError. |
|
1125 |
|
1126 "Modified: / 25-10-2005 / 14:59:14 / janfrog" |
|
1127 ! |
|
1128 |
|
1129 test_not_wf_sa_057 |
|
1130 |
|
1131 |
|
1132 "Sections: 3.2 [45]" |
|
1133 "Description: |
|
1134 This isn't SGML; comments can't exist in declarations. " |
|
1135 |
|
1136 |
|
1137 self should:[ |
|
1138 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/057.xml')). |
|
1139 ] raise: SAXParseError. |
|
1140 |
|
1141 "Modified: / 25-10-2005 / 14:59:14 / janfrog" |
|
1142 ! |
|
1143 |
|
1144 test_not_wf_sa_058 |
|
1145 |
|
1146 |
|
1147 "Sections: 3.3.1 [54]" |
|
1148 "Description: |
|
1149 Invalid character , in ATTLIST enumeration " |
|
1150 |
|
1151 |
|
1152 self should:[ |
|
1153 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/058.xml')). |
|
1154 ] raise: SAXParseError. |
|
1155 |
|
1156 "Modified: / 25-10-2005 / 14:59:14 / janfrog" |
|
1157 ! |
|
1158 |
|
1159 test_not_wf_sa_059 |
|
1160 |
|
1161 |
|
1162 "Sections: 3.3.1 [59]" |
|
1163 "Description: |
|
1164 String literal must be in quotes. " |
|
1165 |
|
1166 |
|
1167 self should:[ |
|
1168 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/059.xml')). |
|
1169 ] raise: SAXParseError. |
|
1170 |
|
1171 "Modified: / 25-10-2005 / 14:59:14 / janfrog" |
|
1172 ! |
|
1173 |
|
1174 test_not_wf_sa_060 |
|
1175 |
|
1176 |
|
1177 "Sections: 3.3.1 [56]" |
|
1178 "Description: |
|
1179 Invalid type NAME defined in ATTLIST." |
|
1180 |
|
1181 |
|
1182 self should:[ |
|
1183 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/060.xml')). |
|
1184 ] raise: SAXParseError. |
|
1185 |
|
1186 "Modified: / 25-10-2005 / 14:59:14 / janfrog" |
|
1187 ! |
|
1188 |
|
1189 test_not_wf_sa_061 |
|
1190 |
|
1191 |
|
1192 "Sections: 4.2.2 [75]" |
|
1193 "Description: |
|
1194 External entity declarations require whitespace between public |
|
1195 and system IDs." |
|
1196 |
|
1197 |
|
1198 self should:[ |
|
1199 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/061.xml')). |
|
1200 ] raise: SAXParseError. |
|
1201 |
|
1202 "Modified: / 25-10-2005 / 14:59:14 / janfrog" |
|
1203 ! |
|
1204 |
|
1205 test_not_wf_sa_062 |
|
1206 |
|
1207 |
|
1208 "Sections: 4.2 [71]" |
|
1209 "Description: |
|
1210 Entity declarations need space after the entity name. " |
|
1211 |
|
1212 |
|
1213 self should:[ |
|
1214 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/062.xml')). |
|
1215 ] raise: SAXParseError. |
|
1216 |
|
1217 "Modified: / 25-10-2005 / 14:59:15 / janfrog" |
|
1218 ! |
|
1219 |
|
1220 test_not_wf_sa_063 |
|
1221 |
|
1222 |
|
1223 "Sections: 2.8 [29]" |
|
1224 "Description: |
|
1225 Conditional sections may only appear in the external |
|
1226 DTD subset. " |
|
1227 |
|
1228 |
|
1229 self should:[ |
|
1230 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/063.xml')). |
|
1231 ] raise: SAXParseError. |
|
1232 |
|
1233 "Modified: / 25-10-2005 / 14:59:15 / janfrog" |
|
1234 ! |
|
1235 |
|
1236 test_not_wf_sa_064 |
|
1237 |
|
1238 |
|
1239 "Sections: 3.3 [53]" |
|
1240 "Description: |
|
1241 Space is required between attribute type and default values |
|
1242 in <iATTLIST...> declarations. " |
|
1243 |
|
1244 |
|
1245 self should:[ |
|
1246 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/064.xml')). |
|
1247 ] raise: SAXParseError. |
|
1248 |
|
1249 "Modified: / 25-10-2005 / 14:59:15 / janfrog" |
|
1250 ! |
|
1251 |
|
1252 test_not_wf_sa_065 |
|
1253 |
|
1254 |
|
1255 "Sections: 3.3 [53]" |
|
1256 "Description: |
|
1257 Space is required between attribute name and type |
|
1258 in <iATTLIST...> declarations. " |
|
1259 |
|
1260 |
|
1261 self should:[ |
|
1262 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/065.xml')). |
|
1263 ] raise: SAXParseError. |
|
1264 |
|
1265 "Modified: / 25-10-2005 / 14:59:15 / janfrog" |
|
1266 ! |
|
1267 |
|
1268 test_not_wf_sa_066 |
|
1269 |
|
1270 |
|
1271 "Sections: 3.3 [52]" |
|
1272 "Description: |
|
1273 Required whitespace is missing. " |
|
1274 |
|
1275 |
|
1276 self should:[ |
|
1277 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/066.xml')). |
|
1278 ] raise: SAXParseError. |
|
1279 |
|
1280 "Modified: / 25-10-2005 / 14:59:15 / janfrog" |
|
1281 ! |
|
1282 |
|
1283 test_not_wf_sa_067 |
|
1284 |
|
1285 |
|
1286 "Sections: 3.3 [53]" |
|
1287 "Description: |
|
1288 Space is required between attribute type and default values |
|
1289 in <iATTLIST...> declarations. " |
|
1290 |
|
1291 |
|
1292 self should:[ |
|
1293 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/067.xml')). |
|
1294 ] raise: SAXParseError. |
|
1295 |
|
1296 "Modified: / 25-10-2005 / 14:59:15 / janfrog" |
|
1297 ! |
|
1298 |
|
1299 test_not_wf_sa_068 |
|
1300 |
|
1301 |
|
1302 "Sections: 3.3.1 [58]" |
|
1303 "Description: |
|
1304 Space is required between NOTATION keyword and list of |
|
1305 enumerated choices in <iATTLIST...> declarations. " |
|
1306 |
|
1307 |
|
1308 self should:[ |
|
1309 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/068.xml')). |
|
1310 ] raise: SAXParseError. |
|
1311 |
|
1312 "Modified: / 25-10-2005 / 14:59:15 / janfrog" |
|
1313 ! |
|
1314 |
|
1315 test_not_wf_sa_069 |
|
1316 |
|
1317 |
|
1318 "Sections: 4.2.2 [76]" |
|
1319 "Description: |
|
1320 Space is required before an NDATA entity annotation." |
|
1321 |
|
1322 |
|
1323 self should:[ |
|
1324 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/069.xml')). |
|
1325 ] raise: SAXParseError. |
|
1326 |
|
1327 "Modified: / 25-10-2005 / 14:59:15 / janfrog" |
|
1328 ! |
|
1329 |
|
1330 test_not_wf_sa_070 |
|
1331 |
|
1332 |
|
1333 "Sections: 2.5 [16]" |
|
1334 "Description: |
|
1335 XML comments may not contain `--` " |
|
1336 |
|
1337 |
|
1338 self should:[ |
|
1339 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/070.xml')). |
|
1340 ] raise: SAXParseError. |
|
1341 |
|
1342 "Modified: / 25-10-2005 / 14:59:15 / janfrog" |
|
1343 ! |
|
1344 |
|
1345 test_not_wf_sa_071 |
|
1346 |
|
1347 |
|
1348 "Sections: 4.1 [68]" |
|
1349 "Description: |
|
1350 ENTITY can't reference itself directly or indirectly." |
|
1351 |
|
1352 |
|
1353 self should:[ |
|
1354 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/071.xml')). |
|
1355 ] raise: SAXParseError. |
|
1356 |
|
1357 "Modified: / 25-10-2005 / 14:59:15 / janfrog" |
|
1358 ! |
|
1359 |
|
1360 test_not_wf_sa_072 |
|
1361 |
|
1362 |
|
1363 "Sections: 4.1 [68]" |
|
1364 "Description: |
|
1365 Undefined ENTITY foo. " |
|
1366 |
|
1367 |
|
1368 self should:[ |
|
1369 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/072.xml')). |
|
1370 ] raise: SAXParseError. |
|
1371 |
|
1372 "Modified: / 25-10-2005 / 14:59:15 / janfrog" |
|
1373 ! |
|
1374 |
|
1375 test_not_wf_sa_073 |
|
1376 |
|
1377 |
|
1378 "Sections: 4.1 [68]" |
|
1379 "Description: |
|
1380 Undefined ENTITY f. " |
|
1381 |
|
1382 |
|
1383 self should:[ |
|
1384 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/073.xml')). |
|
1385 ] raise: SAXParseError. |
|
1386 |
|
1387 "Modified: / 25-10-2005 / 14:59:15 / janfrog" |
|
1388 ! |
|
1389 |
|
1390 test_not_wf_sa_074 |
|
1391 |
|
1392 |
|
1393 "Sections: 4.3.2" |
|
1394 "Description: |
|
1395 Internal general parsed entities are only well formed if |
|
1396 they match the `content` production. " |
|
1397 |
|
1398 |
|
1399 self should:[ |
|
1400 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/074.xml')). |
|
1401 ] raise: SAXParseError. |
|
1402 |
|
1403 "Modified: / 25-10-2005 / 14:59:15 / janfrog" |
|
1404 ! |
|
1405 |
|
1406 test_not_wf_sa_075 |
|
1407 |
|
1408 |
|
1409 "Sections: 4.1 [68]" |
|
1410 "Description: |
|
1411 ENTITY can't reference itself directly or indirectly. " |
|
1412 |
|
1413 |
|
1414 self should:[ |
|
1415 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/075.xml')). |
|
1416 ] raise: SAXParseError. |
|
1417 |
|
1418 "Modified: / 25-10-2005 / 14:59:15 / janfrog" |
|
1419 ! |
|
1420 |
|
1421 test_not_wf_sa_076 |
|
1422 |
|
1423 |
|
1424 "Sections: 4.1 [68]" |
|
1425 "Description: |
|
1426 Undefined ENTITY foo. " |
|
1427 |
|
1428 |
|
1429 self should:[ |
|
1430 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/076.xml')). |
|
1431 ] raise: SAXParseError. |
|
1432 |
|
1433 "Modified: / 25-10-2005 / 14:59:15 / janfrog" |
|
1434 ! |
|
1435 |
|
1436 test_not_wf_sa_077 |
|
1437 |
|
1438 |
|
1439 "Sections: 41. [68]" |
|
1440 "Description: |
|
1441 Undefined ENTITY bar. " |
|
1442 |
|
1443 |
|
1444 self should:[ |
|
1445 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/077.xml')). |
|
1446 ] raise: SAXParseError. |
|
1447 |
|
1448 "Modified: / 25-10-2005 / 14:59:15 / janfrog" |
|
1449 ! |
|
1450 |
|
1451 test_not_wf_sa_078 |
|
1452 |
|
1453 |
|
1454 "Sections: 4.1 [68]" |
|
1455 "Description: |
|
1456 Undefined ENTITY foo. " |
|
1457 |
|
1458 |
|
1459 self should:[ |
|
1460 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/078.xml')). |
|
1461 ] raise: SAXParseError. |
|
1462 |
|
1463 "Modified: / 25-10-2005 / 14:59:16 / janfrog" |
|
1464 ! |
|
1465 |
|
1466 test_not_wf_sa_079 |
|
1467 |
|
1468 |
|
1469 "Sections: 4.1 [68]" |
|
1470 "Description: |
|
1471 ENTITY can't reference itself directly or indirectly. " |
|
1472 |
|
1473 |
|
1474 self should:[ |
|
1475 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/079.xml')). |
|
1476 ] raise: SAXParseError. |
|
1477 |
|
1478 "Modified: / 25-10-2005 / 14:59:16 / janfrog" |
|
1479 ! |
|
1480 |
|
1481 test_not_wf_sa_080 |
|
1482 |
|
1483 |
|
1484 "Sections: 4.1 [68]" |
|
1485 "Description: |
|
1486 ENTITY can't reference itself directly or indirectly. " |
|
1487 |
|
1488 |
|
1489 self should:[ |
|
1490 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/080.xml')). |
|
1491 ] raise: SAXParseError. |
|
1492 |
|
1493 "Modified: / 25-10-2005 / 14:59:16 / janfrog" |
|
1494 ! |
|
1495 |
|
1496 test_not_wf_sa_081 |
|
1497 |
|
1498 |
|
1499 "Sections: 3.1" |
|
1500 "Description: |
|
1501 This tests the " |
|
1502 |
|
1503 |
|
1504 self should:[ |
|
1505 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/081.xml')). |
|
1506 ] raise: SAXParseError. |
|
1507 |
|
1508 "Modified: / 25-10-2005 / 14:59:16 / janfrog" |
|
1509 ! |
|
1510 |
|
1511 test_not_wf_sa_082 |
|
1512 |
|
1513 |
|
1514 "Sections: 3.1" |
|
1515 "Description: |
|
1516 This tests the " |
|
1517 |
|
1518 |
|
1519 self should:[ |
|
1520 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/082.xml')). |
|
1521 ] raise: SAXParseError. |
|
1522 |
|
1523 "Modified: / 25-10-2005 / 14:59:16 / janfrog" |
|
1524 ! |
|
1525 |
|
1526 test_not_wf_sa_083 |
|
1527 |
|
1528 |
|
1529 "Sections: 4.2.2 [76]" |
|
1530 "Description: |
|
1531 Undefined NOTATION n. " |
|
1532 |
|
1533 |
|
1534 self should:[ |
|
1535 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/083.xml')). |
|
1536 ] raise: SAXParseError. |
|
1537 |
|
1538 "Modified: / 25-10-2005 / 14:59:16 / janfrog" |
|
1539 ! |
|
1540 |
|
1541 test_not_wf_sa_084 |
|
1542 |
|
1543 |
|
1544 "Sections: 4.1" |
|
1545 "Description: |
|
1546 Tests the " |
|
1547 |
|
1548 |
|
1549 self should:[ |
|
1550 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/084.xml')). |
|
1551 ] raise: SAXParseError. |
|
1552 |
|
1553 "Modified: / 25-10-2005 / 14:59:16 / janfrog" |
|
1554 ! |
|
1555 |
|
1556 test_not_wf_sa_085 |
|
1557 |
|
1558 |
|
1559 "Sections: 2.3 [13]" |
|
1560 "Description: |
|
1561 Public IDs may not contain `[`. " |
|
1562 |
|
1563 |
|
1564 self should:[ |
|
1565 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/085.xml')). |
|
1566 ] raise: SAXParseError. |
|
1567 |
|
1568 "Modified: / 25-10-2005 / 14:59:16 / janfrog" |
|
1569 ! |
|
1570 |
|
1571 test_not_wf_sa_086 |
|
1572 |
|
1573 |
|
1574 "Sections: 2.3 [13]" |
|
1575 "Description: |
|
1576 Public IDs may not contain `[`. " |
|
1577 |
|
1578 |
|
1579 self should:[ |
|
1580 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/086.xml')). |
|
1581 ] raise: SAXParseError. |
|
1582 |
|
1583 "Modified: / 25-10-2005 / 14:59:16 / janfrog" |
|
1584 ! |
|
1585 |
|
1586 test_not_wf_sa_087 |
|
1587 |
|
1588 |
|
1589 "Sections: 2.3 [13]" |
|
1590 "Description: |
|
1591 Public IDs may not contain `[`. " |
|
1592 |
|
1593 |
|
1594 self should:[ |
|
1595 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/087.xml')). |
|
1596 ] raise: SAXParseError. |
|
1597 |
|
1598 "Modified: / 25-10-2005 / 14:59:16 / janfrog" |
|
1599 ! |
|
1600 |
|
1601 test_not_wf_sa_088 |
|
1602 |
|
1603 |
|
1604 "Sections: 2.3 [10]" |
|
1605 "Description: |
|
1606 Attribute values are terminated by literal quote characters, |
|
1607 and any entity expansion is done afterwards. " |
|
1608 |
|
1609 |
|
1610 self should:[ |
|
1611 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/088.xml')). |
|
1612 ] raise: SAXParseError. |
|
1613 |
|
1614 "Modified: / 25-10-2005 / 14:59:16 / janfrog" |
|
1615 ! |
|
1616 |
|
1617 test_not_wf_sa_089 |
|
1618 |
|
1619 |
|
1620 "Sections: 4.2 [74]" |
|
1621 "Description: |
|
1622 Parameter entities `are` always parsed; NDATA annotations |
|
1623 are not permitted." |
|
1624 |
|
1625 |
|
1626 self should:[ |
|
1627 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/089.xml')). |
|
1628 ] raise: SAXParseError. |
|
1629 |
|
1630 "Modified: / 25-10-2005 / 14:59:16 / janfrog" |
|
1631 ! |
|
1632 |
|
1633 test_not_wf_sa_090 |
|
1634 |
|
1635 |
|
1636 "Sections: 2.3 [10]" |
|
1637 "Description: |
|
1638 Attributes may not contain a literal `<` character; |
|
1639 this one has one because of reference expansion. " |
|
1640 |
|
1641 |
|
1642 self should:[ |
|
1643 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/090.xml')). |
|
1644 ] raise: SAXParseError. |
|
1645 |
|
1646 "Modified: / 25-10-2005 / 14:59:16 / janfrog" |
|
1647 ! |
|
1648 |
|
1649 test_not_wf_sa_091 |
|
1650 |
|
1651 |
|
1652 "Sections: 4.2 [74]" |
|
1653 "Description: |
|
1654 Parameter entities `are` always parsed; NDATA annotations |
|
1655 are not permitted." |
|
1656 |
|
1657 |
|
1658 self should:[ |
|
1659 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/091.xml')). |
|
1660 ] raise: SAXParseError. |
|
1661 |
|
1662 "Modified: / 25-10-2005 / 14:59:16 / janfrog" |
|
1663 ! |
|
1664 |
|
1665 test_not_wf_sa_092 |
|
1666 |
|
1667 |
|
1668 "Sections: 4.5" |
|
1669 "Description: |
|
1670 The replacement text of this entity has an illegal reference, |
|
1671 because the character reference is expanded immediately. " |
|
1672 |
|
1673 |
|
1674 self should:[ |
|
1675 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/092.xml')). |
|
1676 ] raise: SAXParseError. |
|
1677 |
|
1678 "Modified: / 25-10-2005 / 14:59:16 / janfrog" |
|
1679 ! |
|
1680 |
|
1681 test_not_wf_sa_093 |
|
1682 |
|
1683 |
|
1684 "Sections: 4.1 [66]" |
|
1685 "Description: |
|
1686 Hexadecimal character references may not use the uppercase 'X'." |
|
1687 |
|
1688 |
|
1689 self should:[ |
|
1690 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/093.xml')). |
|
1691 ] raise: SAXParseError. |
|
1692 |
|
1693 "Modified: / 25-10-2005 / 14:59:16 / janfrog" |
|
1694 ! |
|
1695 |
|
1696 test_not_wf_sa_094 |
|
1697 |
|
1698 |
|
1699 "Sections: 2.8 [24]" |
|
1700 "Description: |
|
1701 Prolog VERSION must be lowercase. " |
|
1702 |
|
1703 |
|
1704 self should:[ |
|
1705 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/094.xml')). |
|
1706 ] raise: SAXParseError. |
|
1707 |
|
1708 "Modified: / 25-10-2005 / 14:59:16 / janfrog" |
|
1709 ! |
|
1710 |
|
1711 test_not_wf_sa_095 |
|
1712 |
|
1713 |
|
1714 "Sections: 2.8 [23]" |
|
1715 "Description: |
|
1716 VersionInfo must come before EncodingDecl. " |
|
1717 |
|
1718 |
|
1719 self should:[ |
|
1720 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/095.xml')). |
|
1721 ] raise: SAXParseError. |
|
1722 |
|
1723 "Modified: / 25-10-2005 / 14:59:17 / janfrog" |
|
1724 ! |
|
1725 |
|
1726 test_not_wf_sa_096 |
|
1727 |
|
1728 |
|
1729 "Sections: 2.9 [32]" |
|
1730 "Description: |
|
1731 Space is required before the standalone declaration. " |
|
1732 |
|
1733 |
|
1734 self should:[ |
|
1735 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/096.xml')). |
|
1736 ] raise: SAXParseError. |
|
1737 |
|
1738 "Modified: / 25-10-2005 / 14:59:17 / janfrog" |
|
1739 ! |
|
1740 |
|
1741 test_not_wf_sa_097 |
|
1742 |
|
1743 |
|
1744 "Sections: 2.8 [24]" |
|
1745 "Description: |
|
1746 Both quotes surrounding VersionNum must be the same. " |
|
1747 |
|
1748 |
|
1749 self should:[ |
|
1750 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/097.xml')). |
|
1751 ] raise: SAXParseError. |
|
1752 |
|
1753 "Modified: / 25-10-2005 / 14:59:17 / janfrog" |
|
1754 ! |
|
1755 |
|
1756 test_not_wf_sa_098 |
|
1757 |
|
1758 |
|
1759 "Sections: 2.8 [23]" |
|
1760 "Description: |
|
1761 Only one `version=...` string may appear in an XML declaration." |
|
1762 |
|
1763 |
|
1764 self should:[ |
|
1765 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/098.xml')). |
|
1766 ] raise: SAXParseError. |
|
1767 |
|
1768 "Modified: / 25-10-2005 / 14:59:17 / janfrog" |
|
1769 ! |
|
1770 |
|
1771 test_not_wf_sa_099 |
|
1772 |
|
1773 |
|
1774 "Sections: 2.8 [23]" |
|
1775 "Description: |
|
1776 Only three pseudo-attributes are in the XML declaration, |
|
1777 and `valid=...` is not one of them. " |
|
1778 |
|
1779 |
|
1780 self should:[ |
|
1781 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/099.xml')). |
|
1782 ] raise: SAXParseError. |
|
1783 |
|
1784 "Modified: / 25-10-2005 / 14:59:17 / janfrog" |
|
1785 ! |
|
1786 |
|
1787 test_not_wf_sa_100 |
|
1788 |
|
1789 |
|
1790 "Sections: 2.9 [32]" |
|
1791 "Description: |
|
1792 Only `yes` and `no` are permitted as values of `standalone`. " |
|
1793 |
|
1794 |
|
1795 self should:[ |
|
1796 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/100.xml')). |
|
1797 ] raise: SAXParseError. |
|
1798 |
|
1799 "Modified: / 25-10-2005 / 14:59:17 / janfrog" |
|
1800 ! |
|
1801 |
|
1802 test_not_wf_sa_101 |
|
1803 |
|
1804 |
|
1805 "Sections: 4.3.3 [81]" |
|
1806 "Description: |
|
1807 Space is not permitted in an encoding name. " |
|
1808 |
|
1809 |
|
1810 self should:[ |
|
1811 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/101.xml')). |
|
1812 ] raise: SAXParseError. |
|
1813 |
|
1814 "Modified: / 25-10-2005 / 14:59:17 / janfrog" |
|
1815 ! |
|
1816 |
|
1817 test_not_wf_sa_102 |
|
1818 |
|
1819 |
|
1820 "Sections: 2.8 [26]" |
|
1821 "Description: |
|
1822 Provides an illegal XML version number; spaces are illegal." |
|
1823 |
|
1824 |
|
1825 self should:[ |
|
1826 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/102.xml')). |
|
1827 ] raise: SAXParseError. |
|
1828 |
|
1829 "Modified: / 25-10-2005 / 14:59:17 / janfrog" |
|
1830 ! |
|
1831 |
|
1832 test_not_wf_sa_103 |
|
1833 |
|
1834 |
|
1835 "Sections: 4.3.2" |
|
1836 "Description: |
|
1837 End-tag required for element foo. " |
|
1838 |
|
1839 |
|
1840 self should:[ |
|
1841 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/103.xml')). |
|
1842 ] raise: SAXParseError. |
|
1843 |
|
1844 "Modified: / 25-10-2005 / 14:59:17 / janfrog" |
|
1845 ! |
|
1846 |
|
1847 test_not_wf_sa_104 |
|
1848 |
|
1849 |
|
1850 "Sections: 4.3.2" |
|
1851 "Description: |
|
1852 Internal general parsed entities are only well formed if |
|
1853 they match the `content` production. " |
|
1854 |
|
1855 |
|
1856 self should:[ |
|
1857 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/104.xml')). |
|
1858 ] raise: SAXParseError. |
|
1859 |
|
1860 "Modified: / 25-10-2005 / 14:59:17 / janfrog" |
|
1861 ! |
|
1862 |
|
1863 test_not_wf_sa_105 |
|
1864 |
|
1865 |
|
1866 "Sections: 2.7 " |
|
1867 "Description: |
|
1868 Invalid placement of CDATA section. " |
|
1869 |
|
1870 |
|
1871 self should:[ |
|
1872 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/105.xml')). |
|
1873 ] raise: SAXParseError. |
|
1874 |
|
1875 "Modified: / 25-10-2005 / 14:59:17 / janfrog" |
|
1876 ! |
|
1877 |
|
1878 test_not_wf_sa_106 |
|
1879 |
|
1880 |
|
1881 "Sections: 4.2" |
|
1882 "Description: |
|
1883 Invalid placement of entity declaration. " |
|
1884 |
|
1885 |
|
1886 self should:[ |
|
1887 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/106.xml')). |
|
1888 ] raise: SAXParseError. |
|
1889 |
|
1890 "Modified: / 25-10-2005 / 14:59:17 / janfrog" |
|
1891 ! |
|
1892 |
|
1893 test_not_wf_sa_107 |
|
1894 |
|
1895 |
|
1896 "Sections: 2.8 [28]" |
|
1897 "Description: |
|
1898 Invalid document type declaration. CDATA alone is invalid." |
|
1899 |
|
1900 |
|
1901 self should:[ |
|
1902 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/107.xml')). |
|
1903 ] raise: SAXParseError. |
|
1904 |
|
1905 "Modified: / 25-10-2005 / 14:59:17 / janfrog" |
|
1906 ! |
|
1907 |
|
1908 test_not_wf_sa_108 |
|
1909 |
|
1910 |
|
1911 "Sections: 2.7 [19]" |
|
1912 "Description: |
|
1913 No space in '<i[CDATA['." |
|
1914 |
|
1915 |
|
1916 self should:[ |
|
1917 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/108.xml')). |
|
1918 ] raise: SAXParseError. |
|
1919 |
|
1920 "Modified: / 25-10-2005 / 14:59:17 / janfrog" |
|
1921 ! |
|
1922 |
|
1923 test_not_wf_sa_109 |
|
1924 |
|
1925 |
|
1926 "Sections: 4.2 [70]" |
|
1927 "Description: |
|
1928 Tags invalid within EntityDecl. " |
|
1929 |
|
1930 |
|
1931 self should:[ |
|
1932 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/109.xml')). |
|
1933 ] raise: SAXParseError. |
|
1934 |
|
1935 "Modified: / 25-10-2005 / 14:59:18 / janfrog" |
|
1936 ! |
|
1937 |
|
1938 test_not_wf_sa_110 |
|
1939 |
|
1940 |
|
1941 "Sections: 4.1 [68]" |
|
1942 "Description: |
|
1943 Entity reference must be in content of element. " |
|
1944 |
|
1945 |
|
1946 self should:[ |
|
1947 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/110.xml')). |
|
1948 ] raise: SAXParseError. |
|
1949 |
|
1950 "Modified: / 25-10-2005 / 14:59:18 / janfrog" |
|
1951 ! |
|
1952 |
|
1953 test_not_wf_sa_111 |
|
1954 |
|
1955 |
|
1956 "Sections: 3.1 [43]" |
|
1957 "Description: |
|
1958 Entiry reference must be in content of element not Start-tag. " |
|
1959 |
|
1960 |
|
1961 self should:[ |
|
1962 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/111.xml')). |
|
1963 ] raise: SAXParseError. |
|
1964 |
|
1965 "Modified: / 25-10-2005 / 14:59:18 / janfrog" |
|
1966 ! |
|
1967 |
|
1968 test_not_wf_sa_112 |
|
1969 |
|
1970 |
|
1971 "Sections: 2.7 [19]" |
|
1972 "Description: |
|
1973 CDATA sections start '<i[CDATA[', not '<icdata['." |
|
1974 |
|
1975 |
|
1976 self should:[ |
|
1977 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/112.xml')). |
|
1978 ] raise: SAXParseError. |
|
1979 |
|
1980 "Modified: / 25-10-2005 / 14:59:18 / janfrog" |
|
1981 ! |
|
1982 |
|
1983 test_not_wf_sa_113 |
|
1984 |
|
1985 |
|
1986 "Sections: 2.3 [9]" |
|
1987 "Description: |
|
1988 Parameter entity values must use valid reference syntax; |
|
1989 this reference is malformed." |
|
1990 |
|
1991 |
|
1992 self should:[ |
|
1993 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/113.xml')). |
|
1994 ] raise: SAXParseError. |
|
1995 |
|
1996 "Modified: / 25-10-2005 / 14:59:18 / janfrog" |
|
1997 ! |
|
1998 |
|
1999 test_not_wf_sa_114 |
|
2000 |
|
2001 |
|
2002 "Sections: 2.3 [9]" |
|
2003 "Description: |
|
2004 General entity values must use valid reference syntax; |
|
2005 this reference is malformed." |
|
2006 |
|
2007 |
|
2008 self should:[ |
|
2009 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/114.xml')). |
|
2010 ] raise: SAXParseError. |
|
2011 |
|
2012 "Modified: / 25-10-2005 / 14:59:18 / janfrog" |
|
2013 ! |
|
2014 |
|
2015 test_not_wf_sa_115 |
|
2016 |
|
2017 |
|
2018 "Sections: 4.5" |
|
2019 "Description: |
|
2020 The replacement text of this entity is an illegal character |
|
2021 reference, which must be rejected when it is parsed in the |
|
2022 context of an attribute value." |
|
2023 |
|
2024 |
|
2025 self should:[ |
|
2026 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/115.xml')). |
|
2027 ] raise: SAXParseError. |
|
2028 |
|
2029 "Modified: / 25-10-2005 / 14:59:18 / janfrog" |
|
2030 ! |
|
2031 |
|
2032 test_not_wf_sa_116 |
|
2033 |
|
2034 |
|
2035 "Sections: 4.3.2" |
|
2036 "Description: |
|
2037 Internal general parsed entities are only well formed if |
|
2038 they match the `content` production. This is a partial |
|
2039 character reference, not a full one. " |
|
2040 |
|
2041 |
|
2042 self should:[ |
|
2043 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/116.xml')). |
|
2044 ] raise: SAXParseError. |
|
2045 |
|
2046 "Modified: / 25-10-2005 / 14:59:18 / janfrog" |
|
2047 ! |
|
2048 |
|
2049 test_not_wf_sa_117 |
|
2050 |
|
2051 |
|
2052 "Sections: 4.3.2" |
|
2053 "Description: |
|
2054 Internal general parsed entities are only well formed if |
|
2055 they match the `content` production. This is a partial |
|
2056 character reference, not a full one. " |
|
2057 |
|
2058 |
|
2059 self should:[ |
|
2060 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/117.xml')). |
|
2061 ] raise: SAXParseError. |
|
2062 |
|
2063 "Modified: / 25-10-2005 / 14:59:18 / janfrog" |
|
2064 ! |
|
2065 |
|
2066 test_not_wf_sa_118 |
|
2067 |
|
2068 |
|
2069 "Sections: 4.1 [68]" |
|
2070 "Description: |
|
2071 Entity reference expansion is not recursive." |
|
2072 |
|
2073 |
|
2074 self should:[ |
|
2075 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/118.xml')). |
|
2076 ] raise: SAXParseError. |
|
2077 |
|
2078 "Modified: / 25-10-2005 / 14:59:18 / janfrog" |
|
2079 ! |
|
2080 |
|
2081 test_not_wf_sa_119 |
|
2082 |
|
2083 |
|
2084 "Sections: 4.3.2" |
|
2085 "Description: |
|
2086 Internal general parsed entities are only well formed if |
|
2087 they match the `content` production. This is a partial |
|
2088 character reference, not a full one. " |
|
2089 |
|
2090 |
|
2091 self should:[ |
|
2092 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/119.xml')). |
|
2093 ] raise: SAXParseError. |
|
2094 |
|
2095 "Modified: / 25-10-2005 / 14:59:18 / janfrog" |
|
2096 ! |
|
2097 |
|
2098 test_not_wf_sa_120 |
|
2099 |
|
2100 |
|
2101 "Sections: 4.5" |
|
2102 "Description: |
|
2103 Character references are expanded in the replacement text of |
|
2104 an internal entity, which is then parsed as usual. Accordingly, |
|
2105 & must be doubly quoted - encoded either as " |
|
2106 |
|
2107 |
|
2108 self should:[ |
|
2109 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/120.xml')). |
|
2110 ] raise: SAXParseError. |
|
2111 |
|
2112 "Modified: / 25-10-2005 / 14:59:18 / janfrog" |
|
2113 ! |
|
2114 |
|
2115 test_not_wf_sa_121 |
|
2116 |
|
2117 |
|
2118 "Sections: 4.1 [68]" |
|
2119 "Description: |
|
2120 A name of an ENTITY was started with an invalid character. " |
|
2121 |
|
2122 |
|
2123 self should:[ |
|
2124 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/121.xml')). |
|
2125 ] raise: SAXParseError. |
|
2126 |
|
2127 "Modified: / 25-10-2005 / 14:59:18 / janfrog" |
|
2128 ! |
|
2129 |
|
2130 test_not_wf_sa_122 |
|
2131 |
|
2132 |
|
2133 "Sections: 3.2.1 [47]" |
|
2134 "Description: |
|
2135 Invalid syntax mixed connectors are used. " |
|
2136 |
|
2137 |
|
2138 self should:[ |
|
2139 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/122.xml')). |
|
2140 ] raise: SAXParseError. |
|
2141 |
|
2142 "Modified: / 25-10-2005 / 14:59:18 / janfrog" |
|
2143 ! |
|
2144 |
|
2145 test_not_wf_sa_123 |
|
2146 |
|
2147 |
|
2148 "Sections: 3.2.1 [48]" |
|
2149 "Description: |
|
2150 Invalid syntax mismatched parenthesis. " |
|
2151 |
|
2152 |
|
2153 self should:[ |
|
2154 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/123.xml')). |
|
2155 ] raise: SAXParseError. |
|
2156 |
|
2157 "Modified: / 25-10-2005 / 14:59:18 / janfrog" |
|
2158 ! |
|
2159 |
|
2160 test_not_wf_sa_124 |
|
2161 |
|
2162 |
|
2163 "Sections: 3.2.2 [51]" |
|
2164 "Description: |
|
2165 Invalid format of Mixed-content declaration. " |
|
2166 |
|
2167 |
|
2168 self should:[ |
|
2169 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/124.xml')). |
|
2170 ] raise: SAXParseError. |
|
2171 |
|
2172 "Modified: / 25-10-2005 / 14:59:18 / janfrog" |
|
2173 ! |
|
2174 |
|
2175 test_not_wf_sa_125 |
|
2176 |
|
2177 |
|
2178 "Sections: 3.2.2 [51]" |
|
2179 "Description: |
|
2180 Invalid syntax extra set of parenthesis not necessary. " |
|
2181 |
|
2182 |
|
2183 self should:[ |
|
2184 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/125.xml')). |
|
2185 ] raise: SAXParseError. |
|
2186 |
|
2187 "Modified: / 25-10-2005 / 14:59:19 / janfrog" |
|
2188 ! |
|
2189 |
|
2190 test_not_wf_sa_126 |
|
2191 |
|
2192 |
|
2193 "Sections: 3.2.2 [51]" |
|
2194 "Description: |
|
2195 Invalid syntax Mixed-content must be defined as zero or more. " |
|
2196 |
|
2197 |
|
2198 self should:[ |
|
2199 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/126.xml')). |
|
2200 ] raise: SAXParseError. |
|
2201 |
|
2202 "Modified: / 25-10-2005 / 14:59:19 / janfrog" |
|
2203 ! |
|
2204 |
|
2205 test_not_wf_sa_127 |
|
2206 |
|
2207 |
|
2208 "Sections: 3.2.2 [51]" |
|
2209 "Description: |
|
2210 Invalid syntax Mixed-content must be defined as zero or more. " |
|
2211 |
|
2212 |
|
2213 self should:[ |
|
2214 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/127.xml')). |
|
2215 ] raise: SAXParseError. |
|
2216 |
|
2217 "Modified: / 25-10-2005 / 14:59:19 / janfrog" |
|
2218 ! |
|
2219 |
|
2220 test_not_wf_sa_128 |
|
2221 |
|
2222 |
|
2223 "Sections: 2.7 [18]" |
|
2224 "Description: |
|
2225 Invalid CDATA syntax. " |
|
2226 |
|
2227 |
|
2228 self should:[ |
|
2229 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/128.xml')). |
|
2230 ] raise: SAXParseError. |
|
2231 |
|
2232 "Modified: / 25-10-2005 / 14:59:19 / janfrog" |
|
2233 ! |
|
2234 |
|
2235 test_not_wf_sa_129 |
|
2236 |
|
2237 |
|
2238 "Sections: 3.2 [45]" |
|
2239 "Description: |
|
2240 Invalid syntax for Element Type Declaration. " |
|
2241 |
|
2242 |
|
2243 self should:[ |
|
2244 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/129.xml')). |
|
2245 ] raise: SAXParseError. |
|
2246 |
|
2247 "Modified: / 25-10-2005 / 14:59:19 / janfrog" |
|
2248 ! |
|
2249 |
|
2250 test_not_wf_sa_130 |
|
2251 |
|
2252 |
|
2253 "Sections: 3.2 [45]" |
|
2254 "Description: |
|
2255 Invalid syntax for Element Type Declaration. " |
|
2256 |
|
2257 |
|
2258 self should:[ |
|
2259 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/130.xml')). |
|
2260 ] raise: SAXParseError. |
|
2261 |
|
2262 "Modified: / 25-10-2005 / 14:59:19 / janfrog" |
|
2263 ! |
|
2264 |
|
2265 test_not_wf_sa_131 |
|
2266 |
|
2267 |
|
2268 "Sections: 3.2 [45]" |
|
2269 "Description: |
|
2270 Invalid syntax for Element Type Declaration. " |
|
2271 |
|
2272 |
|
2273 self should:[ |
|
2274 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/131.xml')). |
|
2275 ] raise: SAXParseError. |
|
2276 |
|
2277 "Modified: / 25-10-2005 / 14:59:19 / janfrog" |
|
2278 ! |
|
2279 |
|
2280 test_not_wf_sa_132 |
|
2281 |
|
2282 |
|
2283 "Sections: 3.2.1 [50]" |
|
2284 "Description: |
|
2285 Invalid syntax mixed connectors used. " |
|
2286 |
|
2287 |
|
2288 self should:[ |
|
2289 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/132.xml')). |
|
2290 ] raise: SAXParseError. |
|
2291 |
|
2292 "Modified: / 25-10-2005 / 14:59:19 / janfrog" |
|
2293 ! |
|
2294 |
|
2295 test_not_wf_sa_133 |
|
2296 |
|
2297 |
|
2298 "Sections: 3.2.1" |
|
2299 "Description: |
|
2300 Illegal whitespace before optional character causes syntax error. " |
|
2301 |
|
2302 |
|
2303 self should:[ |
|
2304 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/133.xml')). |
|
2305 ] raise: SAXParseError. |
|
2306 |
|
2307 "Modified: / 25-10-2005 / 14:59:19 / janfrog" |
|
2308 ! |
|
2309 |
|
2310 test_not_wf_sa_134 |
|
2311 |
|
2312 |
|
2313 "Sections: 3.2.1" |
|
2314 "Description: |
|
2315 Illegal whitespace before optional character causes syntax error. " |
|
2316 |
|
2317 |
|
2318 self should:[ |
|
2319 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/134.xml')). |
|
2320 ] raise: SAXParseError. |
|
2321 |
|
2322 "Modified: / 25-10-2005 / 14:59:19 / janfrog" |
|
2323 ! |
|
2324 |
|
2325 test_not_wf_sa_135 |
|
2326 |
|
2327 |
|
2328 "Sections: 3.2.1 [47]" |
|
2329 "Description: |
|
2330 Invalid character used as connector. " |
|
2331 |
|
2332 |
|
2333 self should:[ |
|
2334 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/135.xml')). |
|
2335 ] raise: SAXParseError. |
|
2336 |
|
2337 "Modified: / 25-10-2005 / 14:59:19 / janfrog" |
|
2338 ! |
|
2339 |
|
2340 test_not_wf_sa_136 |
|
2341 |
|
2342 |
|
2343 "Sections: 3.2 [45]" |
|
2344 "Description: |
|
2345 Tag omission is invalid in XML. " |
|
2346 |
|
2347 |
|
2348 self should:[ |
|
2349 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/136.xml')). |
|
2350 ] raise: SAXParseError. |
|
2351 |
|
2352 "Modified: / 25-10-2005 / 14:59:19 / janfrog" |
|
2353 ! |
|
2354 |
|
2355 test_not_wf_sa_137 |
|
2356 |
|
2357 |
|
2358 "Sections: 3.2 [45]" |
|
2359 "Description: |
|
2360 Space is required before a content model. " |
|
2361 |
|
2362 |
|
2363 self should:[ |
|
2364 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/137.xml')). |
|
2365 ] raise: SAXParseError. |
|
2366 |
|
2367 "Modified: / 25-10-2005 / 14:59:19 / janfrog" |
|
2368 ! |
|
2369 |
|
2370 test_not_wf_sa_138 |
|
2371 |
|
2372 |
|
2373 "Sections: 3.2.1 [48]" |
|
2374 "Description: |
|
2375 Invalid syntax for content particle. " |
|
2376 |
|
2377 |
|
2378 self should:[ |
|
2379 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/138.xml')). |
|
2380 ] raise: SAXParseError. |
|
2381 |
|
2382 "Modified: / 25-10-2005 / 14:59:19 / janfrog" |
|
2383 ! |
|
2384 |
|
2385 test_not_wf_sa_139 |
|
2386 |
|
2387 |
|
2388 "Sections: 3.2.1 [46]" |
|
2389 "Description: |
|
2390 The element-content model should not be empty. " |
|
2391 |
|
2392 |
|
2393 self should:[ |
|
2394 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/139.xml')). |
|
2395 ] raise: SAXParseError. |
|
2396 |
|
2397 "Modified: / 25-10-2005 / 14:59:19 / janfrog" |
|
2398 ! |
|
2399 |
|
2400 test_not_wf_sa_140 |
|
2401 |
|
2402 |
|
2403 "Sections: 2.3 [4]" |
|
2404 "Description: |
|
2405 Character '゚' is a CombiningChar, not a |
|
2406 Letter, and so may not begin a name." |
|
2407 |
|
2408 |
|
2409 self should:[ |
|
2410 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/140.xml')). |
|
2411 ] raise: SAXParseError. |
|
2412 |
|
2413 "Modified: / 25-10-2005 / 14:59:20 / janfrog" |
|
2414 ! |
|
2415 |
|
2416 test_not_wf_sa_141 |
|
2417 |
|
2418 |
|
2419 "Sections: 2.3 [5]" |
|
2420 "Description: |
|
2421 Character #x0E5C is not legal in XML names. " |
|
2422 |
|
2423 |
|
2424 self should:[ |
|
2425 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/141.xml')). |
|
2426 ] raise: SAXParseError. |
|
2427 |
|
2428 "Modified: / 25-10-2005 / 14:59:20 / janfrog" |
|
2429 ! |
|
2430 |
|
2431 test_not_wf_sa_142 |
|
2432 |
|
2433 |
|
2434 "Sections: 2.2 [2]" |
|
2435 "Description: |
|
2436 Character #x0000 is not legal anywhere in an XML document. " |
|
2437 |
|
2438 |
|
2439 self should:[ |
|
2440 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/142.xml')). |
|
2441 ] raise: SAXParseError. |
|
2442 |
|
2443 "Modified: / 25-10-2005 / 14:59:20 / janfrog" |
|
2444 ! |
|
2445 |
|
2446 test_not_wf_sa_143 |
|
2447 |
|
2448 |
|
2449 "Sections: 2.2 [2]" |
|
2450 "Description: |
|
2451 Character #x001F is not legal anywhere in an XML document. " |
|
2452 |
|
2453 |
|
2454 self should:[ |
|
2455 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/143.xml')). |
|
2456 ] raise: SAXParseError. |
|
2457 |
|
2458 "Modified: / 25-10-2005 / 14:59:20 / janfrog" |
|
2459 ! |
|
2460 |
|
2461 test_not_wf_sa_144 |
|
2462 |
|
2463 |
|
2464 "Sections: 2.2 [2]" |
|
2465 "Description: |
|
2466 Character #xFFFF is not legal anywhere in an XML document. " |
|
2467 |
|
2468 |
|
2469 self should:[ |
|
2470 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/144.xml')). |
|
2471 ] raise: SAXParseError. |
|
2472 |
|
2473 "Modified: / 25-10-2005 / 14:59:20 / janfrog" |
|
2474 ! |
|
2475 |
|
2476 test_not_wf_sa_145 |
|
2477 |
|
2478 |
|
2479 "Sections: 2.2 [2]" |
|
2480 "Description: |
|
2481 Character #xD800 is not legal anywhere in an XML document. (If it |
|
2482 appeared in a UTF-16 surrogate pair, it'd represent half of a UCS-4 |
|
2483 character and so wouldn't really be in the document.) " |
|
2484 |
|
2485 |
|
2486 self should:[ |
|
2487 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/145.xml')). |
|
2488 ] raise: SAXParseError. |
|
2489 |
|
2490 "Modified: / 25-10-2005 / 14:59:20 / janfrog" |
|
2491 ! |
|
2492 |
|
2493 test_not_wf_sa_146 |
|
2494 |
|
2495 |
|
2496 "Sections: 2.2 [2]" |
|
2497 "Description: |
|
2498 Character references must also refer to legal XML characters; |
|
2499 #x00110000 is one more than the largest legal character." |
|
2500 |
|
2501 |
|
2502 self should:[ |
|
2503 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/146.xml')). |
|
2504 ] raise: SAXParseError. |
|
2505 |
|
2506 "Modified: / 25-10-2005 / 14:59:20 / janfrog" |
|
2507 ! |
|
2508 |
|
2509 test_not_wf_sa_147 |
|
2510 |
|
2511 |
|
2512 "Sections: 2.8 [22]" |
|
2513 "Description: |
|
2514 XML Declaration may not be preceded by whitespace." |
|
2515 |
|
2516 |
|
2517 self should:[ |
|
2518 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/147.xml')). |
|
2519 ] raise: SAXParseError. |
|
2520 |
|
2521 "Modified: / 25-10-2005 / 14:59:20 / janfrog" |
|
2522 ! |
|
2523 |
|
2524 test_not_wf_sa_148 |
|
2525 |
|
2526 |
|
2527 "Sections: 2.8 [22]" |
|
2528 "Description: |
|
2529 XML Declaration may not be preceded by comments or whitespace." |
|
2530 |
|
2531 |
|
2532 self should:[ |
|
2533 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/148.xml')). |
|
2534 ] raise: SAXParseError. |
|
2535 |
|
2536 "Modified: / 25-10-2005 / 14:59:20 / janfrog" |
|
2537 ! |
|
2538 |
|
2539 test_not_wf_sa_149 |
|
2540 |
|
2541 |
|
2542 "Sections: 2.8 [28]" |
|
2543 "Description: |
|
2544 XML Declaration may not be within a DTD." |
|
2545 |
|
2546 |
|
2547 self should:[ |
|
2548 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/149.xml')). |
|
2549 ] raise: SAXParseError. |
|
2550 |
|
2551 "Modified: / 25-10-2005 / 14:59:20 / janfrog" |
|
2552 ! |
|
2553 |
|
2554 test_not_wf_sa_150 |
|
2555 |
|
2556 |
|
2557 "Sections: 3.1 [43]" |
|
2558 "Description: |
|
2559 XML declarations may not be within element content. " |
|
2560 |
|
2561 |
|
2562 self should:[ |
|
2563 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/150.xml')). |
|
2564 ] raise: SAXParseError. |
|
2565 |
|
2566 "Modified: / 25-10-2005 / 14:59:20 / janfrog" |
|
2567 ! |
|
2568 |
|
2569 test_not_wf_sa_151 |
|
2570 |
|
2571 |
|
2572 "Sections: 2.8 [27]" |
|
2573 "Description: |
|
2574 XML declarations may not follow document content." |
|
2575 |
|
2576 |
|
2577 self should:[ |
|
2578 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/151.xml')). |
|
2579 ] raise: SAXParseError. |
|
2580 |
|
2581 "Modified: / 25-10-2005 / 14:59:20 / janfrog" |
|
2582 ! |
|
2583 |
|
2584 test_not_wf_sa_152 |
|
2585 |
|
2586 |
|
2587 "Sections: 2.8 [22]" |
|
2588 "Description: |
|
2589 XML declarations must include the `version=...` string." |
|
2590 |
|
2591 |
|
2592 self should:[ |
|
2593 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/152.xml')). |
|
2594 ] raise: SAXParseError. |
|
2595 |
|
2596 "Modified: / 25-10-2005 / 14:59:20 / janfrog" |
|
2597 ! |
|
2598 |
|
2599 test_not_wf_sa_153 |
|
2600 |
|
2601 |
|
2602 "Sections: 4.3.2" |
|
2603 "Description: |
|
2604 Text declarations may not begin internal parsed entities; |
|
2605 they may only appear at the beginning of external parsed |
|
2606 (parameter or general) entities. " |
|
2607 |
|
2608 |
|
2609 self should:[ |
|
2610 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/153.xml')). |
|
2611 ] raise: SAXParseError. |
|
2612 |
|
2613 "Modified: / 25-10-2005 / 14:59:20 / janfrog" |
|
2614 ! |
|
2615 |
|
2616 test_not_wf_sa_154 |
|
2617 |
|
2618 |
|
2619 "Sections: 2.8 2.6 [23, 17]" |
|
2620 "Description: |
|
2621 '<?XML ...?>' is neither an XML declaration |
|
2622 nor a legal processing instruction target name. " |
|
2623 |
|
2624 |
|
2625 self should:[ |
|
2626 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/154.xml')). |
|
2627 ] raise: SAXParseError. |
|
2628 |
|
2629 "Modified: / 25-10-2005 / 14:59:20 / janfrog" |
|
2630 ! |
|
2631 |
|
2632 test_not_wf_sa_155 |
|
2633 |
|
2634 |
|
2635 "Sections: 2.8 2.6 [23, 17]" |
|
2636 "Description: |
|
2637 '<?xmL ...?>' is neither an XML declaration |
|
2638 nor a legal processing instruction target name. " |
|
2639 |
|
2640 |
|
2641 self should:[ |
|
2642 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/155.xml')). |
|
2643 ] raise: SAXParseError. |
|
2644 |
|
2645 "Modified: / 25-10-2005 / 14:59:21 / janfrog" |
|
2646 ! |
|
2647 |
|
2648 test_not_wf_sa_156 |
|
2649 |
|
2650 |
|
2651 "Sections: 2.8 2.6 [23, 17]" |
|
2652 "Description: |
|
2653 '<?xMl ...?>' is neither an XML declaration |
|
2654 nor a legal processing instruction target name. " |
|
2655 |
|
2656 |
|
2657 self should:[ |
|
2658 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/156.xml')). |
|
2659 ] raise: SAXParseError. |
|
2660 |
|
2661 "Modified: / 25-10-2005 / 14:59:21 / janfrog" |
|
2662 ! |
|
2663 |
|
2664 test_not_wf_sa_157 |
|
2665 |
|
2666 |
|
2667 "Sections: 2.6 [17]" |
|
2668 "Description: |
|
2669 '<?xmL ...?>' is not a legal processing instruction |
|
2670 target name. " |
|
2671 |
|
2672 |
|
2673 self should:[ |
|
2674 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/157.xml')). |
|
2675 ] raise: SAXParseError. |
|
2676 |
|
2677 "Modified: / 25-10-2005 / 14:59:21 / janfrog" |
|
2678 ! |
|
2679 |
|
2680 test_not_wf_sa_158 |
|
2681 |
|
2682 |
|
2683 "Sections: 3.3 [52]" |
|
2684 "Description: |
|
2685 SGML-ism: `#NOTATION gif` can't have attributes. " |
|
2686 |
|
2687 |
|
2688 self should:[ |
|
2689 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/158.xml')). |
|
2690 ] raise: SAXParseError. |
|
2691 |
|
2692 "Modified: / 25-10-2005 / 14:59:21 / janfrog" |
|
2693 ! |
|
2694 |
|
2695 test_not_wf_sa_159 |
|
2696 |
|
2697 |
|
2698 "Sections: 2.3 [9]" |
|
2699 "Description: |
|
2700 Uses '&' unquoted in an entity declaration, |
|
2701 which is illegal syntax for an entity reference." |
|
2702 |
|
2703 |
|
2704 self should:[ |
|
2705 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/159.xml')). |
|
2706 ] raise: SAXParseError. |
|
2707 |
|
2708 "Modified: / 25-10-2005 / 14:59:21 / janfrog" |
|
2709 ! |
|
2710 |
|
2711 test_not_wf_sa_160 |
|
2712 |
|
2713 |
|
2714 "Sections: 2.8" |
|
2715 "Description: |
|
2716 Violates the " |
|
2717 |
|
2718 |
|
2719 self should:[ |
|
2720 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/160.xml')). |
|
2721 ] raise: SAXParseError. |
|
2722 |
|
2723 "Modified: / 25-10-2005 / 14:59:21 / janfrog" |
|
2724 ! |
|
2725 |
|
2726 test_not_wf_sa_161 |
|
2727 |
|
2728 |
|
2729 "Sections: 2.8" |
|
2730 "Description: |
|
2731 Violates the " |
|
2732 |
|
2733 |
|
2734 self should:[ |
|
2735 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/161.xml')). |
|
2736 ] raise: SAXParseError. |
|
2737 |
|
2738 "Modified: / 25-10-2005 / 14:59:21 / janfrog" |
|
2739 ! |
|
2740 |
|
2741 test_not_wf_sa_162 |
|
2742 |
|
2743 |
|
2744 "Sections: 2.8" |
|
2745 "Description: |
|
2746 Violates the " |
|
2747 |
|
2748 |
|
2749 self should:[ |
|
2750 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/162.xml')). |
|
2751 ] raise: SAXParseError. |
|
2752 |
|
2753 "Modified: / 25-10-2005 / 14:59:21 / janfrog" |
|
2754 ! |
|
2755 |
|
2756 test_not_wf_sa_163 |
|
2757 |
|
2758 |
|
2759 "Sections: 4.1 [69]" |
|
2760 "Description: |
|
2761 Invalid placement of Parameter entity reference. " |
|
2762 |
|
2763 |
|
2764 self should:[ |
|
2765 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/163.xml')). |
|
2766 ] raise: SAXParseError. |
|
2767 |
|
2768 "Modified: / 25-10-2005 / 14:59:21 / janfrog" |
|
2769 ! |
|
2770 |
|
2771 test_not_wf_sa_164 |
|
2772 |
|
2773 |
|
2774 "Sections: 4.1 [69]" |
|
2775 "Description: |
|
2776 Invalid placement of Parameter entity reference. " |
|
2777 |
|
2778 |
|
2779 self should:[ |
|
2780 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/164.xml')). |
|
2781 ] raise: SAXParseError. |
|
2782 |
|
2783 "Modified: / 25-10-2005 / 14:59:21 / janfrog" |
|
2784 ! |
|
2785 |
|
2786 test_not_wf_sa_165 |
|
2787 |
|
2788 |
|
2789 "Sections: 4.2 [72]" |
|
2790 "Description: |
|
2791 Parameter entity declarations must have a space before |
|
2792 the '%'. " |
|
2793 |
|
2794 |
|
2795 self should:[ |
|
2796 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/165.xml')). |
|
2797 ] raise: SAXParseError. |
|
2798 |
|
2799 "Modified: / 25-10-2005 / 14:59:21 / janfrog" |
|
2800 ! |
|
2801 |
|
2802 test_not_wf_sa_166 |
|
2803 |
|
2804 |
|
2805 "Sections: 2.2 [2]" |
|
2806 "Description: |
|
2807 Character FFFF is not legal anywhere in an XML document. " |
|
2808 |
|
2809 |
|
2810 self should:[ |
|
2811 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/166.xml')). |
|
2812 ] raise: SAXParseError. |
|
2813 |
|
2814 "Modified: / 25-10-2005 / 14:59:21 / janfrog" |
|
2815 ! |
|
2816 |
|
2817 test_not_wf_sa_167 |
|
2818 |
|
2819 |
|
2820 "Sections: 2.2 [2]" |
|
2821 "Description: |
|
2822 Character FFFE is not legal anywhere in an XML document. " |
|
2823 |
|
2824 |
|
2825 self should:[ |
|
2826 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/167.xml')). |
|
2827 ] raise: SAXParseError. |
|
2828 |
|
2829 "Modified: / 25-10-2005 / 14:59:22 / janfrog" |
|
2830 ! |
|
2831 |
|
2832 test_not_wf_sa_168 |
|
2833 |
|
2834 |
|
2835 "Sections: 2.2 [2]" |
|
2836 "Description: |
|
2837 An unpaired surrogate (D800) is not legal anywhere |
|
2838 in an XML document." |
|
2839 |
|
2840 |
|
2841 self should:[ |
|
2842 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/168.xml')). |
|
2843 ] raise: SAXParseError. |
|
2844 |
|
2845 "Modified: / 25-10-2005 / 14:59:22 / janfrog" |
|
2846 ! |
|
2847 |
|
2848 test_not_wf_sa_169 |
|
2849 |
|
2850 |
|
2851 "Sections: 2.2 [2]" |
|
2852 "Description: |
|
2853 An unpaired surrogate (DC00) is not legal anywhere |
|
2854 in an XML document." |
|
2855 |
|
2856 |
|
2857 self should:[ |
|
2858 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/169.xml')). |
|
2859 ] raise: SAXParseError. |
|
2860 |
|
2861 "Modified: / 25-10-2005 / 14:59:22 / janfrog" |
|
2862 ! |
|
2863 |
|
2864 test_not_wf_sa_170 |
|
2865 |
|
2866 |
|
2867 "Sections: 2.2 [2]" |
|
2868 "Description: |
|
2869 Four byte UTF-8 encodings can encode UCS-4 characters |
|
2870 which are beyond the range of legal XML characters |
|
2871 (and can't be expressed in Unicode surrogate pairs). |
|
2872 This document holds such a character. " |
|
2873 |
|
2874 |
|
2875 self should:[ |
|
2876 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/170.xml')). |
|
2877 ] raise: SAXParseError. |
|
2878 |
|
2879 "Modified: / 25-10-2005 / 14:59:22 / janfrog" |
|
2880 ! |
|
2881 |
|
2882 test_not_wf_sa_171 |
|
2883 |
|
2884 |
|
2885 "Sections: 2.2 [2]" |
|
2886 "Description: |
|
2887 Character FFFF is not legal anywhere in an XML document. " |
|
2888 |
|
2889 |
|
2890 self should:[ |
|
2891 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/171.xml')). |
|
2892 ] raise: SAXParseError. |
|
2893 |
|
2894 "Modified: / 25-10-2005 / 14:59:22 / janfrog" |
|
2895 ! |
|
2896 |
|
2897 test_not_wf_sa_172 |
|
2898 |
|
2899 |
|
2900 "Sections: 2.2 [2]" |
|
2901 "Description: |
|
2902 Character FFFF is not legal anywhere in an XML document. " |
|
2903 |
|
2904 |
|
2905 self should:[ |
|
2906 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/172.xml')). |
|
2907 ] raise: SAXParseError. |
|
2908 |
|
2909 "Modified: / 25-10-2005 / 14:59:22 / janfrog" |
|
2910 ! |
|
2911 |
|
2912 test_not_wf_sa_173 |
|
2913 |
|
2914 |
|
2915 "Sections: 2.2 [2]" |
|
2916 "Description: |
|
2917 Character FFFF is not legal anywhere in an XML document. " |
|
2918 |
|
2919 |
|
2920 self should:[ |
|
2921 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/173.xml')). |
|
2922 ] raise: SAXParseError. |
|
2923 |
|
2924 "Modified: / 25-10-2005 / 14:59:22 / janfrog" |
|
2925 ! |
|
2926 |
|
2927 test_not_wf_sa_174 |
|
2928 |
|
2929 |
|
2930 "Sections: 2.2 [2]" |
|
2931 "Description: |
|
2932 Character FFFF is not legal anywhere in an XML document. " |
|
2933 |
|
2934 |
|
2935 self should:[ |
|
2936 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/174.xml')). |
|
2937 ] raise: SAXParseError. |
|
2938 |
|
2939 "Modified: / 25-10-2005 / 14:59:22 / janfrog" |
|
2940 ! |
|
2941 |
|
2942 test_not_wf_sa_175 |
|
2943 |
|
2944 |
|
2945 "Sections: 2.2 [2]" |
|
2946 "Description: |
|
2947 Character FFFF is not legal anywhere in an XML document. " |
|
2948 |
|
2949 |
|
2950 self should:[ |
|
2951 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/175.xml')). |
|
2952 ] raise: SAXParseError. |
|
2953 |
|
2954 "Modified: / 25-10-2005 / 14:59:22 / janfrog" |
|
2955 ! |
|
2956 |
|
2957 test_not_wf_sa_176 |
|
2958 |
|
2959 |
|
2960 "Sections: 3 [39]" |
|
2961 "Description: |
|
2962 Start tags must have matching end tags." |
|
2963 |
|
2964 |
|
2965 self should:[ |
|
2966 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/176.xml')). |
|
2967 ] raise: SAXParseError. |
|
2968 |
|
2969 "Modified: / 25-10-2005 / 14:59:22 / janfrog" |
|
2970 ! |
|
2971 |
|
2972 test_not_wf_sa_177 |
|
2973 |
|
2974 |
|
2975 "Sections: 2.2 [2]" |
|
2976 "Description: |
|
2977 Character FFFF is not legal anywhere in an XML document. " |
|
2978 |
|
2979 |
|
2980 self should:[ |
|
2981 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/177.xml')). |
|
2982 ] raise: SAXParseError. |
|
2983 |
|
2984 "Modified: / 25-10-2005 / 14:59:22 / janfrog" |
|
2985 ! |
|
2986 |
|
2987 test_not_wf_sa_178 |
|
2988 |
|
2989 |
|
2990 "Sections: 3.1 [41]" |
|
2991 "Description: |
|
2992 Invalid syntax matching double quote is missing. " |
|
2993 |
|
2994 |
|
2995 self should:[ |
|
2996 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/178.xml')). |
|
2997 ] raise: SAXParseError. |
|
2998 |
|
2999 "Modified: / 25-10-2005 / 14:59:22 / janfrog" |
|
3000 ! |
|
3001 |
|
3002 test_not_wf_sa_179 |
|
3003 |
|
3004 |
|
3005 "Sections: 4.1 [66]" |
|
3006 "Description: |
|
3007 Invalid syntax matching double quote is missing. " |
|
3008 |
|
3009 |
|
3010 self should:[ |
|
3011 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/179.xml')). |
|
3012 ] raise: SAXParseError. |
|
3013 |
|
3014 "Modified: / 25-10-2005 / 14:59:22 / janfrog" |
|
3015 ! |
|
3016 |
|
3017 test_not_wf_sa_180 |
|
3018 |
|
3019 |
|
3020 "Sections: 4.1" |
|
3021 "Description: |
|
3022 The " |
|
3023 |
|
3024 |
|
3025 self should:[ |
|
3026 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/180.xml')). |
|
3027 ] raise: SAXParseError. |
|
3028 |
|
3029 "Modified: / 25-10-2005 / 14:59:23 / janfrog" |
|
3030 ! |
|
3031 |
|
3032 test_not_wf_sa_181 |
|
3033 |
|
3034 |
|
3035 "Sections: 4.3.2" |
|
3036 "Description: |
|
3037 Internal parsed entities must match the " |
|
3038 |
|
3039 |
|
3040 self should:[ |
|
3041 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/181.xml')). |
|
3042 ] raise: SAXParseError. |
|
3043 |
|
3044 "Modified: / 25-10-2005 / 14:59:23 / janfrog" |
|
3045 ! |
|
3046 |
|
3047 test_not_wf_sa_182 |
|
3048 |
|
3049 |
|
3050 "Sections: 4.3.2" |
|
3051 "Description: |
|
3052 Internal parsed entities must match the " |
|
3053 |
|
3054 |
|
3055 self should:[ |
|
3056 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/182.xml')). |
|
3057 ] raise: SAXParseError. |
|
3058 |
|
3059 "Modified: / 25-10-2005 / 14:59:23 / janfrog" |
|
3060 ! |
|
3061 |
|
3062 test_not_wf_sa_183 |
|
3063 |
|
3064 |
|
3065 "Sections: 3.2.2 [51]" |
|
3066 "Description: |
|
3067 Mixed content declarations may not include content particles." |
|
3068 |
|
3069 |
|
3070 self should:[ |
|
3071 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/183.xml')). |
|
3072 ] raise: SAXParseError. |
|
3073 |
|
3074 "Modified: / 25-10-2005 / 14:59:23 / janfrog" |
|
3075 ! |
|
3076 |
|
3077 test_not_wf_sa_184 |
|
3078 |
|
3079 |
|
3080 "Sections: 3.2.2 [51]" |
|
3081 "Description: |
|
3082 In mixed content models, element names must not be |
|
3083 parenthesized. " |
|
3084 |
|
3085 |
|
3086 self should:[ |
|
3087 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/184.xml')). |
|
3088 ] raise: SAXParseError. |
|
3089 |
|
3090 "Modified: / 25-10-2005 / 14:59:23 / janfrog" |
|
3091 ! |
|
3092 |
|
3093 test_not_wf_sa_185 |
|
3094 |
|
3095 |
|
3096 "Sections: 4.1" |
|
3097 "Description: |
|
3098 Tests the " |
|
3099 |
|
3100 |
|
3101 self should:[ |
|
3102 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/185.xml')). |
|
3103 ] raise: SAXParseError. |
|
3104 |
|
3105 "Modified: / 25-10-2005 / 14:59:23 / janfrog" |
|
3106 ! |
|
3107 |
|
3108 test_not_wf_sa_186 |
|
3109 |
|
3110 |
|
3111 "Sections: 3.1 [44]" |
|
3112 "Description: |
|
3113 Whitespace is required between attribute/value pairs. " |
|
3114 |
|
3115 |
|
3116 self should:[ |
|
3117 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/not-wf/sa/186.xml')). |
|
3118 ] raise: SAXParseError. |
|
3119 |
|
3120 "Modified: / 25-10-2005 / 14:59:23 / janfrog" |
|
3121 ! |
|
3122 |
|
3123 test_valid_ext_sa_001 |
|
3124 |
|
3125 |
|
3126 "Sections: 2.11" |
|
3127 "Description: |
|
3128 A combination of carriage return line feed in an external entity must |
|
3129 be normalized to a single newline. " |
|
3130 |
|
3131 |
|
3132 self shouldnt:[ |
|
3133 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/ext-sa/001.xml')). |
|
3134 ] raise: Error. |
|
3135 |
|
3136 "Modified: / 25-10-2005 / 14:59:37 / janfrog" |
|
3137 ! |
|
3138 |
|
3139 test_valid_ext_sa_002 |
|
3140 |
|
3141 |
|
3142 "Sections: 2.11" |
|
3143 "Description: |
|
3144 A carriage return (also CRLF) in an external entity must |
|
3145 be normalized to a single newline. " |
|
3146 |
|
3147 |
|
3148 self shouldnt:[ |
|
3149 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/ext-sa/002.xml')). |
|
3150 ] raise: Error. |
|
3151 |
|
3152 "Modified: / 25-10-2005 / 14:59:37 / janfrog" |
|
3153 ! |
|
3154 |
|
3155 test_valid_ext_sa_003 |
|
3156 |
|
3157 |
|
3158 "Sections: 3.1 4.1 [43] [68]" |
|
3159 "Description: |
|
3160 Test demonstrates that the content of an element can be empty. In this case the external entity is an empty file. " |
|
3161 |
|
3162 |
|
3163 self shouldnt:[ |
|
3164 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/ext-sa/003.xml')). |
|
3165 ] raise: Error. |
|
3166 |
|
3167 "Modified: / 25-10-2005 / 14:59:37 / janfrog" |
|
3168 ! |
|
3169 |
|
3170 test_valid_ext_sa_004 |
|
3171 |
|
3172 |
|
3173 "Sections: 2.11" |
|
3174 "Description: |
|
3175 A carriage return (also CRLF) in an external entity must |
|
3176 be normalized to a single newline. " |
|
3177 |
|
3178 |
|
3179 self shouldnt:[ |
|
3180 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/ext-sa/004.xml')). |
|
3181 ] raise: Error. |
|
3182 |
|
3183 "Modified: / 25-10-2005 / 14:59:38 / janfrog" |
|
3184 ! |
|
3185 |
|
3186 test_valid_ext_sa_005 |
|
3187 |
|
3188 |
|
3189 "Sections: 3.2.1 4.2.2 [48] [75]" |
|
3190 "Description: |
|
3191 Test demonstrates the use of optional character and content particles within an element content. The test also show the use of external entity. " |
|
3192 |
|
3193 |
|
3194 self shouldnt:[ |
|
3195 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/ext-sa/005.xml')). |
|
3196 ] raise: Error. |
|
3197 |
|
3198 "Modified: / 25-10-2005 / 14:59:38 / janfrog" |
|
3199 ! |
|
3200 |
|
3201 test_valid_ext_sa_006 |
|
3202 |
|
3203 |
|
3204 "Sections: 2.11 3.2.1 3.2.2 4.2.2 [48] [51] [75]" |
|
3205 "Description: |
|
3206 Test demonstrates the use of optional character and content particles within mixed element content. The test also shows the use of an external entity and that a carriage control line feed in an external entity must be normalized to a single newline. " |
|
3207 |
|
3208 |
|
3209 self shouldnt:[ |
|
3210 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/ext-sa/006.xml')). |
|
3211 ] raise: Error. |
|
3212 |
|
3213 "Modified: / 25-10-2005 / 14:59:38 / janfrog" |
|
3214 ! |
|
3215 |
|
3216 test_valid_ext_sa_007 |
|
3217 |
|
3218 |
|
3219 "Sections: 4.2.2 4.4.3 [75]" |
|
3220 "Description: |
|
3221 Test demonstrates the use of external entity and how replacement |
|
3222 text is retrieved and processed. " |
|
3223 |
|
3224 |
|
3225 self shouldnt:[ |
|
3226 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/ext-sa/007.xml')). |
|
3227 ] raise: Error. |
|
3228 |
|
3229 "Modified: / 25-10-2005 / 14:59:38 / janfrog" |
|
3230 ! |
|
3231 |
|
3232 test_valid_ext_sa_008 |
|
3233 |
|
3234 |
|
3235 "Sections: 4.2.2 4.3.3. 4.4.3 [75] [80]" |
|
3236 "Description: Test demonstrates the use of external |
|
3237 entity and how replacement text is retrieved and processed. Also tests the use of an |
|
3238 EncodingDecl of UTF-16." |
|
3239 |
|
3240 |
|
3241 self shouldnt:[ |
|
3242 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/ext-sa/008.xml')). |
|
3243 ] raise: Error. |
|
3244 |
|
3245 "Modified: / 25-10-2005 / 14:59:38 / janfrog" |
|
3246 ! |
|
3247 |
|
3248 test_valid_ext_sa_009 |
|
3249 |
|
3250 |
|
3251 "Sections: 2.11" |
|
3252 "Description: |
|
3253 A carriage return (also CRLF) in an external entity must |
|
3254 be normalized to a single newline. " |
|
3255 |
|
3256 |
|
3257 self shouldnt:[ |
|
3258 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/ext-sa/009.xml')). |
|
3259 ] raise: Error. |
|
3260 |
|
3261 "Modified: / 25-10-2005 / 14:59:38 / janfrog" |
|
3262 ! |
|
3263 |
|
3264 test_valid_ext_sa_011 |
|
3265 |
|
3266 |
|
3267 "Sections: 2.11 4.2.2 [75]" |
|
3268 "Description: |
|
3269 Test demonstrates the use of a public identifier with and external entity. |
|
3270 The test also show that a carriage control line feed combination in an external |
|
3271 entity must be normalized to a single newline. " |
|
3272 |
|
3273 |
|
3274 self shouldnt:[ |
|
3275 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/ext-sa/011.xml')). |
|
3276 ] raise: Error. |
|
3277 |
|
3278 "Modified: / 25-10-2005 / 14:59:38 / janfrog" |
|
3279 ! |
|
3280 |
|
3281 test_valid_ext_sa_012 |
|
3282 |
|
3283 |
|
3284 "Sections: 4.2.1 4.2.2" |
|
3285 "Description: |
|
3286 Test demonstrates both internal and external entities and that processing of entity references may be required to produce the correct replacement text." |
|
3287 |
|
3288 |
|
3289 self shouldnt:[ |
|
3290 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/ext-sa/012.xml')). |
|
3291 ] raise: Error. |
|
3292 |
|
3293 "Modified: / 25-10-2005 / 14:59:38 / janfrog" |
|
3294 ! |
|
3295 |
|
3296 test_valid_ext_sa_013 |
|
3297 |
|
3298 |
|
3299 "Sections: 3.3.3" |
|
3300 "Description: |
|
3301 Test demonstrates that whitespace is handled by adding a single whitespace to the normalized value in the attribute list. " |
|
3302 |
|
3303 |
|
3304 self shouldnt:[ |
|
3305 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/ext-sa/013.xml')). |
|
3306 ] raise: Error. |
|
3307 |
|
3308 "Modified: / 25-10-2005 / 14:59:38 / janfrog" |
|
3309 ! |
|
3310 |
|
3311 test_valid_ext_sa_014 |
|
3312 |
|
3313 |
|
3314 "Sections: 4.1 4.4.3 [68]" |
|
3315 "Description: |
|
3316 Test demonstrates use of characters outside of normal ASCII range." |
|
3317 |
|
3318 |
|
3319 self shouldnt:[ |
|
3320 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/ext-sa/014.xml')). |
|
3321 ] raise: Error. |
|
3322 |
|
3323 "Modified: / 25-10-2005 / 14:59:38 / janfrog" |
|
3324 ! |
|
3325 |
|
3326 test_valid_not_sa_001 |
|
3327 |
|
3328 |
|
3329 "Sections: 4.2.2 [75]" |
|
3330 "Description: |
|
3331 Test demonstrates the use of an ExternalID within a document type definition. " |
|
3332 |
|
3333 |
|
3334 self shouldnt:[ |
|
3335 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/not-sa/001.xml')). |
|
3336 ] raise: Error. |
|
3337 |
|
3338 "Modified: / 25-10-2005 / 14:59:34 / janfrog" |
|
3339 ! |
|
3340 |
|
3341 test_valid_not_sa_002 |
|
3342 |
|
3343 |
|
3344 "Sections: 4.2.2 [75]" |
|
3345 "Description: |
|
3346 Test demonstrates the use of an ExternalID within a document type definition. " |
|
3347 |
|
3348 |
|
3349 self shouldnt:[ |
|
3350 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/not-sa/002.xml')). |
|
3351 ] raise: Error. |
|
3352 |
|
3353 "Modified: / 25-10-2005 / 14:59:34 / janfrog" |
|
3354 ! |
|
3355 |
|
3356 test_valid_not_sa_003 |
|
3357 |
|
3358 |
|
3359 "Sections: 4.1 [69]" |
|
3360 "Description: |
|
3361 Test demonstrates the expansion of an external parameter entity that declares an attribute. " |
|
3362 |
|
3363 |
|
3364 self shouldnt:[ |
|
3365 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/not-sa/003.xml')). |
|
3366 ] raise: Error. |
|
3367 |
|
3368 "Modified: / 25-10-2005 / 14:59:34 / janfrog" |
|
3369 ! |
|
3370 |
|
3371 test_valid_not_sa_004 |
|
3372 |
|
3373 |
|
3374 "Sections: 4.1 [69]" |
|
3375 "Description: |
|
3376 Expands an external parameter entity in two different ways, |
|
3377 with one of them declaring an attribute." |
|
3378 |
|
3379 |
|
3380 self shouldnt:[ |
|
3381 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/not-sa/004.xml')). |
|
3382 ] raise: Error. |
|
3383 |
|
3384 "Modified: / 25-10-2005 / 14:59:34 / janfrog" |
|
3385 ! |
|
3386 |
|
3387 test_valid_not_sa_005 |
|
3388 |
|
3389 |
|
3390 "Sections: 4.1 [69]" |
|
3391 "Description: |
|
3392 Test demonstrates the expansion of an external parameter entity that declares an attribute. " |
|
3393 |
|
3394 |
|
3395 self shouldnt:[ |
|
3396 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/not-sa/005.xml')). |
|
3397 ] raise: Error. |
|
3398 |
|
3399 "Modified: / 25-10-2005 / 14:59:34 / janfrog" |
|
3400 ! |
|
3401 |
|
3402 test_valid_not_sa_006 |
|
3403 |
|
3404 |
|
3405 "Sections: 3.3 [52]" |
|
3406 "Description: |
|
3407 Test demonstrates that when more than one definition is provided for the same attribute of a given element type only the first declaration is binding. " |
|
3408 |
|
3409 |
|
3410 self shouldnt:[ |
|
3411 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/not-sa/006.xml')). |
|
3412 ] raise: Error. |
|
3413 |
|
3414 "Modified: / 25-10-2005 / 14:59:34 / janfrog" |
|
3415 ! |
|
3416 |
|
3417 test_valid_not_sa_007 |
|
3418 |
|
3419 |
|
3420 "Sections: 3.3 [52]" |
|
3421 "Description: |
|
3422 Test demonstrates the use of an Attribute list declaration within an external entity. " |
|
3423 |
|
3424 |
|
3425 self shouldnt:[ |
|
3426 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/not-sa/007.xml')). |
|
3427 ] raise: Error. |
|
3428 |
|
3429 "Modified: / 25-10-2005 / 14:59:35 / janfrog" |
|
3430 ! |
|
3431 |
|
3432 test_valid_not_sa_008 |
|
3433 |
|
3434 |
|
3435 "Sections: 4.2.2 [75]" |
|
3436 "Description: |
|
3437 Test demonstrates that an external identifier may include a public identifier. " |
|
3438 |
|
3439 |
|
3440 self shouldnt:[ |
|
3441 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/not-sa/008.xml')). |
|
3442 ] raise: Error. |
|
3443 |
|
3444 "Modified: / 25-10-2005 / 14:59:35 / janfrog" |
|
3445 ! |
|
3446 |
|
3447 test_valid_not_sa_009 |
|
3448 |
|
3449 |
|
3450 "Sections: 4.2.2 [75]" |
|
3451 "Description: |
|
3452 Test demonstrates that an external identifier may include a public identifier. " |
|
3453 |
|
3454 |
|
3455 self shouldnt:[ |
|
3456 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/not-sa/009.xml')). |
|
3457 ] raise: Error. |
|
3458 |
|
3459 "Modified: / 25-10-2005 / 14:59:35 / janfrog" |
|
3460 ! |
|
3461 |
|
3462 test_valid_not_sa_010 |
|
3463 |
|
3464 |
|
3465 "Sections: 3.3 [52]" |
|
3466 "Description: |
|
3467 Test demonstrates that when more that one definition is provided for the same attribute of a given element type only the first declaration is binding. " |
|
3468 |
|
3469 |
|
3470 self shouldnt:[ |
|
3471 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/not-sa/010.xml')). |
|
3472 ] raise: Error. |
|
3473 |
|
3474 "Modified: / 25-10-2005 / 14:59:35 / janfrog" |
|
3475 ! |
|
3476 |
|
3477 test_valid_not_sa_011 |
|
3478 |
|
3479 |
|
3480 "Sections: 4.2 4.2.1 [72] [75]" |
|
3481 "Description: |
|
3482 Test demonstrates a parameter entity declaration whose parameter entity definition is an ExternalID. " |
|
3483 |
|
3484 |
|
3485 self shouldnt:[ |
|
3486 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/not-sa/011.xml')). |
|
3487 ] raise: Error. |
|
3488 |
|
3489 "Modified: / 25-10-2005 / 14:59:35 / janfrog" |
|
3490 ! |
|
3491 |
|
3492 test_valid_not_sa_012 |
|
3493 |
|
3494 |
|
3495 "Sections: 4.3.1 [77]" |
|
3496 "Description: |
|
3497 Test demonstrates an enternal parsed entity that begins with a text declaration. " |
|
3498 |
|
3499 |
|
3500 self shouldnt:[ |
|
3501 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/not-sa/012.xml')). |
|
3502 ] raise: Error. |
|
3503 |
|
3504 "Modified: / 25-10-2005 / 14:59:35 / janfrog" |
|
3505 ! |
|
3506 |
|
3507 test_valid_not_sa_013 |
|
3508 |
|
3509 |
|
3510 "Sections: 3.4 [62]" |
|
3511 "Description: |
|
3512 Test demonstrates the use of the conditional section INCLUDE that will include its contents as part of the DTD. " |
|
3513 |
|
3514 |
|
3515 self shouldnt:[ |
|
3516 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/not-sa/013.xml')). |
|
3517 ] raise: Error. |
|
3518 |
|
3519 "Modified: / 25-10-2005 / 14:59:35 / janfrog" |
|
3520 ! |
|
3521 |
|
3522 test_valid_not_sa_014 |
|
3523 |
|
3524 |
|
3525 "Sections: 3.4 [62]" |
|
3526 "Description: |
|
3527 Test demonstrates the use of the conditional section INCLUDE that will include its contents as part of the DTD. The keyword is a parameter-entity reference. " |
|
3528 |
|
3529 |
|
3530 self shouldnt:[ |
|
3531 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/not-sa/014.xml')). |
|
3532 ] raise: Error. |
|
3533 |
|
3534 "Modified: / 25-10-2005 / 14:59:35 / janfrog" |
|
3535 ! |
|
3536 |
|
3537 test_valid_not_sa_015 |
|
3538 |
|
3539 |
|
3540 "Sections: 3.4 [63]" |
|
3541 "Description: |
|
3542 Test demonstrates the use of the conditonal section IGNORE the will ignore its content from being part of the DTD. The keyword is a parameter-entity reference. " |
|
3543 |
|
3544 |
|
3545 self shouldnt:[ |
|
3546 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/not-sa/015.xml')). |
|
3547 ] raise: Error. |
|
3548 |
|
3549 "Modified: / 25-10-2005 / 14:59:36 / janfrog" |
|
3550 ! |
|
3551 |
|
3552 test_valid_not_sa_016 |
|
3553 |
|
3554 |
|
3555 "Sections: 3.4 [62]" |
|
3556 "Description: |
|
3557 Test demonstrates the use of the conditional section INCLUDE that will include its contents as part of the DTD. The keyword is a parameter-entity reference." |
|
3558 |
|
3559 |
|
3560 self shouldnt:[ |
|
3561 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/not-sa/016.xml')). |
|
3562 ] raise: Error. |
|
3563 |
|
3564 "Modified: / 25-10-2005 / 14:59:36 / janfrog" |
|
3565 ! |
|
3566 |
|
3567 test_valid_not_sa_017 |
|
3568 |
|
3569 |
|
3570 "Sections: 4.2 [72]" |
|
3571 "Description: |
|
3572 Test demonstrates a parameter entity declaration that contains an attribute list declaration. " |
|
3573 |
|
3574 |
|
3575 self shouldnt:[ |
|
3576 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/not-sa/017.xml')). |
|
3577 ] raise: Error. |
|
3578 |
|
3579 "Modified: / 25-10-2005 / 14:59:36 / janfrog" |
|
3580 ! |
|
3581 |
|
3582 test_valid_not_sa_018 |
|
3583 |
|
3584 |
|
3585 "Sections: 4.2.2 [75]" |
|
3586 "Description: |
|
3587 Test demonstrates an EnternalID whose contents contain an parameter entity declaration and a attribute list definition. " |
|
3588 |
|
3589 |
|
3590 self shouldnt:[ |
|
3591 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/not-sa/018.xml')). |
|
3592 ] raise: Error. |
|
3593 |
|
3594 "Modified: / 25-10-2005 / 14:59:36 / janfrog" |
|
3595 ! |
|
3596 |
|
3597 test_valid_not_sa_019 |
|
3598 |
|
3599 |
|
3600 "Sections: 4.4.8" |
|
3601 "Description: |
|
3602 Test demonstrates that a parameter entity will be expanded with spaces on either side. " |
|
3603 |
|
3604 |
|
3605 self shouldnt:[ |
|
3606 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/not-sa/019.xml')). |
|
3607 ] raise: Error. |
|
3608 |
|
3609 "Modified: / 25-10-2005 / 14:59:36 / janfrog" |
|
3610 ! |
|
3611 |
|
3612 test_valid_not_sa_020 |
|
3613 |
|
3614 |
|
3615 "Sections: 4.4.8" |
|
3616 "Description: |
|
3617 Parameter entities expand with spaces on either side." |
|
3618 |
|
3619 |
|
3620 self shouldnt:[ |
|
3621 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/not-sa/020.xml')). |
|
3622 ] raise: Error. |
|
3623 |
|
3624 "Modified: / 25-10-2005 / 14:59:36 / janfrog" |
|
3625 ! |
|
3626 |
|
3627 test_valid_not_sa_021 |
|
3628 |
|
3629 |
|
3630 "Sections: 4.2 [72]" |
|
3631 "Description: |
|
3632 Test demonstrates a parameter entity declaration that contains a partial attribute list declaration. " |
|
3633 |
|
3634 |
|
3635 self shouldnt:[ |
|
3636 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/not-sa/021.xml')). |
|
3637 ] raise: Error. |
|
3638 |
|
3639 "Modified: / 25-10-2005 / 14:59:36 / janfrog" |
|
3640 ! |
|
3641 |
|
3642 test_valid_not_sa_023 |
|
3643 |
|
3644 |
|
3645 "Sections: 2.3 4.1 [10] [69]" |
|
3646 "Description: |
|
3647 Test demonstrates the use of a parameter entity reference within an attribute list declaration. |
|
3648 " |
|
3649 |
|
3650 |
|
3651 self shouldnt:[ |
|
3652 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/not-sa/023.xml')). |
|
3653 ] raise: Error. |
|
3654 |
|
3655 "Modified: / 25-10-2005 / 14:59:36 / janfrog" |
|
3656 ! |
|
3657 |
|
3658 test_valid_not_sa_024 |
|
3659 |
|
3660 |
|
3661 "Sections: 2.8, 4.1 [69]" |
|
3662 "Description: |
|
3663 Constructs an <iATTLIST...> declaration from several PEs." |
|
3664 |
|
3665 |
|
3666 self shouldnt:[ |
|
3667 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/not-sa/024.xml')). |
|
3668 ] raise: Error. |
|
3669 |
|
3670 "Modified: / 25-10-2005 / 14:59:36 / janfrog" |
|
3671 ! |
|
3672 |
|
3673 test_valid_not_sa_025 |
|
3674 |
|
3675 |
|
3676 "Sections: 4.2" |
|
3677 "Description: |
|
3678 Test demonstrates that when more that one definition is provided for the same entity only the first declaration is binding. " |
|
3679 |
|
3680 |
|
3681 self shouldnt:[ |
|
3682 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/not-sa/025.xml')). |
|
3683 ] raise: Error. |
|
3684 |
|
3685 "Modified: / 25-10-2005 / 14:59:36 / janfrog" |
|
3686 ! |
|
3687 |
|
3688 test_valid_not_sa_026 |
|
3689 |
|
3690 |
|
3691 "Sections: 3.3 [52]" |
|
3692 "Description: |
|
3693 Test demonstrates that when more that one definition is provided for the same attribute of a given element type only the first declaration is binding. " |
|
3694 |
|
3695 |
|
3696 self shouldnt:[ |
|
3697 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/not-sa/026.xml')). |
|
3698 ] raise: Error. |
|
3699 |
|
3700 "Modified: / 25-10-2005 / 14:59:37 / janfrog" |
|
3701 ! |
|
3702 |
|
3703 test_valid_not_sa_027 |
|
3704 |
|
3705 |
|
3706 "Sections: 4.1 [69]" |
|
3707 "Description: |
|
3708 Test demonstrates a parameter entity reference whose value is NULL. " |
|
3709 |
|
3710 |
|
3711 self shouldnt:[ |
|
3712 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/not-sa/027.xml')). |
|
3713 ] raise: Error. |
|
3714 |
|
3715 "Modified: / 25-10-2005 / 14:59:37 / janfrog" |
|
3716 ! |
|
3717 |
|
3718 test_valid_not_sa_028 |
|
3719 |
|
3720 |
|
3721 "Sections: 3.4 [62]" |
|
3722 "Description: |
|
3723 Test demonstrates the use of the conditional section INCLUDE that will include its contents. " |
|
3724 |
|
3725 |
|
3726 self shouldnt:[ |
|
3727 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/not-sa/028.xml')). |
|
3728 ] raise: Error. |
|
3729 |
|
3730 "Modified: / 25-10-2005 / 14:59:37 / janfrog" |
|
3731 ! |
|
3732 |
|
3733 test_valid_not_sa_029 |
|
3734 |
|
3735 |
|
3736 "Sections: 3.4 [62]" |
|
3737 "Description: |
|
3738 Test demonstrates the use of the conditonal section IGNORE the will ignore its content from being used. " |
|
3739 |
|
3740 |
|
3741 self shouldnt:[ |
|
3742 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/not-sa/029.xml')). |
|
3743 ] raise: Error. |
|
3744 |
|
3745 "Modified: / 25-10-2005 / 14:59:37 / janfrog" |
|
3746 ! |
|
3747 |
|
3748 test_valid_not_sa_030 |
|
3749 |
|
3750 |
|
3751 "Sections: 3.4 [62]" |
|
3752 "Description: |
|
3753 Test demonstrates the use of the conditonal section IGNORE the will ignore its content from being used. " |
|
3754 |
|
3755 |
|
3756 self shouldnt:[ |
|
3757 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/not-sa/030.xml')). |
|
3758 ] raise: Error. |
|
3759 |
|
3760 "Modified: / 25-10-2005 / 14:59:37 / janfrog" |
|
3761 ! |
|
3762 |
|
3763 test_valid_not_sa_031 |
|
3764 |
|
3765 |
|
3766 "Sections: 2.7" |
|
3767 "Description: |
|
3768 Expands a general entity which contains a CDATA section with |
|
3769 what looks like a markup declaration (but is just text since |
|
3770 it's in a CDATA section)." |
|
3771 |
|
3772 |
|
3773 self shouldnt:[ |
|
3774 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/not-sa/031.xml')). |
|
3775 ] raise: Error. |
|
3776 |
|
3777 "Modified: / 25-10-2005 / 14:59:37 / janfrog" |
|
3778 ! |
|
3779 |
|
3780 test_valid_sa_001 |
|
3781 |
|
3782 |
|
3783 "Sections: 3.2.2 [51]" |
|
3784 "Description: |
|
3785 Test demonstrates an Element Type Declaration with Mixed Content. " |
|
3786 |
|
3787 |
|
3788 self shouldnt:[ |
|
3789 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/001.xml')). |
|
3790 ] raise: Error. |
|
3791 |
|
3792 "Modified: / 25-10-2005 / 14:59:24 / janfrog" |
|
3793 ! |
|
3794 |
|
3795 test_valid_sa_002 |
|
3796 |
|
3797 |
|
3798 "Sections: 3.1 [40]" |
|
3799 "Description: |
|
3800 Test demonstrates that whitespace is permitted after the tag name in a Start-tag. " |
|
3801 |
|
3802 |
|
3803 self shouldnt:[ |
|
3804 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/002.xml')). |
|
3805 ] raise: Error. |
|
3806 |
|
3807 "Modified: / 25-10-2005 / 14:59:24 / janfrog" |
|
3808 ! |
|
3809 |
|
3810 test_valid_sa_003 |
|
3811 |
|
3812 |
|
3813 "Sections: 3.1 [42]" |
|
3814 "Description: |
|
3815 Test demonstrates that whitespace is permitted after the tag name in an End-tag." |
|
3816 |
|
3817 |
|
3818 self shouldnt:[ |
|
3819 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/003.xml')). |
|
3820 ] raise: Error. |
|
3821 |
|
3822 "Modified: / 25-10-2005 / 14:59:24 / janfrog" |
|
3823 ! |
|
3824 |
|
3825 test_valid_sa_004 |
|
3826 |
|
3827 |
|
3828 "Sections: 3.1 [41]" |
|
3829 "Description: |
|
3830 Test demonstrates a valid attribute specification within a Start-tag. " |
|
3831 |
|
3832 |
|
3833 self shouldnt:[ |
|
3834 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/004.xml')). |
|
3835 ] raise: Error. |
|
3836 |
|
3837 "Modified: / 25-10-2005 / 14:59:24 / janfrog" |
|
3838 ! |
|
3839 |
|
3840 test_valid_sa_005 |
|
3841 |
|
3842 |
|
3843 "Sections: 3.1 [40]" |
|
3844 "Description: |
|
3845 Test demonstrates a valid attribute specification within a Start-tag that |
|
3846 contains whitespace on both sides of the equal sign. " |
|
3847 |
|
3848 |
|
3849 self shouldnt:[ |
|
3850 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/005.xml')). |
|
3851 ] raise: Error. |
|
3852 |
|
3853 "Modified: / 25-10-2005 / 14:59:24 / janfrog" |
|
3854 ! |
|
3855 |
|
3856 test_valid_sa_006 |
|
3857 |
|
3858 |
|
3859 "Sections: 3.1 [41]" |
|
3860 "Description: |
|
3861 Test demonstrates that the AttValue within a Start-tag can use a single quote as a delimter. " |
|
3862 |
|
3863 |
|
3864 self shouldnt:[ |
|
3865 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/006.xml')). |
|
3866 ] raise: Error. |
|
3867 |
|
3868 "Modified: / 25-10-2005 / 14:59:24 / janfrog" |
|
3869 ! |
|
3870 |
|
3871 test_valid_sa_007 |
|
3872 |
|
3873 |
|
3874 "Sections: 3.1 4.6 [43]" |
|
3875 "Description: |
|
3876 Test demonstrates numeric character references can be used for element content. " |
|
3877 |
|
3878 |
|
3879 self shouldnt:[ |
|
3880 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/007.xml')). |
|
3881 ] raise: Error. |
|
3882 |
|
3883 "Modified: / 25-10-2005 / 14:59:25 / janfrog" |
|
3884 ! |
|
3885 |
|
3886 test_valid_sa_008 |
|
3887 |
|
3888 |
|
3889 "Sections: 2.4 3.1 [43]" |
|
3890 "Description: |
|
3891 Test demonstrates character references can be used for element content. " |
|
3892 |
|
3893 |
|
3894 self shouldnt:[ |
|
3895 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/008.xml')). |
|
3896 ] raise: Error. |
|
3897 |
|
3898 "Modified: / 25-10-2005 / 14:59:25 / janfrog" |
|
3899 ! |
|
3900 |
|
3901 test_valid_sa_009 |
|
3902 |
|
3903 |
|
3904 "Sections: 2.3 3.1 [43]" |
|
3905 "Description: |
|
3906 Test demonstrates that PubidChar can be used for element content. " |
|
3907 |
|
3908 |
|
3909 self shouldnt:[ |
|
3910 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/009.xml')). |
|
3911 ] raise: Error. |
|
3912 |
|
3913 "Modified: / 25-10-2005 / 14:59:25 / janfrog" |
|
3914 ! |
|
3915 |
|
3916 test_valid_sa_010 |
|
3917 |
|
3918 |
|
3919 "Sections: 3.1 [40]" |
|
3920 "Description: |
|
3921 Test demonstrates that whitespace is valid after the Attribute in a Start-tag. " |
|
3922 |
|
3923 |
|
3924 self shouldnt:[ |
|
3925 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/010.xml')). |
|
3926 ] raise: Error. |
|
3927 |
|
3928 "Modified: / 25-10-2005 / 14:59:25 / janfrog" |
|
3929 ! |
|
3930 |
|
3931 test_valid_sa_011 |
|
3932 |
|
3933 |
|
3934 "Sections: 3.1 [40]" |
|
3935 "Description: |
|
3936 Test demonstrates mutliple Attibutes within the Start-tag. " |
|
3937 |
|
3938 |
|
3939 self shouldnt:[ |
|
3940 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/011.xml')). |
|
3941 ] raise: Error. |
|
3942 |
|
3943 "Modified: / 25-10-2005 / 14:59:25 / janfrog" |
|
3944 ! |
|
3945 |
|
3946 test_valid_sa_012 |
|
3947 |
|
3948 |
|
3949 "Sections: 2.3 [4]" |
|
3950 "Description: |
|
3951 Uses a legal XML 1.0 name consisting of a single colon |
|
3952 character (disallowed by the latest XML Namespaces draft)." |
|
3953 |
|
3954 |
|
3955 self shouldnt:[ |
|
3956 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/012.xml')). |
|
3957 ] raise: Error. |
|
3958 |
|
3959 "Modified: / 25-10-2005 / 14:59:25 / janfrog" |
|
3960 ! |
|
3961 |
|
3962 test_valid_sa_013 |
|
3963 |
|
3964 |
|
3965 "Sections: 2.3 3.1 [13] [40]" |
|
3966 "Description: |
|
3967 Test demonstrates that the Attribute in a Start-tag can consist of numerals along with special characters. " |
|
3968 |
|
3969 |
|
3970 self shouldnt:[ |
|
3971 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/013.xml')). |
|
3972 ] raise: Error. |
|
3973 |
|
3974 "Modified: / 25-10-2005 / 14:59:25 / janfrog" |
|
3975 ! |
|
3976 |
|
3977 test_valid_sa_014 |
|
3978 |
|
3979 |
|
3980 "Sections: 2.3 3.1 [13] [40]" |
|
3981 "Description: |
|
3982 Test demonstrates that all lower case letters are valid for the Attribute in a Start-tag. " |
|
3983 |
|
3984 |
|
3985 self shouldnt:[ |
|
3986 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/014.xml')). |
|
3987 ] raise: Error. |
|
3988 |
|
3989 "Modified: / 25-10-2005 / 14:59:25 / janfrog" |
|
3990 ! |
|
3991 |
|
3992 test_valid_sa_015 |
|
3993 |
|
3994 |
|
3995 "Sections: 2.3 3.1 [13] [40]" |
|
3996 "Description: |
|
3997 Test demonstrates that all upper case letters are valid for the Attribute in a Start-tag. " |
|
3998 |
|
3999 |
|
4000 self shouldnt:[ |
|
4001 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/015.xml')). |
|
4002 ] raise: Error. |
|
4003 |
|
4004 "Modified: / 25-10-2005 / 14:59:25 / janfrog" |
|
4005 ! |
|
4006 |
|
4007 test_valid_sa_016 |
|
4008 |
|
4009 |
|
4010 "Sections: 2.6 3.1 [16] [43]" |
|
4011 "Description: |
|
4012 Test demonstrates that Processing Instructions are valid element content. " |
|
4013 |
|
4014 |
|
4015 self shouldnt:[ |
|
4016 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/016.xml')). |
|
4017 ] raise: Error. |
|
4018 |
|
4019 "Modified: / 25-10-2005 / 14:59:25 / janfrog" |
|
4020 ! |
|
4021 |
|
4022 test_valid_sa_017 |
|
4023 |
|
4024 |
|
4025 "Sections: 2.6 3.1 [16] [43]" |
|
4026 "Description: |
|
4027 Test demonstrates that Processing Instructions are valid element content and there can be more than one. " |
|
4028 |
|
4029 |
|
4030 self shouldnt:[ |
|
4031 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/017.xml')). |
|
4032 ] raise: Error. |
|
4033 |
|
4034 "Modified: / 25-10-2005 / 14:59:25 / janfrog" |
|
4035 ! |
|
4036 |
|
4037 test_valid_sa_018 |
|
4038 |
|
4039 |
|
4040 "Sections: 2.7 3.1 [18] [43]" |
|
4041 "Description: |
|
4042 Test demonstrates that CDATA sections are valid element content. " |
|
4043 |
|
4044 |
|
4045 self shouldnt:[ |
|
4046 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/018.xml')). |
|
4047 ] raise: Error. |
|
4048 |
|
4049 "Modified: / 25-10-2005 / 14:59:25 / janfrog" |
|
4050 ! |
|
4051 |
|
4052 test_valid_sa_019 |
|
4053 |
|
4054 |
|
4055 "Sections: 2.7 3.1 [18] [43]" |
|
4056 "Description: |
|
4057 Test demonstrates that CDATA sections are valid element content and that |
|
4058 ampersands may occur in their literal form. " |
|
4059 |
|
4060 |
|
4061 self shouldnt:[ |
|
4062 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/019.xml')). |
|
4063 ] raise: Error. |
|
4064 |
|
4065 "Modified: / 25-10-2005 / 14:59:25 / janfrog" |
|
4066 ! |
|
4067 |
|
4068 test_valid_sa_020 |
|
4069 |
|
4070 |
|
4071 "Sections: 2.7 3.1 [18] [43]" |
|
4072 "Description: |
|
4073 Test demonstractes that CDATA sections are valid element content and that |
|
4074 everyting between the CDStart and CDEnd is recognized as character data not markup. " |
|
4075 |
|
4076 |
|
4077 self shouldnt:[ |
|
4078 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/020.xml')). |
|
4079 ] raise: Error. |
|
4080 |
|
4081 "Modified: / 25-10-2005 / 14:59:25 / janfrog" |
|
4082 ! |
|
4083 |
|
4084 test_valid_sa_021 |
|
4085 |
|
4086 |
|
4087 "Sections: 2.5 3.1 [15] [43]" |
|
4088 "Description: |
|
4089 Test demonstrates that comments are valid element content. " |
|
4090 |
|
4091 |
|
4092 self shouldnt:[ |
|
4093 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/021.xml')). |
|
4094 ] raise: Error. |
|
4095 |
|
4096 "Modified: / 25-10-2005 / 14:59:25 / janfrog" |
|
4097 ! |
|
4098 |
|
4099 test_valid_sa_022 |
|
4100 |
|
4101 |
|
4102 "Sections: 2.5 3.1 [15] [43]" |
|
4103 "Description: |
|
4104 Test demonstrates that comments are valid element content and that all characters before the double-hypen right angle combination are considered part of thecomment. " |
|
4105 |
|
4106 |
|
4107 self shouldnt:[ |
|
4108 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/022.xml')). |
|
4109 ] raise: Error. |
|
4110 |
|
4111 "Modified: / 25-10-2005 / 14:59:26 / janfrog" |
|
4112 ! |
|
4113 |
|
4114 test_valid_sa_023 |
|
4115 |
|
4116 |
|
4117 "Sections: 3.1 [43]" |
|
4118 "Description: |
|
4119 Test demonstrates that Entity References are valid element content. " |
|
4120 |
|
4121 |
|
4122 self shouldnt:[ |
|
4123 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/023.xml')). |
|
4124 ] raise: Error. |
|
4125 |
|
4126 "Modified: / 25-10-2005 / 14:59:26 / janfrog" |
|
4127 ! |
|
4128 |
|
4129 test_valid_sa_024 |
|
4130 |
|
4131 |
|
4132 "Sections: 3.1 4.1 [43] [66]" |
|
4133 "Description: |
|
4134 Test demonstrates that Entity References are valid element content and also demonstrates a valid Entity Declaration. " |
|
4135 |
|
4136 |
|
4137 self shouldnt:[ |
|
4138 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/024.xml')). |
|
4139 ] raise: Error. |
|
4140 |
|
4141 "Modified: / 25-10-2005 / 14:59:26 / janfrog" |
|
4142 ! |
|
4143 |
|
4144 test_valid_sa_025 |
|
4145 |
|
4146 |
|
4147 "Sections: 3.2 [46]" |
|
4148 "Description: |
|
4149 Test demonstrates an Element Type Declaration and that the contentspec can be of mixed content. " |
|
4150 |
|
4151 |
|
4152 self shouldnt:[ |
|
4153 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/025.xml')). |
|
4154 ] raise: Error. |
|
4155 |
|
4156 "Modified: / 25-10-2005 / 14:59:26 / janfrog" |
|
4157 ! |
|
4158 |
|
4159 test_valid_sa_026 |
|
4160 |
|
4161 |
|
4162 "Sections: 3.2 [46]" |
|
4163 "Description: |
|
4164 Test demonstrates an Element Type Declaration and that EMPTY is a valid contentspec. " |
|
4165 |
|
4166 |
|
4167 self shouldnt:[ |
|
4168 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/026.xml')). |
|
4169 ] raise: Error. |
|
4170 |
|
4171 "Modified: / 25-10-2005 / 14:59:26 / janfrog" |
|
4172 ! |
|
4173 |
|
4174 test_valid_sa_027 |
|
4175 |
|
4176 |
|
4177 "Sections: 3.2 [46]" |
|
4178 "Description: |
|
4179 Test demonstrates an Element Type Declaration and that ANY is a valid contenspec. " |
|
4180 |
|
4181 |
|
4182 self shouldnt:[ |
|
4183 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/027.xml')). |
|
4184 ] raise: Error. |
|
4185 |
|
4186 "Modified: / 25-10-2005 / 14:59:26 / janfrog" |
|
4187 ! |
|
4188 |
|
4189 test_valid_sa_028 |
|
4190 |
|
4191 |
|
4192 "Sections: 2.8 [24]" |
|
4193 "Description: |
|
4194 Test demonstrates a valid prolog that uses double quotes as delimeters around the VersionNum. " |
|
4195 |
|
4196 |
|
4197 self shouldnt:[ |
|
4198 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/028.xml')). |
|
4199 ] raise: Error. |
|
4200 |
|
4201 "Modified: / 25-10-2005 / 14:59:26 / janfrog" |
|
4202 ! |
|
4203 |
|
4204 test_valid_sa_029 |
|
4205 |
|
4206 |
|
4207 "Sections: 2.8 [24]" |
|
4208 "Description: |
|
4209 Test demonstrates a valid prolog that uses single quotes as delimters around the VersionNum. " |
|
4210 |
|
4211 |
|
4212 self shouldnt:[ |
|
4213 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/029.xml')). |
|
4214 ] raise: Error. |
|
4215 |
|
4216 "Modified: / 25-10-2005 / 14:59:26 / janfrog" |
|
4217 ! |
|
4218 |
|
4219 test_valid_sa_030 |
|
4220 |
|
4221 |
|
4222 "Sections: 2.8 [25]" |
|
4223 "Description: |
|
4224 Test demonstrates a valid prolog that contains whitespace on both sides of the equal sign in the VersionInfo. " |
|
4225 |
|
4226 |
|
4227 self shouldnt:[ |
|
4228 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/030.xml')). |
|
4229 ] raise: Error. |
|
4230 |
|
4231 "Modified: / 25-10-2005 / 14:59:26 / janfrog" |
|
4232 ! |
|
4233 |
|
4234 test_valid_sa_031 |
|
4235 |
|
4236 |
|
4237 "Sections: 4.3.3 [80]" |
|
4238 "Description: |
|
4239 Test demonstrates a valid EncodingDecl within the prolog. " |
|
4240 |
|
4241 |
|
4242 self shouldnt:[ |
|
4243 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/031.xml')). |
|
4244 ] raise: Error. |
|
4245 |
|
4246 "Modified: / 25-10-2005 / 14:59:26 / janfrog" |
|
4247 ! |
|
4248 |
|
4249 test_valid_sa_032 |
|
4250 |
|
4251 |
|
4252 "Sections: 2.9 [32]" |
|
4253 "Description: |
|
4254 Test demonstrates a valid SDDecl within the prolog. " |
|
4255 |
|
4256 |
|
4257 self shouldnt:[ |
|
4258 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/032.xml')). |
|
4259 ] raise: Error. |
|
4260 |
|
4261 "Modified: / 25-10-2005 / 14:59:26 / janfrog" |
|
4262 ! |
|
4263 |
|
4264 test_valid_sa_033 |
|
4265 |
|
4266 |
|
4267 "Sections: 2.8 [23]" |
|
4268 "Description: |
|
4269 Test demonstrates that both a EncodingDecl and SDDecl are valid within the prolog. " |
|
4270 |
|
4271 |
|
4272 self shouldnt:[ |
|
4273 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/033.xml')). |
|
4274 ] raise: Error. |
|
4275 |
|
4276 "Modified: / 25-10-2005 / 14:59:26 / janfrog" |
|
4277 ! |
|
4278 |
|
4279 test_valid_sa_034 |
|
4280 |
|
4281 |
|
4282 "Sections: 3.1 [44]" |
|
4283 "Description: |
|
4284 Test demonstrates the correct syntax for an Empty element tag. " |
|
4285 |
|
4286 |
|
4287 self shouldnt:[ |
|
4288 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/034.xml')). |
|
4289 ] raise: Error. |
|
4290 |
|
4291 "Modified: / 25-10-2005 / 14:59:26 / janfrog" |
|
4292 ! |
|
4293 |
|
4294 test_valid_sa_035 |
|
4295 |
|
4296 |
|
4297 "Sections: 3.1 [44]" |
|
4298 "Description: |
|
4299 Test demonstrates that whitespace is permissible after the name in an Empty element tag. " |
|
4300 |
|
4301 |
|
4302 self shouldnt:[ |
|
4303 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/035.xml')). |
|
4304 ] raise: Error. |
|
4305 |
|
4306 "Modified: / 25-10-2005 / 14:59:26 / janfrog" |
|
4307 ! |
|
4308 |
|
4309 test_valid_sa_036 |
|
4310 |
|
4311 |
|
4312 "Sections: 2.6 [16]" |
|
4313 "Description: |
|
4314 Test demonstrates a valid processing instruction. " |
|
4315 |
|
4316 |
|
4317 self shouldnt:[ |
|
4318 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/036.xml')). |
|
4319 ] raise: Error. |
|
4320 |
|
4321 "Modified: / 25-10-2005 / 14:59:27 / janfrog" |
|
4322 ! |
|
4323 |
|
4324 test_valid_sa_037 |
|
4325 |
|
4326 |
|
4327 "Sections: 2.6 [15]" |
|
4328 "Description: |
|
4329 Test demonstrates a valid comment and that it may appear anywhere in the document including at the end. " |
|
4330 |
|
4331 |
|
4332 self shouldnt:[ |
|
4333 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/037.xml')). |
|
4334 ] raise: Error. |
|
4335 |
|
4336 "Modified: / 25-10-2005 / 14:59:27 / janfrog" |
|
4337 ! |
|
4338 |
|
4339 test_valid_sa_038 |
|
4340 |
|
4341 |
|
4342 "Sections: 2.6 [15]" |
|
4343 "Description: |
|
4344 Test demonstrates a valid comment and that it may appear anywhere in the document including the beginning. " |
|
4345 |
|
4346 |
|
4347 self shouldnt:[ |
|
4348 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/038.xml')). |
|
4349 ] raise: Error. |
|
4350 |
|
4351 "Modified: / 25-10-2005 / 14:59:27 / janfrog" |
|
4352 ! |
|
4353 |
|
4354 test_valid_sa_039 |
|
4355 |
|
4356 |
|
4357 "Sections: 2.6 [16]" |
|
4358 "Description: |
|
4359 Test demonstrates a valid processing instruction and that it may appear at the beginning of the document. " |
|
4360 |
|
4361 |
|
4362 self shouldnt:[ |
|
4363 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/039.xml')). |
|
4364 ] raise: Error. |
|
4365 |
|
4366 "Modified: / 25-10-2005 / 14:59:27 / janfrog" |
|
4367 ! |
|
4368 |
|
4369 test_valid_sa_040 |
|
4370 |
|
4371 |
|
4372 "Sections: 3.3 3.3.1 [52] [54]" |
|
4373 "Description: |
|
4374 Test demonstrates an Attribute List declaration that uses a StringType as the AttType. " |
|
4375 |
|
4376 |
|
4377 self shouldnt:[ |
|
4378 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/040.xml')). |
|
4379 ] raise: Error. |
|
4380 |
|
4381 "Modified: / 25-10-2005 / 14:59:27 / janfrog" |
|
4382 ! |
|
4383 |
|
4384 test_valid_sa_041 |
|
4385 |
|
4386 |
|
4387 "Sections: 3.3.1 4.1 [54] [66]" |
|
4388 "Description: |
|
4389 Test demonstrates an Attribute List declaration that uses a StringType as the AttType and also expands the CDATA attribute with a character reference. " |
|
4390 |
|
4391 |
|
4392 self shouldnt:[ |
|
4393 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/041.xml')). |
|
4394 ] raise: Error. |
|
4395 |
|
4396 "Modified: / 25-10-2005 / 14:59:27 / janfrog" |
|
4397 ! |
|
4398 |
|
4399 test_valid_sa_042 |
|
4400 |
|
4401 |
|
4402 "Sections: 3.3.1 4.1 [54] [66]" |
|
4403 "Description: |
|
4404 Test demonstrates an Attribute List declaration that uses a StringType as the AttType and also expands the CDATA attribute with a character reference. The test also shows that the leading zeros in the character reference are ignored. " |
|
4405 |
|
4406 |
|
4407 self shouldnt:[ |
|
4408 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/042.xml')). |
|
4409 ] raise: Error. |
|
4410 |
|
4411 "Modified: / 25-10-2005 / 14:59:27 / janfrog" |
|
4412 ! |
|
4413 |
|
4414 test_valid_sa_043 |
|
4415 |
|
4416 |
|
4417 "Sections: 3.3" |
|
4418 "Description: |
|
4419 An element's attributes may be declared before its content |
|
4420 model; and attribute values may contain newlines. " |
|
4421 |
|
4422 |
|
4423 self shouldnt:[ |
|
4424 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/043.xml')). |
|
4425 ] raise: Error. |
|
4426 |
|
4427 "Modified: / 25-10-2005 / 14:59:27 / janfrog" |
|
4428 ! |
|
4429 |
|
4430 test_valid_sa_044 |
|
4431 |
|
4432 |
|
4433 "Sections: 3.1 [44]" |
|
4434 "Description: |
|
4435 Test demonstrates that the empty-element tag must be use for an elements that are declared EMPTY. " |
|
4436 |
|
4437 |
|
4438 self shouldnt:[ |
|
4439 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/044.xml')). |
|
4440 ] raise: Error. |
|
4441 |
|
4442 "Modified: / 25-10-2005 / 14:59:27 / janfrog" |
|
4443 ! |
|
4444 |
|
4445 test_valid_sa_045 |
|
4446 |
|
4447 |
|
4448 "Sections: 3.3 [52]" |
|
4449 "Description: |
|
4450 Tests whether more than one definition can be provided for the same attribute of a given element type with the first declaration being binding. " |
|
4451 |
|
4452 |
|
4453 self shouldnt:[ |
|
4454 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/045.xml')). |
|
4455 ] raise: Error. |
|
4456 |
|
4457 "Modified: / 25-10-2005 / 14:59:27 / janfrog" |
|
4458 ! |
|
4459 |
|
4460 test_valid_sa_046 |
|
4461 |
|
4462 |
|
4463 "Sections: 3.3 [52]" |
|
4464 "Description: |
|
4465 Test demonstrates that when more than one AttlistDecl is provided for a given element type, the contents of all those provided are merged. " |
|
4466 |
|
4467 |
|
4468 self shouldnt:[ |
|
4469 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/046.xml')). |
|
4470 ] raise: Error. |
|
4471 |
|
4472 "Modified: / 25-10-2005 / 14:59:27 / janfrog" |
|
4473 ! |
|
4474 |
|
4475 test_valid_sa_047 |
|
4476 |
|
4477 |
|
4478 "Sections: 3.1 [43]" |
|
4479 "Description: |
|
4480 Test demonstrates that extra whitespace is normalized into single space character. " |
|
4481 |
|
4482 |
|
4483 self shouldnt:[ |
|
4484 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/047.xml')). |
|
4485 ] raise: Error. |
|
4486 |
|
4487 "Modified: / 25-10-2005 / 14:59:27 / janfrog" |
|
4488 ! |
|
4489 |
|
4490 test_valid_sa_048 |
|
4491 |
|
4492 |
|
4493 "Sections: 2.4 3.1 [14] [43]" |
|
4494 "Description: |
|
4495 Test demonstrates that character data is valid element content. " |
|
4496 |
|
4497 |
|
4498 self shouldnt:[ |
|
4499 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/048.xml')). |
|
4500 ] raise: Error. |
|
4501 |
|
4502 "Modified: / 25-10-2005 / 14:59:27 / janfrog" |
|
4503 ! |
|
4504 |
|
4505 test_valid_sa_049 |
|
4506 |
|
4507 |
|
4508 "Sections: 2.2 [2]" |
|
4509 "Description: |
|
4510 Test demonstrates that characters outside of normal ascii range can be used as element content. " |
|
4511 |
|
4512 |
|
4513 self shouldnt:[ |
|
4514 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/049.xml')). |
|
4515 ] raise: Error. |
|
4516 |
|
4517 "Modified: / 25-10-2005 / 14:59:28 / janfrog" |
|
4518 ! |
|
4519 |
|
4520 test_valid_sa_050 |
|
4521 |
|
4522 |
|
4523 "Sections: 2.2 [2]" |
|
4524 "Description: |
|
4525 Test demonstrates that characters outside of normal ascii range can be used as element content. " |
|
4526 |
|
4527 |
|
4528 self shouldnt:[ |
|
4529 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/050.xml')). |
|
4530 ] raise: Error. |
|
4531 |
|
4532 "Modified: / 25-10-2005 / 14:59:28 / janfrog" |
|
4533 ! |
|
4534 |
|
4535 test_valid_sa_051 |
|
4536 |
|
4537 |
|
4538 "Sections: 2.2 [2]" |
|
4539 "Description: |
|
4540 The document is encoded in UTF-16 and uses some name |
|
4541 characters well outside of the normal ASCII range. |
|
4542 " |
|
4543 |
|
4544 |
|
4545 self shouldnt:[ |
|
4546 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/051.xml')). |
|
4547 ] raise: Error. |
|
4548 |
|
4549 "Modified: / 25-10-2005 / 14:59:28 / janfrog" |
|
4550 ! |
|
4551 |
|
4552 test_valid_sa_052 |
|
4553 |
|
4554 |
|
4555 "Sections: 2.2 [2]" |
|
4556 "Description: |
|
4557 The document is encoded in UTF-8 and the text inside the |
|
4558 root element uses two non-ASCII characters, encoded in UTF-8 |
|
4559 and each of which expands to a Unicode surrogate pair." |
|
4560 |
|
4561 |
|
4562 self shouldnt:[ |
|
4563 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/052.xml')). |
|
4564 ] raise: Error. |
|
4565 |
|
4566 "Modified: / 25-10-2005 / 14:59:28 / janfrog" |
|
4567 ! |
|
4568 |
|
4569 test_valid_sa_053 |
|
4570 |
|
4571 |
|
4572 "Sections: 4.4.2" |
|
4573 "Description: |
|
4574 Tests inclusion of a well-formed internal entity, which |
|
4575 holds an element required by the content model." |
|
4576 |
|
4577 |
|
4578 self shouldnt:[ |
|
4579 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/053.xml')). |
|
4580 ] raise: Error. |
|
4581 |
|
4582 "Modified: / 25-10-2005 / 14:59:28 / janfrog" |
|
4583 ! |
|
4584 |
|
4585 test_valid_sa_054 |
|
4586 |
|
4587 |
|
4588 "Sections: 3.1 [40] [42]" |
|
4589 "Description: |
|
4590 Test demonstrates that extra whitespace within Start-tags and End-tags are nomalized into single spaces. " |
|
4591 |
|
4592 |
|
4593 self shouldnt:[ |
|
4594 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/054.xml')). |
|
4595 ] raise: Error. |
|
4596 |
|
4597 "Modified: / 25-10-2005 / 14:59:28 / janfrog" |
|
4598 ! |
|
4599 |
|
4600 test_valid_sa_055 |
|
4601 |
|
4602 |
|
4603 "Sections: 2.6 2.10 [16]" |
|
4604 "Description: |
|
4605 Test demonstrates that extra whitespace within a processing instruction willnormalized into s single space character. " |
|
4606 |
|
4607 |
|
4608 self shouldnt:[ |
|
4609 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/055.xml')). |
|
4610 ] raise: Error. |
|
4611 |
|
4612 "Modified: / 25-10-2005 / 14:59:28 / janfrog" |
|
4613 ! |
|
4614 |
|
4615 test_valid_sa_056 |
|
4616 |
|
4617 |
|
4618 "Sections: 3.3.1 4.1 [54] [66]" |
|
4619 "Description: |
|
4620 Test demonstrates an Attribute List declaration that uses a StringType as the AttType and also expands the CDATA attribute with a character reference. The test also shows that the leading zeros in the character reference are ignored. " |
|
4621 |
|
4622 |
|
4623 self shouldnt:[ |
|
4624 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/056.xml')). |
|
4625 ] raise: Error. |
|
4626 |
|
4627 "Modified: / 25-10-2005 / 14:59:28 / janfrog" |
|
4628 ! |
|
4629 |
|
4630 test_valid_sa_057 |
|
4631 |
|
4632 |
|
4633 "Sections: 3.2.1 [47]" |
|
4634 "Description: |
|
4635 Test demonstrates an element content model whose element can occur zero or more times. " |
|
4636 |
|
4637 |
|
4638 self shouldnt:[ |
|
4639 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/057.xml')). |
|
4640 ] raise: Error. |
|
4641 |
|
4642 "Modified: / 25-10-2005 / 14:59:28 / janfrog" |
|
4643 ! |
|
4644 |
|
4645 test_valid_sa_058 |
|
4646 |
|
4647 |
|
4648 "Sections: 3.3.3" |
|
4649 "Description: |
|
4650 Test demonstrates that extra whitespace be normalized into a single space character in an attribute of type NMTOKENS. " |
|
4651 |
|
4652 |
|
4653 self shouldnt:[ |
|
4654 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/058.xml')). |
|
4655 ] raise: Error. |
|
4656 |
|
4657 "Modified: / 25-10-2005 / 14:59:28 / janfrog" |
|
4658 ! |
|
4659 |
|
4660 test_valid_sa_059 |
|
4661 |
|
4662 |
|
4663 "Sections: 3.2 3.3 [46] [53]" |
|
4664 "Description: |
|
4665 Test demonstrates an Element Type Declaration that uses the contentspec of EMPTY. The element cannot have any contents and must always appear as an empty element in the document. The test also shows an Attribute-list declaration with multiple AttDef's. " |
|
4666 |
|
4667 |
|
4668 self shouldnt:[ |
|
4669 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/059.xml')). |
|
4670 ] raise: Error. |
|
4671 |
|
4672 "Modified: / 25-10-2005 / 14:59:29 / janfrog" |
|
4673 ! |
|
4674 |
|
4675 test_valid_sa_060 |
|
4676 |
|
4677 |
|
4678 "Sections: 4.1 [66]" |
|
4679 "Description: |
|
4680 Test demonstrates the use of decimal Character References within element content. " |
|
4681 |
|
4682 |
|
4683 self shouldnt:[ |
|
4684 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/060.xml')). |
|
4685 ] raise: Error. |
|
4686 |
|
4687 "Modified: / 25-10-2005 / 14:59:29 / janfrog" |
|
4688 ! |
|
4689 |
|
4690 test_valid_sa_061 |
|
4691 |
|
4692 |
|
4693 "Sections: 4.1 [66]" |
|
4694 "Description: |
|
4695 Test demonstrates the use of decimal Character References within element content. " |
|
4696 |
|
4697 |
|
4698 self shouldnt:[ |
|
4699 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/061.xml')). |
|
4700 ] raise: Error. |
|
4701 |
|
4702 "Modified: / 25-10-2005 / 14:59:29 / janfrog" |
|
4703 ! |
|
4704 |
|
4705 test_valid_sa_062 |
|
4706 |
|
4707 |
|
4708 "Sections: 4.1 [66]" |
|
4709 "Description: |
|
4710 Test demonstrates the use of hexadecimal Character References within element. " |
|
4711 |
|
4712 |
|
4713 self shouldnt:[ |
|
4714 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/062.xml')). |
|
4715 ] raise: Error. |
|
4716 |
|
4717 "Modified: / 25-10-2005 / 14:59:29 / janfrog" |
|
4718 ! |
|
4719 |
|
4720 test_valid_sa_063 |
|
4721 |
|
4722 |
|
4723 "Sections: 2.3 [5]" |
|
4724 "Description: |
|
4725 The document is encoded in UTF-8 and the name of the |
|
4726 root element type uses non-ASCII characters. " |
|
4727 |
|
4728 |
|
4729 self shouldnt:[ |
|
4730 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/063.xml')). |
|
4731 ] raise: Error. |
|
4732 |
|
4733 "Modified: / 25-10-2005 / 14:59:29 / janfrog" |
|
4734 ! |
|
4735 |
|
4736 test_valid_sa_064 |
|
4737 |
|
4738 |
|
4739 "Sections: 4.1 [66]" |
|
4740 "Description: |
|
4741 Tests in-line handling of two legal character references, which |
|
4742 each expand to a Unicode surrogate pair." |
|
4743 |
|
4744 |
|
4745 self shouldnt:[ |
|
4746 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/064.xml')). |
|
4747 ] raise: Error. |
|
4748 |
|
4749 "Modified: / 25-10-2005 / 14:59:29 / janfrog" |
|
4750 ! |
|
4751 |
|
4752 test_valid_sa_065 |
|
4753 |
|
4754 |
|
4755 "Sections: 4.5" |
|
4756 "Description: |
|
4757 Tests ability to define an internal entity which can't |
|
4758 legally be expanded (contains an unquoted " |
|
4759 |
|
4760 |
|
4761 self shouldnt:[ |
|
4762 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/065.xml')). |
|
4763 ] raise: Error. |
|
4764 |
|
4765 "Modified: / 25-10-2005 / 14:59:29 / janfrog" |
|
4766 ! |
|
4767 |
|
4768 test_valid_sa_066 |
|
4769 |
|
4770 |
|
4771 "Sections: 4.1 [66]" |
|
4772 "Description: |
|
4773 Expands a CDATA attribute with a character reference." |
|
4774 |
|
4775 |
|
4776 self shouldnt:[ |
|
4777 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/066.xml')). |
|
4778 ] raise: Error. |
|
4779 |
|
4780 "Modified: / 25-10-2005 / 14:59:29 / janfrog" |
|
4781 ! |
|
4782 |
|
4783 test_valid_sa_067 |
|
4784 |
|
4785 |
|
4786 "Sections: 4.1 [66]" |
|
4787 "Description: |
|
4788 Test demonstrates the use of decimal character references within element content. " |
|
4789 |
|
4790 |
|
4791 self shouldnt:[ |
|
4792 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/067.xml')). |
|
4793 ] raise: Error. |
|
4794 |
|
4795 "Modified: / 25-10-2005 / 14:59:29 / janfrog" |
|
4796 ! |
|
4797 |
|
4798 test_valid_sa_068 |
|
4799 |
|
4800 |
|
4801 "Sections: 2.11, 4.5" |
|
4802 "Description: |
|
4803 Tests definition of an internal entity holding a carriage return character |
|
4804 reference, which must not be normalized before reporting to the application. Line |
|
4805 break normalization only occurs when parsing external parsed entities." |
|
4806 |
|
4807 |
|
4808 self shouldnt:[ |
|
4809 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/068.xml')). |
|
4810 ] raise: Error. |
|
4811 |
|
4812 "Modified: / 25-10-2005 / 14:59:29 / janfrog" |
|
4813 ! |
|
4814 |
|
4815 test_valid_sa_069 |
|
4816 |
|
4817 |
|
4818 "Sections: 4.7" |
|
4819 "Description: |
|
4820 Verifies that an XML parser will parse a NOTATION |
|
4821 declaration; the output phase of this test ensures that |
|
4822 it's reported to the application. " |
|
4823 |
|
4824 |
|
4825 self shouldnt:[ |
|
4826 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/069.xml')). |
|
4827 ] raise: Error. |
|
4828 |
|
4829 "Modified: / 25-10-2005 / 14:59:29 / janfrog" |
|
4830 ! |
|
4831 |
|
4832 test_valid_sa_070 |
|
4833 |
|
4834 |
|
4835 "Sections: 4.4.8" |
|
4836 "Description: |
|
4837 Verifies that internal parameter entities are correctly |
|
4838 expanded within the internal subset." |
|
4839 |
|
4840 |
|
4841 self shouldnt:[ |
|
4842 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/070.xml')). |
|
4843 ] raise: Error. |
|
4844 |
|
4845 "Modified: / 25-10-2005 / 14:59:29 / janfrog" |
|
4846 ! |
|
4847 |
|
4848 test_valid_sa_071 |
|
4849 |
|
4850 |
|
4851 "Sections: 3.3 3.3.1 [52] [56]" |
|
4852 "Description: |
|
4853 Test demonstrates that an AttlistDecl can use ID as the TokenizedType within the Attribute type. The test also shows that IMPLIED is a valid DefaultDecl. " |
|
4854 |
|
4855 |
|
4856 self shouldnt:[ |
|
4857 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/071.xml')). |
|
4858 ] raise: Error. |
|
4859 |
|
4860 "Modified: / 25-10-2005 / 14:59:29 / janfrog" |
|
4861 ! |
|
4862 |
|
4863 test_valid_sa_072 |
|
4864 |
|
4865 |
|
4866 "Sections: 3.3 3.3.1 [52] [56]" |
|
4867 "Description: |
|
4868 Test demonstrates that an AttlistDecl can use IDREF as the TokenizedType within the Attribute type. The test also shows that IMPLIED is a valid DefaultDecl. " |
|
4869 |
|
4870 |
|
4871 self shouldnt:[ |
|
4872 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/072.xml')). |
|
4873 ] raise: Error. |
|
4874 |
|
4875 "Modified: / 25-10-2005 / 14:59:29 / janfrog" |
|
4876 ! |
|
4877 |
|
4878 test_valid_sa_073 |
|
4879 |
|
4880 |
|
4881 "Sections: 3.3 3.3.1 [52] [56]" |
|
4882 "Description: |
|
4883 Test demonstrates that an AttlistDecl can use IDREFS as the TokenizedType within the Attribute type. The test also shows that IMPLIED is a valid DefaultDecl. " |
|
4884 |
|
4885 |
|
4886 self shouldnt:[ |
|
4887 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/073.xml')). |
|
4888 ] raise: Error. |
|
4889 |
|
4890 "Modified: / 25-10-2005 / 14:59:30 / janfrog" |
|
4891 ! |
|
4892 |
|
4893 test_valid_sa_074 |
|
4894 |
|
4895 |
|
4896 "Sections: 3.3 3.3.1 [52] [56]" |
|
4897 "Description: |
|
4898 Test demonstrates that an AttlistDecl can use ENTITY as the TokenizedType within the Attribute type. The test also shows that IMPLIED is a valid DefaultDecl. " |
|
4899 |
|
4900 |
|
4901 self shouldnt:[ |
|
4902 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/074.xml')). |
|
4903 ] raise: Error. |
|
4904 |
|
4905 "Modified: / 25-10-2005 / 14:59:30 / janfrog" |
|
4906 ! |
|
4907 |
|
4908 test_valid_sa_075 |
|
4909 |
|
4910 |
|
4911 "Sections: 3.3 3.3.1 [52] [56]" |
|
4912 "Description: |
|
4913 Test demonstrates that an AttlistDecl can use ENTITIES as the TokenizedType within the Attribute type. The test also shows that IMPLIED is a valid DefaultDecl. " |
|
4914 |
|
4915 |
|
4916 self shouldnt:[ |
|
4917 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/075.xml')). |
|
4918 ] raise: Error. |
|
4919 |
|
4920 "Modified: / 25-10-2005 / 14:59:30 / janfrog" |
|
4921 ! |
|
4922 |
|
4923 test_valid_sa_076 |
|
4924 |
|
4925 |
|
4926 "Sections: 3.3.1" |
|
4927 "Description: |
|
4928 Verifies that an XML parser will parse a NOTATION |
|
4929 attribute; the output phase of this test ensures that |
|
4930 both notations are reported to the application. " |
|
4931 |
|
4932 |
|
4933 self shouldnt:[ |
|
4934 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/076.xml')). |
|
4935 ] raise: Error. |
|
4936 |
|
4937 "Modified: / 25-10-2005 / 14:59:30 / janfrog" |
|
4938 ! |
|
4939 |
|
4940 test_valid_sa_077 |
|
4941 |
|
4942 |
|
4943 "Sections: 3.3 3.3.1 [52] [54]" |
|
4944 "Description: |
|
4945 Test demonstrates that an AttlistDecl can use an EnumeratedType within the Attribute type. The test also shows that IMPLIED is a valid DefaultDecl. " |
|
4946 |
|
4947 |
|
4948 self shouldnt:[ |
|
4949 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/077.xml')). |
|
4950 ] raise: Error. |
|
4951 |
|
4952 "Modified: / 25-10-2005 / 14:59:30 / janfrog" |
|
4953 ! |
|
4954 |
|
4955 test_valid_sa_078 |
|
4956 |
|
4957 |
|
4958 "Sections: 3.3 3.3.1 [52] [54]" |
|
4959 "Description: |
|
4960 Test demonstrates that an AttlistDecl can use an StringType of CDATA within the Attribute type. The test also shows that REQUIRED is a valid DefaultDecl. " |
|
4961 |
|
4962 |
|
4963 self shouldnt:[ |
|
4964 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/078.xml')). |
|
4965 ] raise: Error. |
|
4966 |
|
4967 "Modified: / 25-10-2005 / 14:59:30 / janfrog" |
|
4968 ! |
|
4969 |
|
4970 test_valid_sa_079 |
|
4971 |
|
4972 |
|
4973 "Sections: 3.3 3.3.2 [52] [60]" |
|
4974 "Description: |
|
4975 Test demonstrates that an AttlistDecl can use an StringType of CDATA within the Attribute type. The test also shows that FIXED is a valid DefaultDecl and that a value can be given to the attribute in the Start-tag as well as the AttListDecl. " |
|
4976 |
|
4977 |
|
4978 self shouldnt:[ |
|
4979 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/079.xml')). |
|
4980 ] raise: Error. |
|
4981 |
|
4982 "Modified: / 25-10-2005 / 14:59:30 / janfrog" |
|
4983 ! |
|
4984 |
|
4985 test_valid_sa_080 |
|
4986 |
|
4987 |
|
4988 "Sections: 3.3 3.3.2 [52] [60]" |
|
4989 "Description: |
|
4990 Test demonstrates that an AttlistDecl can use an StringType of CDATA within the Attribute type. The test also shows that FIXED is a valid DefaultDecl and that an value can be given to the attribute. " |
|
4991 |
|
4992 |
|
4993 self shouldnt:[ |
|
4994 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/080.xml')). |
|
4995 ] raise: Error. |
|
4996 |
|
4997 "Modified: / 25-10-2005 / 14:59:30 / janfrog" |
|
4998 ! |
|
4999 |
|
5000 test_valid_sa_081 |
|
5001 |
|
5002 |
|
5003 "Sections: 3.2.1 [50]" |
|
5004 "Description: |
|
5005 Test demonstrates the use of the optional character following a name or list to govern the number of times an element or content particles in the list occur. " |
|
5006 |
|
5007 |
|
5008 self shouldnt:[ |
|
5009 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/081.xml')). |
|
5010 ] raise: Error. |
|
5011 |
|
5012 "Modified: / 25-10-2005 / 14:59:30 / janfrog" |
|
5013 ! |
|
5014 |
|
5015 test_valid_sa_082 |
|
5016 |
|
5017 |
|
5018 "Sections: 4.2 [72]" |
|
5019 "Description: |
|
5020 Tests that an external PE may be defined (but not referenced)." |
|
5021 |
|
5022 |
|
5023 self shouldnt:[ |
|
5024 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/082.xml')). |
|
5025 ] raise: Error. |
|
5026 |
|
5027 "Modified: / 25-10-2005 / 14:59:30 / janfrog" |
|
5028 ! |
|
5029 |
|
5030 test_valid_sa_083 |
|
5031 |
|
5032 |
|
5033 "Sections: 4.2 [72]" |
|
5034 "Description: |
|
5035 Tests that an external PE may be defined (but not referenced)." |
|
5036 |
|
5037 |
|
5038 self shouldnt:[ |
|
5039 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/083.xml')). |
|
5040 ] raise: Error. |
|
5041 |
|
5042 "Modified: / 25-10-2005 / 14:59:30 / janfrog" |
|
5043 ! |
|
5044 |
|
5045 test_valid_sa_084 |
|
5046 |
|
5047 |
|
5048 "Sections: 2.10" |
|
5049 "Description: |
|
5050 Test demonstrates that although whitespace can be used to set apart markup for greater readability it is not necessary. " |
|
5051 |
|
5052 |
|
5053 self shouldnt:[ |
|
5054 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/084.xml')). |
|
5055 ] raise: Error. |
|
5056 |
|
5057 "Modified: / 25-10-2005 / 14:59:30 / janfrog" |
|
5058 ! |
|
5059 |
|
5060 test_valid_sa_085 |
|
5061 |
|
5062 |
|
5063 "Sections: 4" |
|
5064 "Description: |
|
5065 Parameter and General entities use different namespaces, |
|
5066 so there can be an entity of each type with a given name." |
|
5067 |
|
5068 |
|
5069 self shouldnt:[ |
|
5070 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/085.xml')). |
|
5071 ] raise: Error. |
|
5072 |
|
5073 "Modified: / 25-10-2005 / 14:59:31 / janfrog" |
|
5074 ! |
|
5075 |
|
5076 test_valid_sa_086 |
|
5077 |
|
5078 |
|
5079 "Sections: 4.2" |
|
5080 "Description: |
|
5081 Tests whether entities may be declared more than once, |
|
5082 with the first declaration being the binding one. " |
|
5083 |
|
5084 |
|
5085 self shouldnt:[ |
|
5086 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/086.xml')). |
|
5087 ] raise: Error. |
|
5088 |
|
5089 "Modified: / 25-10-2005 / 14:59:31 / janfrog" |
|
5090 ! |
|
5091 |
|
5092 test_valid_sa_087 |
|
5093 |
|
5094 |
|
5095 "Sections: 4.5" |
|
5096 "Description: |
|
5097 Tests whether character references in internal entities are |
|
5098 expanded early enough, by relying on correct handling to |
|
5099 make the entity be well formed." |
|
5100 |
|
5101 |
|
5102 self shouldnt:[ |
|
5103 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/087.xml')). |
|
5104 ] raise: Error. |
|
5105 |
|
5106 "Modified: / 25-10-2005 / 14:59:31 / janfrog" |
|
5107 ! |
|
5108 |
|
5109 test_valid_sa_088 |
|
5110 |
|
5111 |
|
5112 "Sections: 4.5" |
|
5113 "Description: |
|
5114 Tests whether entity references in internal entities are |
|
5115 expanded late enough, by relying on correct handling to |
|
5116 make the expanded text be valid. (If it's expanded too |
|
5117 early, the entity will parse as an element that's not |
|
5118 valid in that context.)" |
|
5119 |
|
5120 |
|
5121 self shouldnt:[ |
|
5122 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/088.xml')). |
|
5123 ] raise: Error. |
|
5124 |
|
5125 "Modified: / 25-10-2005 / 14:59:31 / janfrog" |
|
5126 ! |
|
5127 |
|
5128 test_valid_sa_089 |
|
5129 |
|
5130 |
|
5131 "Sections: 4.1 [66]" |
|
5132 "Description: |
|
5133 Tests entity expansion of three legal character references, |
|
5134 which each expand to a Unicode surrogate pair." |
|
5135 |
|
5136 |
|
5137 self shouldnt:[ |
|
5138 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/089.xml')). |
|
5139 ] raise: Error. |
|
5140 |
|
5141 "Modified: / 25-10-2005 / 14:59:31 / janfrog" |
|
5142 ! |
|
5143 |
|
5144 test_valid_sa_090 |
|
5145 |
|
5146 |
|
5147 "Sections: 3.3.1" |
|
5148 "Description: |
|
5149 Verifies that an XML parser will parse a NOTATION |
|
5150 attribute; the output phase of this test ensures that |
|
5151 the notation is reported to the application. " |
|
5152 |
|
5153 |
|
5154 self shouldnt:[ |
|
5155 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/090.xml')). |
|
5156 ] raise: Error. |
|
5157 |
|
5158 "Modified: / 25-10-2005 / 14:59:31 / janfrog" |
|
5159 ! |
|
5160 |
|
5161 test_valid_sa_091 |
|
5162 |
|
5163 |
|
5164 "Sections: 3.3.1" |
|
5165 "Description: |
|
5166 Verifies that an XML parser will parse an ENTITY |
|
5167 attribute; the output phase of this test ensures that |
|
5168 the notation is reported to the application, and for |
|
5169 validating parsers it further tests that the entity |
|
5170 is so reported." |
|
5171 |
|
5172 |
|
5173 self shouldnt:[ |
|
5174 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/091.xml')). |
|
5175 ] raise: Error. |
|
5176 |
|
5177 "Modified: / 25-10-2005 / 14:59:31 / janfrog" |
|
5178 ! |
|
5179 |
|
5180 test_valid_sa_092 |
|
5181 |
|
5182 |
|
5183 "Sections: 2.3 2.10" |
|
5184 "Description: |
|
5185 Test demostrates that extra whitespace is normalized into a single space character. " |
|
5186 |
|
5187 |
|
5188 self shouldnt:[ |
|
5189 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/092.xml')). |
|
5190 ] raise: Error. |
|
5191 |
|
5192 "Modified: / 25-10-2005 / 14:59:31 / janfrog" |
|
5193 ! |
|
5194 |
|
5195 test_valid_sa_093 |
|
5196 |
|
5197 |
|
5198 "Sections: 2.10" |
|
5199 "Description: |
|
5200 Test demonstrates that extra whitespace is not intended for inclusion in the delivered version of the document. " |
|
5201 |
|
5202 |
|
5203 self shouldnt:[ |
|
5204 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/093.xml')). |
|
5205 ] raise: Error. |
|
5206 |
|
5207 "Modified: / 25-10-2005 / 14:59:31 / janfrog" |
|
5208 ! |
|
5209 |
|
5210 test_valid_sa_094 |
|
5211 |
|
5212 |
|
5213 "Sections: 2.8" |
|
5214 "Description: |
|
5215 Attribute defaults with a DTD have special parsing rules, different |
|
5216 from other strings. That means that characters found there may look |
|
5217 like an undefined parameter entity reference `within a markup |
|
5218 declaration`, but they aren't ... so they can't be violating |
|
5219 the " |
|
5220 |
|
5221 |
|
5222 self shouldnt:[ |
|
5223 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/094.xml')). |
|
5224 ] raise: Error. |
|
5225 |
|
5226 "Modified: / 25-10-2005 / 14:59:31 / janfrog" |
|
5227 ! |
|
5228 |
|
5229 test_valid_sa_095 |
|
5230 |
|
5231 |
|
5232 "Sections: 3.3.3" |
|
5233 "Description: |
|
5234 Basically an output test, this requires extra whitespace |
|
5235 to be normalized into a single space character in an |
|
5236 attribute of type NMTOKENS." |
|
5237 |
|
5238 |
|
5239 self shouldnt:[ |
|
5240 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/095.xml')). |
|
5241 ] raise: Error. |
|
5242 |
|
5243 "Modified: / 25-10-2005 / 14:59:32 / janfrog" |
|
5244 ! |
|
5245 |
|
5246 test_valid_sa_096 |
|
5247 |
|
5248 |
|
5249 "Sections: 3.3.3" |
|
5250 "Description: |
|
5251 Test demonstrates that extra whitespace is normalized into a single space character in an attribute of type NMTOKENS. " |
|
5252 |
|
5253 |
|
5254 self shouldnt:[ |
|
5255 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/096.xml')). |
|
5256 ] raise: Error. |
|
5257 |
|
5258 "Modified: / 25-10-2005 / 14:59:32 / janfrog" |
|
5259 ! |
|
5260 |
|
5261 test_valid_sa_097 |
|
5262 |
|
5263 |
|
5264 "Sections: 3.3" |
|
5265 "Description: |
|
5266 Basically an output test, this tests whether an externally |
|
5267 defined attribute declaration (with a default) takes proper |
|
5268 precedence over a subsequent internal declaration." |
|
5269 |
|
5270 |
|
5271 self shouldnt:[ |
|
5272 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/097.xml')). |
|
5273 ] raise: Error. |
|
5274 |
|
5275 "Modified: / 25-10-2005 / 14:59:32 / janfrog" |
|
5276 ! |
|
5277 |
|
5278 test_valid_sa_098 |
|
5279 |
|
5280 |
|
5281 "Sections: 2.6 2.10 [16]" |
|
5282 "Description: |
|
5283 Test demonstrates that extra whitespace within a processing instruction is converted into a single space character." |
|
5284 |
|
5285 |
|
5286 self shouldnt:[ |
|
5287 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/098.xml')). |
|
5288 ] raise: Error. |
|
5289 |
|
5290 "Modified: / 25-10-2005 / 14:59:32 / janfrog" |
|
5291 ! |
|
5292 |
|
5293 test_valid_sa_099 |
|
5294 |
|
5295 |
|
5296 "Sections: 4.3.3 [81]" |
|
5297 "Description: |
|
5298 Test demonstrates the name of the encoding can be composed of lowercase characters. " |
|
5299 |
|
5300 |
|
5301 self shouldnt:[ |
|
5302 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/099.xml')). |
|
5303 ] raise: Error. |
|
5304 |
|
5305 "Modified: / 25-10-2005 / 14:59:32 / janfrog" |
|
5306 ! |
|
5307 |
|
5308 test_valid_sa_100 |
|
5309 |
|
5310 |
|
5311 "Sections: 2.3 [12]" |
|
5312 "Description: |
|
5313 Makes sure that PUBLIC identifiers may have some strange |
|
5314 characters. " |
|
5315 |
|
5316 |
|
5317 self shouldnt:[ |
|
5318 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/100.xml')). |
|
5319 ] raise: Error. |
|
5320 |
|
5321 "Modified: / 25-10-2005 / 14:59:32 / janfrog" |
|
5322 ! |
|
5323 |
|
5324 test_valid_sa_101 |
|
5325 |
|
5326 |
|
5327 "Sections: 4.5" |
|
5328 "Description: |
|
5329 This tests whether entity expansion is (incorrectly) done |
|
5330 while processing entity declarations; if it is, the entity |
|
5331 value literal will terminate prematurely." |
|
5332 |
|
5333 |
|
5334 self shouldnt:[ |
|
5335 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/101.xml')). |
|
5336 ] raise: Error. |
|
5337 |
|
5338 "Modified: / 25-10-2005 / 14:59:32 / janfrog" |
|
5339 ! |
|
5340 |
|
5341 test_valid_sa_102 |
|
5342 |
|
5343 |
|
5344 "Sections: 3.3.3" |
|
5345 "Description: |
|
5346 Test demonstrates that a CDATA attribute can pass a double quote as its value. " |
|
5347 |
|
5348 |
|
5349 self shouldnt:[ |
|
5350 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/102.xml')). |
|
5351 ] raise: Error. |
|
5352 |
|
5353 "Modified: / 25-10-2005 / 14:59:32 / janfrog" |
|
5354 ! |
|
5355 |
|
5356 test_valid_sa_103 |
|
5357 |
|
5358 |
|
5359 "Sections: 3.3.3" |
|
5360 "Description: |
|
5361 Test demonstrates that an attribute can pass a less than sign as its value. " |
|
5362 |
|
5363 |
|
5364 self shouldnt:[ |
|
5365 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/103.xml')). |
|
5366 ] raise: Error. |
|
5367 |
|
5368 "Modified: / 25-10-2005 / 14:59:32 / janfrog" |
|
5369 ! |
|
5370 |
|
5371 test_valid_sa_104 |
|
5372 |
|
5373 |
|
5374 "Sections: 3.1 [40]" |
|
5375 "Description: |
|
5376 Test demonstrates that extra whitespace within an Attribute of a Start-tag is normalized to a single space character. " |
|
5377 |
|
5378 |
|
5379 self shouldnt:[ |
|
5380 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/104.xml')). |
|
5381 ] raise: Error. |
|
5382 |
|
5383 "Modified: / 25-10-2005 / 14:59:32 / janfrog" |
|
5384 ! |
|
5385 |
|
5386 test_valid_sa_105 |
|
5387 |
|
5388 |
|
5389 "Sections: 3.3.3" |
|
5390 "Description: |
|
5391 Basically an output test, this requires a CDATA attribute |
|
5392 with a tab character to be passed through as one space." |
|
5393 |
|
5394 |
|
5395 self shouldnt:[ |
|
5396 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/105.xml')). |
|
5397 ] raise: Error. |
|
5398 |
|
5399 "Modified: / 25-10-2005 / 14:59:32 / janfrog" |
|
5400 ! |
|
5401 |
|
5402 test_valid_sa_106 |
|
5403 |
|
5404 |
|
5405 "Sections: 3.3.3" |
|
5406 "Description: |
|
5407 Basically an output test, this requires a CDATA attribute |
|
5408 with a newline character to be passed through as one space." |
|
5409 |
|
5410 |
|
5411 self shouldnt:[ |
|
5412 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/106.xml')). |
|
5413 ] raise: Error. |
|
5414 |
|
5415 "Modified: / 25-10-2005 / 14:59:32 / janfrog" |
|
5416 ! |
|
5417 |
|
5418 test_valid_sa_107 |
|
5419 |
|
5420 |
|
5421 "Sections: 3.3.3" |
|
5422 "Description: |
|
5423 Basically an output test, this requires a CDATA attribute |
|
5424 with a return character to be passed through as one space." |
|
5425 |
|
5426 |
|
5427 self shouldnt:[ |
|
5428 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/107.xml')). |
|
5429 ] raise: Error. |
|
5430 |
|
5431 "Modified: / 25-10-2005 / 14:59:33 / janfrog" |
|
5432 ! |
|
5433 |
|
5434 test_valid_sa_108 |
|
5435 |
|
5436 |
|
5437 "Sections: 2.11, 3.3.3" |
|
5438 "Description: |
|
5439 This tests normalization of end-of-line characters (CRLF) |
|
5440 within entities to LF, primarily as an output test. " |
|
5441 |
|
5442 |
|
5443 self shouldnt:[ |
|
5444 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/108.xml')). |
|
5445 ] raise: Error. |
|
5446 |
|
5447 "Modified: / 25-10-2005 / 14:59:33 / janfrog" |
|
5448 ! |
|
5449 |
|
5450 test_valid_sa_109 |
|
5451 |
|
5452 |
|
5453 "Sections: 2.3 3.1 [10][40][41]" |
|
5454 "Description: |
|
5455 Test demonstrates that an attribute can have a null value. " |
|
5456 |
|
5457 |
|
5458 self shouldnt:[ |
|
5459 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/109.xml')). |
|
5460 ] raise: Error. |
|
5461 |
|
5462 "Modified: / 25-10-2005 / 14:59:33 / janfrog" |
|
5463 ! |
|
5464 |
|
5465 test_valid_sa_110 |
|
5466 |
|
5467 |
|
5468 "Sections: 3.3.3" |
|
5469 "Description: |
|
5470 Basically an output test, this requires that a CDATA |
|
5471 attribute with a CRLF be normalized to one space." |
|
5472 |
|
5473 |
|
5474 self shouldnt:[ |
|
5475 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/110.xml')). |
|
5476 ] raise: Error. |
|
5477 |
|
5478 "Modified: / 25-10-2005 / 14:59:33 / janfrog" |
|
5479 ! |
|
5480 |
|
5481 test_valid_sa_111 |
|
5482 |
|
5483 |
|
5484 "Sections: 3.3.3" |
|
5485 "Description: |
|
5486 Character references expanding to spaces doesn't affect |
|
5487 treatment of attributes. " |
|
5488 |
|
5489 |
|
5490 self shouldnt:[ |
|
5491 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/111.xml')). |
|
5492 ] raise: Error. |
|
5493 |
|
5494 "Modified: / 25-10-2005 / 14:59:33 / janfrog" |
|
5495 ! |
|
5496 |
|
5497 test_valid_sa_112 |
|
5498 |
|
5499 |
|
5500 "Sections: 3.2.1 [48][49]" |
|
5501 "Description: |
|
5502 Test demonstrates shows the use of content particles within the element content. " |
|
5503 |
|
5504 |
|
5505 self shouldnt:[ |
|
5506 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/112.xml')). |
|
5507 ] raise: Error. |
|
5508 |
|
5509 "Modified: / 25-10-2005 / 14:59:33 / janfrog" |
|
5510 ! |
|
5511 |
|
5512 test_valid_sa_113 |
|
5513 |
|
5514 |
|
5515 "Sections: 3.3 [52][53]" |
|
5516 "Description: |
|
5517 Test demonstrates that it is not an error to have attributes declared for an element not itself declared." |
|
5518 |
|
5519 |
|
5520 self shouldnt:[ |
|
5521 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/113.xml')). |
|
5522 ] raise: Error. |
|
5523 |
|
5524 "Modified: / 25-10-2005 / 14:59:33 / janfrog" |
|
5525 ! |
|
5526 |
|
5527 test_valid_sa_114 |
|
5528 |
|
5529 |
|
5530 "Sections: 2.7 [20]" |
|
5531 "Description: |
|
5532 Test demonstrates that all text within a valid CDATA section is considered text and not recognized as markup. " |
|
5533 |
|
5534 |
|
5535 self shouldnt:[ |
|
5536 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/114.xml')). |
|
5537 ] raise: Error. |
|
5538 |
|
5539 "Modified: / 25-10-2005 / 14:59:33 / janfrog" |
|
5540 ! |
|
5541 |
|
5542 test_valid_sa_115 |
|
5543 |
|
5544 |
|
5545 "Sections: 3.3.3" |
|
5546 "Description: |
|
5547 Test demonstrates that an entity reference is processed by recursively processing the replacement text of the entity. " |
|
5548 |
|
5549 |
|
5550 self shouldnt:[ |
|
5551 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/115.xml')). |
|
5552 ] raise: Error. |
|
5553 |
|
5554 "Modified: / 25-10-2005 / 14:59:33 / janfrog" |
|
5555 ! |
|
5556 |
|
5557 test_valid_sa_116 |
|
5558 |
|
5559 |
|
5560 "Sections: 2.11" |
|
5561 "Description: |
|
5562 Test demonstrates that a line break within CDATA will be normalized. " |
|
5563 |
|
5564 |
|
5565 self shouldnt:[ |
|
5566 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/116.xml')). |
|
5567 ] raise: Error. |
|
5568 |
|
5569 "Modified: / 25-10-2005 / 14:59:34 / janfrog" |
|
5570 ! |
|
5571 |
|
5572 test_valid_sa_117 |
|
5573 |
|
5574 |
|
5575 "Sections: 4.5" |
|
5576 "Description: |
|
5577 Test demonstrates that entity expansion is done while processing entity declarations. " |
|
5578 |
|
5579 |
|
5580 self shouldnt:[ |
|
5581 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/117.xml')). |
|
5582 ] raise: Error. |
|
5583 |
|
5584 "Modified: / 25-10-2005 / 14:59:34 / janfrog" |
|
5585 ! |
|
5586 |
|
5587 test_valid_sa_118 |
|
5588 |
|
5589 |
|
5590 "Sections: 4.5" |
|
5591 "Description: |
|
5592 Test demonstrates that entity expansion is done while processing entity declarations. " |
|
5593 |
|
5594 |
|
5595 self shouldnt:[ |
|
5596 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/118.xml')). |
|
5597 ] raise: Error. |
|
5598 |
|
5599 "Modified: / 25-10-2005 / 14:59:34 / janfrog" |
|
5600 ! |
|
5601 |
|
5602 test_valid_sa_119 |
|
5603 |
|
5604 |
|
5605 "Sections: 2.5" |
|
5606 "Description: |
|
5607 Comments may contain any legal XML characters; |
|
5608 only the string `--` is disallowed." |
|
5609 |
|
5610 |
|
5611 self shouldnt:[ |
|
5612 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'xmltest/valid/sa/119.xml')). |
|
5613 ] raise: Error. |
|
5614 |
|
5615 "Modified: / 25-10-2005 / 14:59:34 / janfrog" |
|
5616 ! ! |
|
5617 |
|
5618 !JamesClarkXMLTests class methodsFor:'documentation'! |
|
5619 |
|
5620 version |
|
5621 ^ '$Header: /opt/data/cvs/stx/goodies/xmlsuite/XMLv2__JamesClarkXMLTests.st,v 1.1.1.1 2005-11-01 22:05:52 vranyj1 Exp $' |
|
5622 ! ! |