|
1 "{ Package: 'stx:goodies/xmlsuite' }" |
|
2 |
|
3 "{ NameSpace: XMLv2 }" |
|
4 |
|
5 TestCase subclass:#OASISXMLTests |
|
6 instanceVariableNames:'doc' |
|
7 classVariableNames:'' |
|
8 poolDictionaries:'' |
|
9 category:'XML Suite-Tests W3C' |
|
10 ! |
|
11 |
|
12 |
|
13 !OASISXMLTests methodsFor:'accessing'! |
|
14 |
|
15 resources |
|
16 ^Array with:W3XMLTestSuiteResource |
|
17 |
|
18 "Modified: / 25-10-2005 / 14:58:52 / janfrog" |
|
19 ! ! |
|
20 |
|
21 !OASISXMLTests methodsFor:'tests'! |
|
22 |
|
23 test_o_e2 |
|
24 |
|
25 |
|
26 "Sections: 3.3.1 [58] [59] Errata [E2]" |
|
27 "Description: |
|
28 Validity Constraint: No duplicate tokens |
|
29 " |
|
30 |
|
31 |
|
32 self shouldnt:[ |
|
33 "This test must pass in non-validating parser." |
|
34 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/e2.xml')). |
|
35 ] raise: Error. |
|
36 |
|
37 "Modified: / 25-10-2005 / 14:58:56 / janfrog" |
|
38 ! |
|
39 |
|
40 test_o_p01fail1 |
|
41 |
|
42 |
|
43 "Sections: 2.1 [1]" |
|
44 "Description: |
|
45 S cannot occur before the prolog |
|
46 " |
|
47 |
|
48 |
|
49 self should:[ |
|
50 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p01fail1.xml')). |
|
51 ] raise: SAXParseError. |
|
52 |
|
53 "Modified: / 25-10-2005 / 14:58:57 / janfrog" |
|
54 ! |
|
55 |
|
56 test_o_p01fail2 |
|
57 |
|
58 |
|
59 "Sections: 2.1 [1]" |
|
60 "Description: |
|
61 comments cannot occur before the prolog |
|
62 " |
|
63 |
|
64 |
|
65 self should:[ |
|
66 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p01fail2.xml')). |
|
67 ] raise: SAXParseError. |
|
68 |
|
69 "Modified: / 25-10-2005 / 14:58:57 / janfrog" |
|
70 ! |
|
71 |
|
72 test_o_p01fail3 |
|
73 |
|
74 |
|
75 "Sections: 2.1 [1]" |
|
76 "Description: |
|
77 only one document element |
|
78 " |
|
79 |
|
80 |
|
81 self should:[ |
|
82 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p01fail3.xml')). |
|
83 ] raise: SAXParseError. |
|
84 |
|
85 "Modified: / 25-10-2005 / 14:58:57 / janfrog" |
|
86 ! |
|
87 |
|
88 test_o_p01fail4 |
|
89 |
|
90 |
|
91 "Sections: 2.1 [1]" |
|
92 "Description: |
|
93 document element must be complete. |
|
94 " |
|
95 |
|
96 |
|
97 self should:[ |
|
98 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p01fail4.xml')). |
|
99 ] raise: SAXParseError. |
|
100 |
|
101 "Modified: / 25-10-2005 / 14:58:57 / janfrog" |
|
102 ! |
|
103 |
|
104 test_o_p01pass1 |
|
105 |
|
106 |
|
107 "Sections: 2.1 [1]" |
|
108 "Description: |
|
109 no prolog |
|
110 " |
|
111 |
|
112 |
|
113 self shouldnt:[ |
|
114 "This test must pass in non-validating parser." |
|
115 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p01pass1.xml')). |
|
116 ] raise: Error. |
|
117 |
|
118 "Modified: / 25-10-2005 / 14:58:54 / janfrog" |
|
119 ! |
|
120 |
|
121 test_o_p01pass2 |
|
122 |
|
123 |
|
124 "Sections: 2.2 [1]" |
|
125 "Description: |
|
126 various Misc items where they can occur |
|
127 " |
|
128 |
|
129 |
|
130 self shouldnt:[ |
|
131 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p01pass2.xml')). |
|
132 ] raise: Error. |
|
133 |
|
134 "Modified: / 25-10-2005 / 14:58:52 / janfrog" |
|
135 ! |
|
136 |
|
137 test_o_p01pass3 |
|
138 |
|
139 |
|
140 "Sections: 2.1 [1]" |
|
141 "Description: |
|
142 Misc items after the document |
|
143 " |
|
144 |
|
145 |
|
146 self shouldnt:[ |
|
147 "This test must pass in non-validating parser." |
|
148 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p01pass3.xml')). |
|
149 ] raise: Error. |
|
150 |
|
151 "Modified: / 25-10-2005 / 14:58:54 / janfrog" |
|
152 ! |
|
153 |
|
154 test_o_p02fail1 |
|
155 |
|
156 |
|
157 "Sections: 2.2 [2]" |
|
158 "Description: |
|
159 Use of illegal character within XML document. " |
|
160 |
|
161 |
|
162 self should:[ |
|
163 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p02fail1.xml')). |
|
164 ] raise: SAXParseError. |
|
165 |
|
166 "Modified: / 25-10-2005 / 14:58:57 / janfrog" |
|
167 ! |
|
168 |
|
169 test_o_p02fail10 |
|
170 |
|
171 |
|
172 "Sections: 2.2 [2]" |
|
173 "Description: |
|
174 Use of illegal character within XML document. " |
|
175 |
|
176 |
|
177 self should:[ |
|
178 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p02fail10.xml')). |
|
179 ] raise: SAXParseError. |
|
180 |
|
181 "Modified: / 25-10-2005 / 14:58:57 / janfrog" |
|
182 ! |
|
183 |
|
184 test_o_p02fail11 |
|
185 |
|
186 |
|
187 "Sections: 2.2 [2]" |
|
188 "Description: |
|
189 Use of illegal character within XML document. " |
|
190 |
|
191 |
|
192 self should:[ |
|
193 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p02fail11.xml')). |
|
194 ] raise: SAXParseError. |
|
195 |
|
196 "Modified: / 25-10-2005 / 14:58:57 / janfrog" |
|
197 ! |
|
198 |
|
199 test_o_p02fail12 |
|
200 |
|
201 |
|
202 "Sections: 2.2 [2]" |
|
203 "Description: |
|
204 Use of illegal character within XML document. " |
|
205 |
|
206 |
|
207 self should:[ |
|
208 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p02fail12.xml')). |
|
209 ] raise: SAXParseError. |
|
210 |
|
211 "Modified: / 25-10-2005 / 14:58:57 / janfrog" |
|
212 ! |
|
213 |
|
214 test_o_p02fail13 |
|
215 |
|
216 |
|
217 "Sections: 2.2 [2]" |
|
218 "Description: |
|
219 Use of illegal character within XML document. " |
|
220 |
|
221 |
|
222 self should:[ |
|
223 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p02fail13.xml')). |
|
224 ] raise: SAXParseError. |
|
225 |
|
226 "Modified: / 25-10-2005 / 14:58:57 / janfrog" |
|
227 ! |
|
228 |
|
229 test_o_p02fail14 |
|
230 |
|
231 |
|
232 "Sections: 2.2 [2]" |
|
233 "Description: |
|
234 Use of illegal character within XML document. " |
|
235 |
|
236 |
|
237 self should:[ |
|
238 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p02fail14.xml')). |
|
239 ] raise: SAXParseError. |
|
240 |
|
241 "Modified: / 25-10-2005 / 14:58:57 / janfrog" |
|
242 ! |
|
243 |
|
244 test_o_p02fail15 |
|
245 |
|
246 |
|
247 "Sections: 2.2 [2]" |
|
248 "Description: |
|
249 Use of illegal character within XML document. " |
|
250 |
|
251 |
|
252 self should:[ |
|
253 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p02fail15.xml')). |
|
254 ] raise: SAXParseError. |
|
255 |
|
256 "Modified: / 25-10-2005 / 14:58:57 / janfrog" |
|
257 ! |
|
258 |
|
259 test_o_p02fail16 |
|
260 |
|
261 |
|
262 "Sections: 2.2 [2]" |
|
263 "Description: |
|
264 Use of illegal character within XML document. " |
|
265 |
|
266 |
|
267 self should:[ |
|
268 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p02fail16.xml')). |
|
269 ] raise: SAXParseError. |
|
270 |
|
271 "Modified: / 25-10-2005 / 14:58:57 / janfrog" |
|
272 ! |
|
273 |
|
274 test_o_p02fail17 |
|
275 |
|
276 |
|
277 "Sections: 2.2 [2]" |
|
278 "Description: |
|
279 Use of illegal character within XML document. " |
|
280 |
|
281 |
|
282 self should:[ |
|
283 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p02fail17.xml')). |
|
284 ] raise: SAXParseError. |
|
285 |
|
286 "Modified: / 25-10-2005 / 14:58:57 / janfrog" |
|
287 ! |
|
288 |
|
289 test_o_p02fail18 |
|
290 |
|
291 |
|
292 "Sections: 2.2 [2]" |
|
293 "Description: |
|
294 Use of illegal character within XML document. " |
|
295 |
|
296 |
|
297 self should:[ |
|
298 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p02fail18.xml')). |
|
299 ] raise: SAXParseError. |
|
300 |
|
301 "Modified: / 25-10-2005 / 14:58:57 / janfrog" |
|
302 ! |
|
303 |
|
304 test_o_p02fail19 |
|
305 |
|
306 |
|
307 "Sections: 2.2 [2]" |
|
308 "Description: |
|
309 Use of illegal character within XML document. " |
|
310 |
|
311 |
|
312 self should:[ |
|
313 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p02fail19.xml')). |
|
314 ] raise: SAXParseError. |
|
315 |
|
316 "Modified: / 25-10-2005 / 14:58:57 / janfrog" |
|
317 ! |
|
318 |
|
319 test_o_p02fail2 |
|
320 |
|
321 |
|
322 "Sections: 2.2 [2]" |
|
323 "Description: |
|
324 Use of illegal character within XML document. " |
|
325 |
|
326 |
|
327 self should:[ |
|
328 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p02fail2.xml')). |
|
329 ] raise: SAXParseError. |
|
330 |
|
331 "Modified: / 25-10-2005 / 14:58:57 / janfrog" |
|
332 ! |
|
333 |
|
334 test_o_p02fail20 |
|
335 |
|
336 |
|
337 "Sections: 2.2 [2]" |
|
338 "Description: |
|
339 Use of illegal character within XML document. " |
|
340 |
|
341 |
|
342 self should:[ |
|
343 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p02fail20.xml')). |
|
344 ] raise: SAXParseError. |
|
345 |
|
346 "Modified: / 25-10-2005 / 14:58:57 / janfrog" |
|
347 ! |
|
348 |
|
349 test_o_p02fail21 |
|
350 |
|
351 |
|
352 "Sections: 2.2 [2]" |
|
353 "Description: |
|
354 Use of illegal character within XML document. " |
|
355 |
|
356 |
|
357 self should:[ |
|
358 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p02fail21.xml')). |
|
359 ] raise: SAXParseError. |
|
360 |
|
361 "Modified: / 25-10-2005 / 14:58:57 / janfrog" |
|
362 ! |
|
363 |
|
364 test_o_p02fail22 |
|
365 |
|
366 |
|
367 "Sections: 2.2 [2]" |
|
368 "Description: |
|
369 Use of illegal character within XML document. " |
|
370 |
|
371 |
|
372 self should:[ |
|
373 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p02fail22.xml')). |
|
374 ] raise: SAXParseError. |
|
375 |
|
376 "Modified: / 25-10-2005 / 14:58:57 / janfrog" |
|
377 ! |
|
378 |
|
379 test_o_p02fail23 |
|
380 |
|
381 |
|
382 "Sections: 2.2 [2]" |
|
383 "Description: |
|
384 Use of illegal character within XML document. " |
|
385 |
|
386 |
|
387 self should:[ |
|
388 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p02fail23.xml')). |
|
389 ] raise: SAXParseError. |
|
390 |
|
391 "Modified: / 25-10-2005 / 14:58:58 / janfrog" |
|
392 ! |
|
393 |
|
394 test_o_p02fail24 |
|
395 |
|
396 |
|
397 "Sections: 2.2 [2]" |
|
398 "Description: |
|
399 Use of illegal character within XML document. " |
|
400 |
|
401 |
|
402 self should:[ |
|
403 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p02fail24.xml')). |
|
404 ] raise: SAXParseError. |
|
405 |
|
406 "Modified: / 25-10-2005 / 14:58:58 / janfrog" |
|
407 ! |
|
408 |
|
409 test_o_p02fail25 |
|
410 |
|
411 |
|
412 "Sections: 2.2 [2]" |
|
413 "Description: |
|
414 Use of illegal character within XML document. " |
|
415 |
|
416 |
|
417 self should:[ |
|
418 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p02fail25.xml')). |
|
419 ] raise: SAXParseError. |
|
420 |
|
421 "Modified: / 25-10-2005 / 14:58:58 / janfrog" |
|
422 ! |
|
423 |
|
424 test_o_p02fail26 |
|
425 |
|
426 |
|
427 "Sections: 2.2 [2]" |
|
428 "Description: |
|
429 Use of illegal character within XML document. " |
|
430 |
|
431 |
|
432 self should:[ |
|
433 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p02fail26.xml')). |
|
434 ] raise: SAXParseError. |
|
435 |
|
436 "Modified: / 25-10-2005 / 14:58:58 / janfrog" |
|
437 ! |
|
438 |
|
439 test_o_p02fail27 |
|
440 |
|
441 |
|
442 "Sections: 2.2 [2]" |
|
443 "Description: |
|
444 Use of illegal character within XML document. " |
|
445 |
|
446 |
|
447 self should:[ |
|
448 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p02fail27.xml')). |
|
449 ] raise: SAXParseError. |
|
450 |
|
451 "Modified: / 25-10-2005 / 14:58:58 / janfrog" |
|
452 ! |
|
453 |
|
454 test_o_p02fail28 |
|
455 |
|
456 |
|
457 "Sections: 2.2 [2]" |
|
458 "Description: |
|
459 Use of illegal character within XML document. " |
|
460 |
|
461 |
|
462 self should:[ |
|
463 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p02fail28.xml')). |
|
464 ] raise: SAXParseError. |
|
465 |
|
466 "Modified: / 25-10-2005 / 14:58:58 / janfrog" |
|
467 ! |
|
468 |
|
469 test_o_p02fail29 |
|
470 |
|
471 |
|
472 "Sections: 2.2 [2]" |
|
473 "Description: |
|
474 Use of illegal character within XML document. " |
|
475 |
|
476 |
|
477 self should:[ |
|
478 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p02fail29.xml')). |
|
479 ] raise: SAXParseError. |
|
480 |
|
481 "Modified: / 25-10-2005 / 14:58:58 / janfrog" |
|
482 ! |
|
483 |
|
484 test_o_p02fail3 |
|
485 |
|
486 |
|
487 "Sections: 2.2 [2]" |
|
488 "Description: |
|
489 Use of illegal character within XML document. " |
|
490 |
|
491 |
|
492 self should:[ |
|
493 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p02fail3.xml')). |
|
494 ] raise: SAXParseError. |
|
495 |
|
496 "Modified: / 25-10-2005 / 14:58:58 / janfrog" |
|
497 ! |
|
498 |
|
499 test_o_p02fail30 |
|
500 |
|
501 |
|
502 "Sections: 2.2 [2]" |
|
503 "Description: |
|
504 Use of illegal character within XML document. " |
|
505 |
|
506 |
|
507 self should:[ |
|
508 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p02fail30.xml')). |
|
509 ] raise: SAXParseError. |
|
510 |
|
511 "Modified: / 25-10-2005 / 14:58:58 / janfrog" |
|
512 ! |
|
513 |
|
514 test_o_p02fail31 |
|
515 |
|
516 |
|
517 "Sections: 2.2 [2]" |
|
518 "Description: |
|
519 Use of illegal character within XML document. " |
|
520 |
|
521 |
|
522 self should:[ |
|
523 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p02fail31.xml')). |
|
524 ] raise: SAXParseError. |
|
525 |
|
526 "Modified: / 25-10-2005 / 14:58:58 / janfrog" |
|
527 ! |
|
528 |
|
529 test_o_p02fail4 |
|
530 |
|
531 |
|
532 "Sections: 2.2 [2]" |
|
533 "Description: |
|
534 Use of illegal character within XML document. " |
|
535 |
|
536 |
|
537 self should:[ |
|
538 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p02fail4.xml')). |
|
539 ] raise: SAXParseError. |
|
540 |
|
541 "Modified: / 25-10-2005 / 14:58:58 / janfrog" |
|
542 ! |
|
543 |
|
544 test_o_p02fail5 |
|
545 |
|
546 |
|
547 "Sections: 2.2 [2]" |
|
548 "Description: |
|
549 Use of illegal character within XML document. " |
|
550 |
|
551 |
|
552 self should:[ |
|
553 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p02fail5.xml')). |
|
554 ] raise: SAXParseError. |
|
555 |
|
556 "Modified: / 25-10-2005 / 14:58:58 / janfrog" |
|
557 ! |
|
558 |
|
559 test_o_p02fail6 |
|
560 |
|
561 |
|
562 "Sections: 2.2 [2]" |
|
563 "Description: |
|
564 Use of illegal character within XML document. " |
|
565 |
|
566 |
|
567 self should:[ |
|
568 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p02fail6.xml')). |
|
569 ] raise: SAXParseError. |
|
570 |
|
571 "Modified: / 25-10-2005 / 14:58:58 / janfrog" |
|
572 ! |
|
573 |
|
574 test_o_p02fail7 |
|
575 |
|
576 |
|
577 "Sections: 2.2 [2]" |
|
578 "Description: |
|
579 Use of illegal character within XML document. " |
|
580 |
|
581 |
|
582 self should:[ |
|
583 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p02fail7.xml')). |
|
584 ] raise: SAXParseError. |
|
585 |
|
586 "Modified: / 25-10-2005 / 14:58:58 / janfrog" |
|
587 ! |
|
588 |
|
589 test_o_p02fail8 |
|
590 |
|
591 |
|
592 "Sections: 2.2 [2]" |
|
593 "Description: |
|
594 Use of illegal character within XML document. " |
|
595 |
|
596 |
|
597 self should:[ |
|
598 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p02fail8.xml')). |
|
599 ] raise: SAXParseError. |
|
600 |
|
601 "Modified: / 25-10-2005 / 14:58:58 / janfrog" |
|
602 ! |
|
603 |
|
604 test_o_p02fail9 |
|
605 |
|
606 |
|
607 "Sections: 2.2 [2]" |
|
608 "Description: |
|
609 Use of illegal character within XML document. " |
|
610 |
|
611 |
|
612 self should:[ |
|
613 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p02fail9.xml')). |
|
614 ] raise: SAXParseError. |
|
615 |
|
616 "Modified: / 25-10-2005 / 14:58:58 / janfrog" |
|
617 ! |
|
618 |
|
619 test_o_p03fail1 |
|
620 |
|
621 |
|
622 "Sections: 2.3 [3]" |
|
623 "Description: |
|
624 Use of illegal character within XML document. " |
|
625 |
|
626 |
|
627 self should:[ |
|
628 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p03fail1.xml')). |
|
629 ] raise: SAXParseError. |
|
630 |
|
631 "Modified: / 25-10-2005 / 14:58:58 / janfrog" |
|
632 ! |
|
633 |
|
634 test_o_p03fail10 |
|
635 |
|
636 |
|
637 "Sections: 2.3 [3]" |
|
638 "Description: |
|
639 Use of illegal character within XML document. " |
|
640 |
|
641 |
|
642 self should:[ |
|
643 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p03fail10.xml')). |
|
644 ] raise: SAXParseError. |
|
645 |
|
646 "Modified: / 25-10-2005 / 14:58:58 / janfrog" |
|
647 ! |
|
648 |
|
649 test_o_p03fail11 |
|
650 |
|
651 |
|
652 "Sections: 2.3 [3]" |
|
653 "Description: |
|
654 Use of illegal character within XML document. " |
|
655 |
|
656 |
|
657 self should:[ |
|
658 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p03fail11.xml')). |
|
659 ] raise: SAXParseError. |
|
660 |
|
661 "Modified: / 25-10-2005 / 14:58:59 / janfrog" |
|
662 ! |
|
663 |
|
664 test_o_p03fail12 |
|
665 |
|
666 |
|
667 "Sections: 2.3 [3]" |
|
668 "Description: |
|
669 Use of illegal character within XML document. " |
|
670 |
|
671 |
|
672 self should:[ |
|
673 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p03fail12.xml')). |
|
674 ] raise: SAXParseError. |
|
675 |
|
676 "Modified: / 25-10-2005 / 14:58:59 / janfrog" |
|
677 ! |
|
678 |
|
679 test_o_p03fail13 |
|
680 |
|
681 |
|
682 "Sections: 2.3 [3]" |
|
683 "Description: |
|
684 Use of illegal character within XML document. " |
|
685 |
|
686 |
|
687 self should:[ |
|
688 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p03fail13.xml')). |
|
689 ] raise: SAXParseError. |
|
690 |
|
691 "Modified: / 25-10-2005 / 14:58:59 / janfrog" |
|
692 ! |
|
693 |
|
694 test_o_p03fail14 |
|
695 |
|
696 |
|
697 "Sections: 2.3 [3]" |
|
698 "Description: |
|
699 Use of illegal character within XML document. " |
|
700 |
|
701 |
|
702 self should:[ |
|
703 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p03fail14.xml')). |
|
704 ] raise: SAXParseError. |
|
705 |
|
706 "Modified: / 25-10-2005 / 14:58:59 / janfrog" |
|
707 ! |
|
708 |
|
709 test_o_p03fail15 |
|
710 |
|
711 |
|
712 "Sections: 2.3 [3]" |
|
713 "Description: |
|
714 Use of illegal character within XML document. " |
|
715 |
|
716 |
|
717 self should:[ |
|
718 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p03fail15.xml')). |
|
719 ] raise: SAXParseError. |
|
720 |
|
721 "Modified: / 25-10-2005 / 14:58:59 / janfrog" |
|
722 ! |
|
723 |
|
724 test_o_p03fail16 |
|
725 |
|
726 |
|
727 "Sections: 2.3 [3]" |
|
728 "Description: |
|
729 Use of illegal character within XML document. " |
|
730 |
|
731 |
|
732 self should:[ |
|
733 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p03fail16.xml')). |
|
734 ] raise: SAXParseError. |
|
735 |
|
736 "Modified: / 25-10-2005 / 14:58:59 / janfrog" |
|
737 ! |
|
738 |
|
739 test_o_p03fail17 |
|
740 |
|
741 |
|
742 "Sections: 2.3 [3]" |
|
743 "Description: |
|
744 Use of illegal character within XML document. " |
|
745 |
|
746 |
|
747 self should:[ |
|
748 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p03fail17.xml')). |
|
749 ] raise: SAXParseError. |
|
750 |
|
751 "Modified: / 25-10-2005 / 14:58:59 / janfrog" |
|
752 ! |
|
753 |
|
754 test_o_p03fail18 |
|
755 |
|
756 |
|
757 "Sections: 2.3 [3]" |
|
758 "Description: |
|
759 Use of illegal character within XML document. " |
|
760 |
|
761 |
|
762 self should:[ |
|
763 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p03fail18.xml')). |
|
764 ] raise: SAXParseError. |
|
765 |
|
766 "Modified: / 25-10-2005 / 14:58:59 / janfrog" |
|
767 ! |
|
768 |
|
769 test_o_p03fail19 |
|
770 |
|
771 |
|
772 "Sections: 2.3 [3]" |
|
773 "Description: |
|
774 Use of illegal character within XML document. " |
|
775 |
|
776 |
|
777 self should:[ |
|
778 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p03fail19.xml')). |
|
779 ] raise: SAXParseError. |
|
780 |
|
781 "Modified: / 25-10-2005 / 14:58:59 / janfrog" |
|
782 ! |
|
783 |
|
784 test_o_p03fail2 |
|
785 |
|
786 |
|
787 "Sections: 2.3 [3]" |
|
788 "Description: |
|
789 Use of illegal character within XML document. " |
|
790 |
|
791 |
|
792 self should:[ |
|
793 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p03fail2.xml')). |
|
794 ] raise: SAXParseError. |
|
795 |
|
796 "Modified: / 25-10-2005 / 14:58:59 / janfrog" |
|
797 ! |
|
798 |
|
799 test_o_p03fail20 |
|
800 |
|
801 |
|
802 "Sections: 2.3 [3]" |
|
803 "Description: |
|
804 Use of illegal character within XML document. " |
|
805 |
|
806 |
|
807 self should:[ |
|
808 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p03fail20.xml')). |
|
809 ] raise: SAXParseError. |
|
810 |
|
811 "Modified: / 25-10-2005 / 14:58:59 / janfrog" |
|
812 ! |
|
813 |
|
814 test_o_p03fail21 |
|
815 |
|
816 |
|
817 "Sections: 2.3 [3]" |
|
818 "Description: |
|
819 Use of illegal character within XML document. " |
|
820 |
|
821 |
|
822 self should:[ |
|
823 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p03fail21.xml')). |
|
824 ] raise: SAXParseError. |
|
825 |
|
826 "Modified: / 25-10-2005 / 14:58:59 / janfrog" |
|
827 ! |
|
828 |
|
829 test_o_p03fail22 |
|
830 |
|
831 |
|
832 "Sections: 2.3 [3]" |
|
833 "Description: |
|
834 Use of illegal character within XML document. " |
|
835 |
|
836 |
|
837 self should:[ |
|
838 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p03fail22.xml')). |
|
839 ] raise: SAXParseError. |
|
840 |
|
841 "Modified: / 25-10-2005 / 14:58:59 / janfrog" |
|
842 ! |
|
843 |
|
844 test_o_p03fail23 |
|
845 |
|
846 |
|
847 "Sections: 2.3 [3]" |
|
848 "Description: |
|
849 Use of illegal character within XML document. " |
|
850 |
|
851 |
|
852 self should:[ |
|
853 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p03fail23.xml')). |
|
854 ] raise: SAXParseError. |
|
855 |
|
856 "Modified: / 25-10-2005 / 14:58:59 / janfrog" |
|
857 ! |
|
858 |
|
859 test_o_p03fail24 |
|
860 |
|
861 |
|
862 "Sections: 2.3 [3]" |
|
863 "Description: |
|
864 Use of illegal character within XML document. " |
|
865 |
|
866 |
|
867 self should:[ |
|
868 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p03fail24.xml')). |
|
869 ] raise: SAXParseError. |
|
870 |
|
871 "Modified: / 25-10-2005 / 14:58:59 / janfrog" |
|
872 ! |
|
873 |
|
874 test_o_p03fail25 |
|
875 |
|
876 |
|
877 "Sections: 2.3 [3]" |
|
878 "Description: |
|
879 Use of illegal character within XML document. " |
|
880 |
|
881 |
|
882 self should:[ |
|
883 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p03fail25.xml')). |
|
884 ] raise: SAXParseError. |
|
885 |
|
886 "Modified: / 25-10-2005 / 14:58:59 / janfrog" |
|
887 ! |
|
888 |
|
889 test_o_p03fail26 |
|
890 |
|
891 |
|
892 "Sections: 2.3 [3]" |
|
893 "Description: |
|
894 Use of illegal character within XML document. " |
|
895 |
|
896 |
|
897 self should:[ |
|
898 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p03fail26.xml')). |
|
899 ] raise: SAXParseError. |
|
900 |
|
901 "Modified: / 25-10-2005 / 14:58:59 / janfrog" |
|
902 ! |
|
903 |
|
904 test_o_p03fail27 |
|
905 |
|
906 |
|
907 "Sections: 2.3 [3]" |
|
908 "Description: |
|
909 Use of illegal character within XML document. " |
|
910 |
|
911 |
|
912 self should:[ |
|
913 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p03fail27.xml')). |
|
914 ] raise: SAXParseError. |
|
915 |
|
916 "Modified: / 25-10-2005 / 14:58:59 / janfrog" |
|
917 ! |
|
918 |
|
919 test_o_p03fail28 |
|
920 |
|
921 |
|
922 "Sections: 2.3 [3]" |
|
923 "Description: |
|
924 Use of illegal character within XML document. " |
|
925 |
|
926 |
|
927 self should:[ |
|
928 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p03fail28.xml')). |
|
929 ] raise: SAXParseError. |
|
930 |
|
931 "Modified: / 25-10-2005 / 14:58:59 / janfrog" |
|
932 ! |
|
933 |
|
934 test_o_p03fail29 |
|
935 |
|
936 |
|
937 "Sections: 2.3 [3]" |
|
938 "Description: |
|
939 Use of illegal character within XML document. " |
|
940 |
|
941 |
|
942 self should:[ |
|
943 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p03fail29.xml')). |
|
944 ] raise: SAXParseError. |
|
945 |
|
946 "Modified: / 25-10-2005 / 14:58:59 / janfrog" |
|
947 ! |
|
948 |
|
949 test_o_p03fail3 |
|
950 |
|
951 |
|
952 "Sections: 2.3 [3]" |
|
953 "Description: |
|
954 Use of illegal character within XML document. " |
|
955 |
|
956 |
|
957 self should:[ |
|
958 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p03fail3.xml')). |
|
959 ] raise: SAXParseError. |
|
960 |
|
961 "Modified: / 25-10-2005 / 14:59:00 / janfrog" |
|
962 ! |
|
963 |
|
964 test_o_p03fail4 |
|
965 |
|
966 |
|
967 "Sections: 2.3 [3]" |
|
968 "Description: |
|
969 Use of illegal character within XML document. " |
|
970 |
|
971 |
|
972 self should:[ |
|
973 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p03fail4.xml')). |
|
974 ] raise: SAXParseError. |
|
975 |
|
976 "Modified: / 25-10-2005 / 14:59:00 / janfrog" |
|
977 ! |
|
978 |
|
979 test_o_p03fail5 |
|
980 |
|
981 |
|
982 "Sections: 2.3 [3]" |
|
983 "Description: |
|
984 Use of illegal character within XML document. " |
|
985 |
|
986 |
|
987 self should:[ |
|
988 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p03fail5.xml')). |
|
989 ] raise: SAXParseError. |
|
990 |
|
991 "Modified: / 25-10-2005 / 14:59:00 / janfrog" |
|
992 ! |
|
993 |
|
994 test_o_p03fail7 |
|
995 |
|
996 |
|
997 "Sections: 2.3 [3]" |
|
998 "Description: |
|
999 Use of illegal character within XML document. " |
|
1000 |
|
1001 |
|
1002 self should:[ |
|
1003 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p03fail7.xml')). |
|
1004 ] raise: SAXParseError. |
|
1005 |
|
1006 "Modified: / 25-10-2005 / 14:59:00 / janfrog" |
|
1007 ! |
|
1008 |
|
1009 test_o_p03fail8 |
|
1010 |
|
1011 |
|
1012 "Sections: 2.3 [3]" |
|
1013 "Description: |
|
1014 Use of illegal character within XML document. " |
|
1015 |
|
1016 |
|
1017 self should:[ |
|
1018 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p03fail8.xml')). |
|
1019 ] raise: SAXParseError. |
|
1020 |
|
1021 "Modified: / 25-10-2005 / 14:59:00 / janfrog" |
|
1022 ! |
|
1023 |
|
1024 test_o_p03fail9 |
|
1025 |
|
1026 |
|
1027 "Sections: 2.3 [3]" |
|
1028 "Description: |
|
1029 Use of illegal character within XML document. " |
|
1030 |
|
1031 |
|
1032 self should:[ |
|
1033 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p03fail9.xml')). |
|
1034 ] raise: SAXParseError. |
|
1035 |
|
1036 "Modified: / 25-10-2005 / 14:59:00 / janfrog" |
|
1037 ! |
|
1038 |
|
1039 test_o_p03pass1 |
|
1040 |
|
1041 |
|
1042 "Sections: 2.3 [3]" |
|
1043 "Description: |
|
1044 all valid S characters |
|
1045 " |
|
1046 |
|
1047 |
|
1048 self shouldnt:[ |
|
1049 "This test must pass in non-validating parser." |
|
1050 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p03pass1.xml')). |
|
1051 ] raise: Error. |
|
1052 |
|
1053 "Modified: / 25-10-2005 / 14:58:54 / janfrog" |
|
1054 ! |
|
1055 |
|
1056 test_o_p04fail1 |
|
1057 |
|
1058 |
|
1059 "Sections: 2.3 [4]" |
|
1060 "Description: |
|
1061 Name contains invalid character. " |
|
1062 |
|
1063 |
|
1064 self should:[ |
|
1065 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p04fail1.xml')). |
|
1066 ] raise: SAXParseError. |
|
1067 |
|
1068 "Modified: / 25-10-2005 / 14:59:00 / janfrog" |
|
1069 ! |
|
1070 |
|
1071 test_o_p04fail2 |
|
1072 |
|
1073 |
|
1074 "Sections: 2.3 [4]" |
|
1075 "Description: |
|
1076 Name contains invalid character. " |
|
1077 |
|
1078 |
|
1079 self should:[ |
|
1080 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p04fail2.xml')). |
|
1081 ] raise: SAXParseError. |
|
1082 |
|
1083 "Modified: / 25-10-2005 / 14:59:00 / janfrog" |
|
1084 ! |
|
1085 |
|
1086 test_o_p04fail3 |
|
1087 |
|
1088 |
|
1089 "Sections: 2.3 [4]" |
|
1090 "Description: |
|
1091 Name contains invalid character. " |
|
1092 |
|
1093 |
|
1094 self should:[ |
|
1095 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p04fail3.xml')). |
|
1096 ] raise: SAXParseError. |
|
1097 |
|
1098 "Modified: / 25-10-2005 / 14:59:00 / janfrog" |
|
1099 ! |
|
1100 |
|
1101 test_o_p04pass1 |
|
1102 |
|
1103 |
|
1104 "Sections: 2.3 [4]" |
|
1105 "Description: |
|
1106 names with all valid ASCII characters, and one from each |
|
1107 other class in NameChar |
|
1108 " |
|
1109 |
|
1110 |
|
1111 self shouldnt:[ |
|
1112 "This test must pass in non-validating parser." |
|
1113 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p04pass1.xml')). |
|
1114 ] raise: Error. |
|
1115 |
|
1116 "Modified: / 25-10-2005 / 14:58:54 / janfrog" |
|
1117 ! |
|
1118 |
|
1119 test_o_p05fail1 |
|
1120 |
|
1121 |
|
1122 "Sections: 2.3 [5]" |
|
1123 "Description: |
|
1124 a Name cannot start with a digit |
|
1125 " |
|
1126 |
|
1127 |
|
1128 self should:[ |
|
1129 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p05fail1.xml')). |
|
1130 ] raise: SAXParseError. |
|
1131 |
|
1132 "Modified: / 25-10-2005 / 14:59:00 / janfrog" |
|
1133 ! |
|
1134 |
|
1135 test_o_p05fail2 |
|
1136 |
|
1137 |
|
1138 "Sections: 2.3 [5]" |
|
1139 "Description: |
|
1140 a Name cannot start with a '.' |
|
1141 " |
|
1142 |
|
1143 |
|
1144 self should:[ |
|
1145 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p05fail2.xml')). |
|
1146 ] raise: SAXParseError. |
|
1147 |
|
1148 "Modified: / 25-10-2005 / 14:59:00 / janfrog" |
|
1149 ! |
|
1150 |
|
1151 test_o_p05fail3 |
|
1152 |
|
1153 |
|
1154 "Sections: 2.3 [5]" |
|
1155 "Description: |
|
1156 a Name cannot start with a `-` |
|
1157 " |
|
1158 |
|
1159 |
|
1160 self should:[ |
|
1161 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p05fail3.xml')). |
|
1162 ] raise: SAXParseError. |
|
1163 |
|
1164 "Modified: / 25-10-2005 / 14:59:00 / janfrog" |
|
1165 ! |
|
1166 |
|
1167 test_o_p05fail4 |
|
1168 |
|
1169 |
|
1170 "Sections: 2.3 [5]" |
|
1171 "Description: |
|
1172 a Name cannot start with a CombiningChar |
|
1173 " |
|
1174 |
|
1175 |
|
1176 self should:[ |
|
1177 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p05fail4.xml')). |
|
1178 ] raise: SAXParseError. |
|
1179 |
|
1180 "Modified: / 25-10-2005 / 14:59:00 / janfrog" |
|
1181 ! |
|
1182 |
|
1183 test_o_p05fail5 |
|
1184 |
|
1185 |
|
1186 "Sections: 2.3 [5]" |
|
1187 "Description: |
|
1188 a Name cannot start with an Extender |
|
1189 " |
|
1190 |
|
1191 |
|
1192 self should:[ |
|
1193 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p05fail5.xml')). |
|
1194 ] raise: SAXParseError. |
|
1195 |
|
1196 "Modified: / 25-10-2005 / 14:59:00 / janfrog" |
|
1197 ! |
|
1198 |
|
1199 test_o_p05pass1 |
|
1200 |
|
1201 |
|
1202 "Sections: 2.3 [5]" |
|
1203 "Description: |
|
1204 various valid Name constructions |
|
1205 " |
|
1206 |
|
1207 |
|
1208 self shouldnt:[ |
|
1209 "This test must pass in non-validating parser." |
|
1210 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p05pass1.xml')). |
|
1211 ] raise: Error. |
|
1212 |
|
1213 "Modified: / 25-10-2005 / 14:58:54 / janfrog" |
|
1214 ! |
|
1215 |
|
1216 test_o_p06fail1 |
|
1217 |
|
1218 |
|
1219 "Sections: 2.3 [6]" |
|
1220 "Description: |
|
1221 Requires at least one name. |
|
1222 " |
|
1223 |
|
1224 |
|
1225 self shouldnt:[ |
|
1226 "This test must pass in non-validating parser." |
|
1227 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p06fail1.xml')). |
|
1228 ] raise: Error. |
|
1229 |
|
1230 "Modified: / 25-10-2005 / 14:58:54 / janfrog" |
|
1231 ! |
|
1232 |
|
1233 test_o_p06pass1 |
|
1234 |
|
1235 |
|
1236 "Sections: 2.3 [6]" |
|
1237 "Description: |
|
1238 various satisfactions of the Names production in a NAMES |
|
1239 attribute |
|
1240 " |
|
1241 |
|
1242 |
|
1243 self shouldnt:[ |
|
1244 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p06pass1.xml')). |
|
1245 ] raise: Error. |
|
1246 |
|
1247 "Modified: / 25-10-2005 / 14:58:52 / janfrog" |
|
1248 ! |
|
1249 |
|
1250 test_o_p07pass1 |
|
1251 |
|
1252 |
|
1253 "Sections: 2.3 [7]" |
|
1254 "Description: |
|
1255 various valid Nmtoken 's in an attribute list declaration. |
|
1256 " |
|
1257 |
|
1258 |
|
1259 self shouldnt:[ |
|
1260 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p07pass1.xml')). |
|
1261 ] raise: Error. |
|
1262 |
|
1263 "Modified: / 25-10-2005 / 14:58:52 / janfrog" |
|
1264 ! |
|
1265 |
|
1266 test_o_p08fail1 |
|
1267 |
|
1268 |
|
1269 "Sections: 2.3 [8]" |
|
1270 "Description: |
|
1271 at least one Nmtoken is required. |
|
1272 " |
|
1273 |
|
1274 |
|
1275 self shouldnt:[ |
|
1276 "This test must pass in non-validating parser." |
|
1277 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p08fail1.xml')). |
|
1278 ] raise: Error. |
|
1279 |
|
1280 "Modified: / 25-10-2005 / 14:58:54 / janfrog" |
|
1281 ! |
|
1282 |
|
1283 test_o_p08fail2 |
|
1284 |
|
1285 |
|
1286 "Sections: 2.3 [8]" |
|
1287 "Description: |
|
1288 an invalid Nmtoken character. |
|
1289 " |
|
1290 |
|
1291 |
|
1292 self shouldnt:[ |
|
1293 "This test must pass in non-validating parser." |
|
1294 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p08fail2.xml')). |
|
1295 ] raise: Error. |
|
1296 |
|
1297 "Modified: / 25-10-2005 / 14:58:54 / janfrog" |
|
1298 ! |
|
1299 |
|
1300 test_o_p08pass1 |
|
1301 |
|
1302 |
|
1303 "Sections: 2.3 [8]" |
|
1304 "Description: |
|
1305 various satisfaction of an NMTOKENS attribute value. |
|
1306 " |
|
1307 |
|
1308 |
|
1309 self shouldnt:[ |
|
1310 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p08pass1.xml')). |
|
1311 ] raise: Error. |
|
1312 |
|
1313 "Modified: / 25-10-2005 / 14:58:52 / janfrog" |
|
1314 ! |
|
1315 |
|
1316 test_o_p09fail1 |
|
1317 |
|
1318 |
|
1319 "Sections: 2.3 [9]" |
|
1320 "Description: |
|
1321 EntityValue excludes '%' |
|
1322 " |
|
1323 |
|
1324 |
|
1325 self should:[ |
|
1326 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p09fail1.xml')). |
|
1327 ] raise: SAXParseError. |
|
1328 |
|
1329 "Modified: / 25-10-2005 / 14:59:00 / janfrog" |
|
1330 ! |
|
1331 |
|
1332 test_o_p09fail2 |
|
1333 |
|
1334 |
|
1335 "Sections: 2.3 [9]" |
|
1336 "Description: |
|
1337 EntityValue excludes '&' |
|
1338 " |
|
1339 |
|
1340 |
|
1341 self should:[ |
|
1342 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p09fail2.xml')). |
|
1343 ] raise: SAXParseError. |
|
1344 |
|
1345 "Modified: / 25-10-2005 / 14:59:00 / janfrog" |
|
1346 ! |
|
1347 |
|
1348 test_o_p09fail3 |
|
1349 |
|
1350 |
|
1351 "Sections: 2.3 [9]" |
|
1352 "Description: |
|
1353 incomplete character reference |
|
1354 " |
|
1355 |
|
1356 |
|
1357 self should:[ |
|
1358 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p09fail3.xml')). |
|
1359 ] raise: SAXParseError. |
|
1360 |
|
1361 "Modified: / 25-10-2005 / 14:59:00 / janfrog" |
|
1362 ! |
|
1363 |
|
1364 test_o_p09fail4 |
|
1365 |
|
1366 |
|
1367 "Sections: 2.3 [9]" |
|
1368 "Description: |
|
1369 quote types must match |
|
1370 " |
|
1371 |
|
1372 |
|
1373 self should:[ |
|
1374 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p09fail4.xml')). |
|
1375 ] raise: SAXParseError. |
|
1376 |
|
1377 "Modified: / 25-10-2005 / 14:59:00 / janfrog" |
|
1378 ! |
|
1379 |
|
1380 test_o_p09fail5 |
|
1381 |
|
1382 |
|
1383 "Sections: 2.3 [9]" |
|
1384 "Description: |
|
1385 quote types must match |
|
1386 " |
|
1387 |
|
1388 |
|
1389 self should:[ |
|
1390 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p09fail5.xml')). |
|
1391 ] raise: SAXParseError. |
|
1392 |
|
1393 "Modified: / 25-10-2005 / 14:59:00 / janfrog" |
|
1394 ! |
|
1395 |
|
1396 test_o_p09pass1 |
|
1397 |
|
1398 |
|
1399 "Sections: 2.3 [9]" |
|
1400 "Description: |
|
1401 valid EntityValue's. Except for entity references, |
|
1402 markup is not recognized. |
|
1403 " |
|
1404 |
|
1405 |
|
1406 self shouldnt:[ |
|
1407 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p09pass1.xml')). |
|
1408 ] raise: Error. |
|
1409 |
|
1410 "Modified: / 25-10-2005 / 14:58:52 / janfrog" |
|
1411 ! |
|
1412 |
|
1413 test_o_p10fail1 |
|
1414 |
|
1415 |
|
1416 "Sections: 2.3 [10]" |
|
1417 "Description: |
|
1418 attribute values exclude '<' |
|
1419 " |
|
1420 |
|
1421 |
|
1422 self should:[ |
|
1423 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p10fail1.xml')). |
|
1424 ] raise: SAXParseError. |
|
1425 |
|
1426 "Modified: / 25-10-2005 / 14:59:00 / janfrog" |
|
1427 ! |
|
1428 |
|
1429 test_o_p10fail2 |
|
1430 |
|
1431 |
|
1432 "Sections: 2.3 [10]" |
|
1433 "Description: |
|
1434 attribute values exclude '&' |
|
1435 " |
|
1436 |
|
1437 |
|
1438 self should:[ |
|
1439 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p10fail2.xml')). |
|
1440 ] raise: SAXParseError. |
|
1441 |
|
1442 "Modified: / 25-10-2005 / 14:59:00 / janfrog" |
|
1443 ! |
|
1444 |
|
1445 test_o_p10fail3 |
|
1446 |
|
1447 |
|
1448 "Sections: 2.3 [10]" |
|
1449 "Description: |
|
1450 quote types must match |
|
1451 " |
|
1452 |
|
1453 |
|
1454 self should:[ |
|
1455 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p10fail3.xml')). |
|
1456 ] raise: SAXParseError. |
|
1457 |
|
1458 "Modified: / 25-10-2005 / 14:59:00 / janfrog" |
|
1459 ! |
|
1460 |
|
1461 test_o_p10pass1 |
|
1462 |
|
1463 |
|
1464 "Sections: 2.3 [10]" |
|
1465 "Description: |
|
1466 valid attribute values |
|
1467 " |
|
1468 |
|
1469 |
|
1470 self shouldnt:[ |
|
1471 "This test must pass in non-validating parser." |
|
1472 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p10pass1.xml')). |
|
1473 ] raise: Error. |
|
1474 |
|
1475 "Modified: / 25-10-2005 / 14:58:54 / janfrog" |
|
1476 ! |
|
1477 |
|
1478 test_o_p11fail1 |
|
1479 |
|
1480 |
|
1481 "Sections: 2.3 [11]" |
|
1482 "Description: |
|
1483 quote types must match |
|
1484 " |
|
1485 |
|
1486 |
|
1487 self should:[ |
|
1488 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p11fail1.xml')). |
|
1489 ] raise: SAXParseError. |
|
1490 |
|
1491 "Modified: / 25-10-2005 / 14:59:01 / janfrog" |
|
1492 ! |
|
1493 |
|
1494 test_o_p11fail2 |
|
1495 |
|
1496 |
|
1497 "Sections: 2.3 [11]" |
|
1498 "Description: |
|
1499 cannot contain delimiting quotes |
|
1500 " |
|
1501 |
|
1502 |
|
1503 self should:[ |
|
1504 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p11fail2.xml')). |
|
1505 ] raise: SAXParseError. |
|
1506 |
|
1507 "Modified: / 25-10-2005 / 14:59:01 / janfrog" |
|
1508 ! |
|
1509 |
|
1510 test_o_p11pass1 |
|
1511 |
|
1512 |
|
1513 "Sections: 2.3, 4.2.2 [11]" |
|
1514 "Description: |
|
1515 system literals may not contain |
|
1516 URI fragments |
|
1517 " |
|
1518 |
|
1519 |
|
1520 self shouldnt:[ |
|
1521 "This test must pass in non-validating parser." |
|
1522 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p11pass1.xml')). |
|
1523 ] raise: Error. |
|
1524 |
|
1525 "Modified: / 25-10-2005 / 14:59:10 / janfrog" |
|
1526 ! |
|
1527 |
|
1528 test_o_p12fail1 |
|
1529 |
|
1530 |
|
1531 "Sections: 2.3 [12]" |
|
1532 "Description: |
|
1533 '`' excluded |
|
1534 " |
|
1535 |
|
1536 |
|
1537 self should:[ |
|
1538 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p12fail1.xml')). |
|
1539 ] raise: SAXParseError. |
|
1540 |
|
1541 "Modified: / 25-10-2005 / 14:59:01 / janfrog" |
|
1542 ! |
|
1543 |
|
1544 test_o_p12fail2 |
|
1545 |
|
1546 |
|
1547 "Sections: 2.3 [12]" |
|
1548 "Description: |
|
1549 '\' excluded |
|
1550 " |
|
1551 |
|
1552 |
|
1553 self should:[ |
|
1554 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p12fail2.xml')). |
|
1555 ] raise: SAXParseError. |
|
1556 |
|
1557 "Modified: / 25-10-2005 / 14:59:01 / janfrog" |
|
1558 ! |
|
1559 |
|
1560 test_o_p12fail3 |
|
1561 |
|
1562 |
|
1563 "Sections: 2.3 [12]" |
|
1564 "Description: |
|
1565 entity references excluded |
|
1566 " |
|
1567 |
|
1568 |
|
1569 self should:[ |
|
1570 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p12fail3.xml')). |
|
1571 ] raise: SAXParseError. |
|
1572 |
|
1573 "Modified: / 25-10-2005 / 14:59:01 / janfrog" |
|
1574 ! |
|
1575 |
|
1576 test_o_p12fail4 |
|
1577 |
|
1578 |
|
1579 "Sections: 2.3 [12]" |
|
1580 "Description: |
|
1581 '>' excluded |
|
1582 " |
|
1583 |
|
1584 |
|
1585 self should:[ |
|
1586 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p12fail4.xml')). |
|
1587 ] raise: SAXParseError. |
|
1588 |
|
1589 "Modified: / 25-10-2005 / 14:59:01 / janfrog" |
|
1590 ! |
|
1591 |
|
1592 test_o_p12fail5 |
|
1593 |
|
1594 |
|
1595 "Sections: 2.3 [12]" |
|
1596 "Description: |
|
1597 '<' excluded |
|
1598 " |
|
1599 |
|
1600 |
|
1601 self should:[ |
|
1602 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p12fail5.xml')). |
|
1603 ] raise: SAXParseError. |
|
1604 |
|
1605 "Modified: / 25-10-2005 / 14:59:01 / janfrog" |
|
1606 ! |
|
1607 |
|
1608 test_o_p12fail6 |
|
1609 |
|
1610 |
|
1611 "Sections: 2.3 [12]" |
|
1612 "Description: |
|
1613 built-in entity refs excluded |
|
1614 " |
|
1615 |
|
1616 |
|
1617 self should:[ |
|
1618 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p12fail6.xml')). |
|
1619 ] raise: SAXParseError. |
|
1620 |
|
1621 "Modified: / 25-10-2005 / 14:59:01 / janfrog" |
|
1622 ! |
|
1623 |
|
1624 test_o_p12fail7 |
|
1625 |
|
1626 |
|
1627 "Sections: 2.3 [13]" |
|
1628 "Description: |
|
1629 The public ID has a tab character, which is disallowed |
|
1630 " |
|
1631 |
|
1632 |
|
1633 self should:[ |
|
1634 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p12fail7.xml')). |
|
1635 ] raise: SAXParseError. |
|
1636 |
|
1637 "Modified: / 25-10-2005 / 14:59:01 / janfrog" |
|
1638 ! |
|
1639 |
|
1640 test_o_p12pass1 |
|
1641 |
|
1642 |
|
1643 "Sections: 2.3 [12]" |
|
1644 "Description: |
|
1645 valid public IDs. |
|
1646 " |
|
1647 |
|
1648 |
|
1649 self shouldnt:[ |
|
1650 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p12pass1.xml')). |
|
1651 ] raise: Error. |
|
1652 |
|
1653 "Modified: / 25-10-2005 / 14:58:52 / janfrog" |
|
1654 ! |
|
1655 |
|
1656 test_o_p14fail1 |
|
1657 |
|
1658 |
|
1659 "Sections: 2.4 [14]" |
|
1660 "Description: |
|
1661 '<' excluded |
|
1662 " |
|
1663 |
|
1664 |
|
1665 self should:[ |
|
1666 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p14fail1.xml')). |
|
1667 ] raise: SAXParseError. |
|
1668 |
|
1669 "Modified: / 25-10-2005 / 14:59:01 / janfrog" |
|
1670 ! |
|
1671 |
|
1672 test_o_p14fail2 |
|
1673 |
|
1674 |
|
1675 "Sections: 2.4 [14]" |
|
1676 "Description: |
|
1677 '&' excluded |
|
1678 " |
|
1679 |
|
1680 |
|
1681 self should:[ |
|
1682 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p14fail2.xml')). |
|
1683 ] raise: SAXParseError. |
|
1684 |
|
1685 "Modified: / 25-10-2005 / 14:59:01 / janfrog" |
|
1686 ! |
|
1687 |
|
1688 test_o_p14fail3 |
|
1689 |
|
1690 |
|
1691 "Sections: 2.4 [14]" |
|
1692 "Description: |
|
1693 `]]>` excluded |
|
1694 " |
|
1695 |
|
1696 |
|
1697 self should:[ |
|
1698 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p14fail3.xml')). |
|
1699 ] raise: SAXParseError. |
|
1700 |
|
1701 "Modified: / 25-10-2005 / 14:59:01 / janfrog" |
|
1702 ! |
|
1703 |
|
1704 test_o_p14pass1 |
|
1705 |
|
1706 |
|
1707 "Sections: 2.4 [14]" |
|
1708 "Description: |
|
1709 valid CharData |
|
1710 " |
|
1711 |
|
1712 |
|
1713 self shouldnt:[ |
|
1714 "This test must pass in non-validating parser." |
|
1715 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p14pass1.xml')). |
|
1716 ] raise: Error. |
|
1717 |
|
1718 "Modified: / 25-10-2005 / 14:58:54 / janfrog" |
|
1719 ! |
|
1720 |
|
1721 test_o_p15fail1 |
|
1722 |
|
1723 |
|
1724 "Sections: 2.5 [15]" |
|
1725 "Description: |
|
1726 comments can't end in '-' |
|
1727 " |
|
1728 |
|
1729 |
|
1730 self should:[ |
|
1731 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p15fail1.xml')). |
|
1732 ] raise: SAXParseError. |
|
1733 |
|
1734 "Modified: / 25-10-2005 / 14:59:01 / janfrog" |
|
1735 ! |
|
1736 |
|
1737 test_o_p15fail2 |
|
1738 |
|
1739 |
|
1740 "Sections: 2.5 [15]" |
|
1741 "Description: |
|
1742 one comment per comment (contrasted with SGML) |
|
1743 " |
|
1744 |
|
1745 |
|
1746 self should:[ |
|
1747 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p15fail2.xml')). |
|
1748 ] raise: SAXParseError. |
|
1749 |
|
1750 "Modified: / 25-10-2005 / 14:59:01 / janfrog" |
|
1751 ! |
|
1752 |
|
1753 test_o_p15fail3 |
|
1754 |
|
1755 |
|
1756 "Sections: 2.5 [15]" |
|
1757 "Description: |
|
1758 can't include 2 or more adjacent '-'s |
|
1759 " |
|
1760 |
|
1761 |
|
1762 self should:[ |
|
1763 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p15fail3.xml')). |
|
1764 ] raise: SAXParseError. |
|
1765 |
|
1766 "Modified: / 25-10-2005 / 14:59:01 / janfrog" |
|
1767 ! |
|
1768 |
|
1769 test_o_p15pass1 |
|
1770 |
|
1771 |
|
1772 "Sections: 2.5 [15]" |
|
1773 "Description: |
|
1774 valid comments |
|
1775 " |
|
1776 |
|
1777 |
|
1778 self shouldnt:[ |
|
1779 "This test must pass in non-validating parser." |
|
1780 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p15pass1.xml')). |
|
1781 ] raise: Error. |
|
1782 |
|
1783 "Modified: / 25-10-2005 / 14:58:55 / janfrog" |
|
1784 ! |
|
1785 |
|
1786 test_o_p16fail1 |
|
1787 |
|
1788 |
|
1789 "Sections: 2.6 [16]" |
|
1790 "Description: |
|
1791 `xml` is an invalid PITarget |
|
1792 " |
|
1793 |
|
1794 |
|
1795 self should:[ |
|
1796 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p16fail1.xml')). |
|
1797 ] raise: SAXParseError. |
|
1798 |
|
1799 "Modified: / 25-10-2005 / 14:59:01 / janfrog" |
|
1800 ! |
|
1801 |
|
1802 test_o_p16fail2 |
|
1803 |
|
1804 |
|
1805 "Sections: 2.6 [16]" |
|
1806 "Description: |
|
1807 a PITarget must be present |
|
1808 " |
|
1809 |
|
1810 |
|
1811 self should:[ |
|
1812 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p16fail2.xml')). |
|
1813 ] raise: SAXParseError. |
|
1814 |
|
1815 "Modified: / 25-10-2005 / 14:59:01 / janfrog" |
|
1816 ! |
|
1817 |
|
1818 test_o_p16fail3 |
|
1819 |
|
1820 |
|
1821 "Sections: 2.6 [16]" |
|
1822 "Description: |
|
1823 S after PITarget is required |
|
1824 " |
|
1825 |
|
1826 |
|
1827 self should:[ |
|
1828 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p16fail3.xml')). |
|
1829 ] raise: SAXParseError. |
|
1830 |
|
1831 "Modified: / 25-10-2005 / 14:59:01 / janfrog" |
|
1832 ! |
|
1833 |
|
1834 test_o_p16pass1 |
|
1835 |
|
1836 |
|
1837 "Sections: 2.6 [16] [17]" |
|
1838 "Description: |
|
1839 Valid form of Processing Instruction. Shows that whitespace character data is valid before end of processing instruction. " |
|
1840 |
|
1841 |
|
1842 self shouldnt:[ |
|
1843 "This test must pass in non-validating parser." |
|
1844 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p16pass1.xml')). |
|
1845 ] raise: Error. |
|
1846 |
|
1847 "Modified: / 25-10-2005 / 14:58:55 / janfrog" |
|
1848 ! |
|
1849 |
|
1850 test_o_p16pass2 |
|
1851 |
|
1852 |
|
1853 "Sections: 2.6 [16]" |
|
1854 "Description: |
|
1855 Valid form of Processing Instruction. Shows that whitespace character data is valid before end of processing instruction. " |
|
1856 |
|
1857 |
|
1858 self shouldnt:[ |
|
1859 "This test must pass in non-validating parser." |
|
1860 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p16pass2.xml')). |
|
1861 ] raise: Error. |
|
1862 |
|
1863 "Modified: / 25-10-2005 / 14:58:55 / janfrog" |
|
1864 ! |
|
1865 |
|
1866 test_o_p16pass3 |
|
1867 |
|
1868 |
|
1869 "Sections: 2.6 [16]" |
|
1870 "Description: |
|
1871 Valid form of Processing Instruction. Shows that whitespace character data is valid before end of processing instruction. " |
|
1872 |
|
1873 |
|
1874 self shouldnt:[ |
|
1875 "This test must pass in non-validating parser." |
|
1876 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p16pass3.xml')). |
|
1877 ] raise: Error. |
|
1878 |
|
1879 "Modified: / 25-10-2005 / 14:58:55 / janfrog" |
|
1880 ! |
|
1881 |
|
1882 test_o_p18fail1 |
|
1883 |
|
1884 |
|
1885 "Sections: 2.7 [18]" |
|
1886 "Description: |
|
1887 no space before `CDATA` |
|
1888 " |
|
1889 |
|
1890 |
|
1891 self should:[ |
|
1892 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p18fail1.xml')). |
|
1893 ] raise: SAXParseError. |
|
1894 |
|
1895 "Modified: / 25-10-2005 / 14:59:01 / janfrog" |
|
1896 ! |
|
1897 |
|
1898 test_o_p18fail2 |
|
1899 |
|
1900 |
|
1901 "Sections: 2.7 [18]" |
|
1902 "Description: |
|
1903 no space after `CDATA` |
|
1904 " |
|
1905 |
|
1906 |
|
1907 self should:[ |
|
1908 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p18fail2.xml')). |
|
1909 ] raise: SAXParseError. |
|
1910 |
|
1911 "Modified: / 25-10-2005 / 14:59:01 / janfrog" |
|
1912 ! |
|
1913 |
|
1914 test_o_p18fail3 |
|
1915 |
|
1916 |
|
1917 "Sections: 2.7 [18]" |
|
1918 "Description: |
|
1919 CDSect's can't nest |
|
1920 " |
|
1921 |
|
1922 |
|
1923 self should:[ |
|
1924 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p18fail3.xml')). |
|
1925 ] raise: SAXParseError. |
|
1926 |
|
1927 "Modified: / 25-10-2005 / 14:59:01 / janfrog" |
|
1928 ! |
|
1929 |
|
1930 test_o_p18pass1 |
|
1931 |
|
1932 |
|
1933 "Sections: 2.7 [18]" |
|
1934 "Description: |
|
1935 valid CDSect's. Note that a CDStart in a CDSect is not |
|
1936 recognized as such |
|
1937 " |
|
1938 |
|
1939 |
|
1940 self shouldnt:[ |
|
1941 "This test must pass in non-validating parser." |
|
1942 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p18pass1.xml')). |
|
1943 ] raise: Error. |
|
1944 |
|
1945 "Modified: / 25-10-2005 / 14:58:55 / janfrog" |
|
1946 ! |
|
1947 |
|
1948 test_o_p22fail1 |
|
1949 |
|
1950 |
|
1951 "Sections: 2.8 [22]" |
|
1952 "Description: |
|
1953 prolog must start with XML decl |
|
1954 " |
|
1955 |
|
1956 |
|
1957 self should:[ |
|
1958 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p22fail1.xml')). |
|
1959 ] raise: SAXParseError. |
|
1960 |
|
1961 "Modified: / 25-10-2005 / 14:59:01 / janfrog" |
|
1962 ! |
|
1963 |
|
1964 test_o_p22fail2 |
|
1965 |
|
1966 |
|
1967 "Sections: 2.8 [22]" |
|
1968 "Description: |
|
1969 prolog must start with XML decl |
|
1970 " |
|
1971 |
|
1972 |
|
1973 self should:[ |
|
1974 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p22fail2.xml')). |
|
1975 ] raise: SAXParseError. |
|
1976 |
|
1977 "Modified: / 25-10-2005 / 14:59:02 / janfrog" |
|
1978 ! |
|
1979 |
|
1980 test_o_p22pass1 |
|
1981 |
|
1982 |
|
1983 "Sections: 2.8 [22]" |
|
1984 "Description: |
|
1985 prolog can be empty |
|
1986 " |
|
1987 |
|
1988 |
|
1989 self shouldnt:[ |
|
1990 "This test must pass in non-validating parser." |
|
1991 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p22pass1.xml')). |
|
1992 ] raise: Error. |
|
1993 |
|
1994 "Modified: / 25-10-2005 / 14:58:55 / janfrog" |
|
1995 ! |
|
1996 |
|
1997 test_o_p22pass2 |
|
1998 |
|
1999 |
|
2000 "Sections: 2.8 [22]" |
|
2001 "Description: |
|
2002 XML declaration only |
|
2003 " |
|
2004 |
|
2005 |
|
2006 self shouldnt:[ |
|
2007 "This test must pass in non-validating parser." |
|
2008 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p22pass2.xml')). |
|
2009 ] raise: Error. |
|
2010 |
|
2011 "Modified: / 25-10-2005 / 14:58:55 / janfrog" |
|
2012 ! |
|
2013 |
|
2014 test_o_p22pass3 |
|
2015 |
|
2016 |
|
2017 "Sections: 2.8 [22]" |
|
2018 "Description: |
|
2019 XML decl and Misc |
|
2020 " |
|
2021 |
|
2022 |
|
2023 self shouldnt:[ |
|
2024 "This test must pass in non-validating parser." |
|
2025 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p22pass3.xml')). |
|
2026 ] raise: Error. |
|
2027 |
|
2028 "Modified: / 25-10-2005 / 14:58:55 / janfrog" |
|
2029 ! |
|
2030 |
|
2031 test_o_p22pass4 |
|
2032 |
|
2033 |
|
2034 "Sections: 2.8 [22]" |
|
2035 "Description: |
|
2036 XML decl and doctypedecl |
|
2037 " |
|
2038 |
|
2039 |
|
2040 self shouldnt:[ |
|
2041 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p22pass4.xml')). |
|
2042 ] raise: Error. |
|
2043 |
|
2044 "Modified: / 25-10-2005 / 14:58:52 / janfrog" |
|
2045 ! |
|
2046 |
|
2047 test_o_p22pass5 |
|
2048 |
|
2049 |
|
2050 "Sections: 2.8 [22]" |
|
2051 "Description: |
|
2052 just doctypedecl |
|
2053 " |
|
2054 |
|
2055 |
|
2056 self shouldnt:[ |
|
2057 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p22pass5.xml')). |
|
2058 ] raise: Error. |
|
2059 |
|
2060 "Modified: / 25-10-2005 / 14:58:52 / janfrog" |
|
2061 ! |
|
2062 |
|
2063 test_o_p22pass6 |
|
2064 |
|
2065 |
|
2066 "Sections: 2.8 [22]" |
|
2067 "Description: |
|
2068 S between decls is not required |
|
2069 " |
|
2070 |
|
2071 |
|
2072 self shouldnt:[ |
|
2073 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p22pass6.xml')). |
|
2074 ] raise: Error. |
|
2075 |
|
2076 "Modified: / 25-10-2005 / 14:58:52 / janfrog" |
|
2077 ! |
|
2078 |
|
2079 test_o_p23fail1 |
|
2080 |
|
2081 |
|
2082 "Sections: 2.8 [23]" |
|
2083 "Description: |
|
2084 `xml` must be lower-case |
|
2085 " |
|
2086 |
|
2087 |
|
2088 self should:[ |
|
2089 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p23fail1.xml')). |
|
2090 ] raise: SAXParseError. |
|
2091 |
|
2092 "Modified: / 25-10-2005 / 14:59:02 / janfrog" |
|
2093 ! |
|
2094 |
|
2095 test_o_p23fail2 |
|
2096 |
|
2097 |
|
2098 "Sections: 2.8 [23]" |
|
2099 "Description: |
|
2100 VersionInfo must be supplied |
|
2101 " |
|
2102 |
|
2103 |
|
2104 self should:[ |
|
2105 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p23fail2.xml')). |
|
2106 ] raise: SAXParseError. |
|
2107 |
|
2108 "Modified: / 25-10-2005 / 14:59:02 / janfrog" |
|
2109 ! |
|
2110 |
|
2111 test_o_p23fail3 |
|
2112 |
|
2113 |
|
2114 "Sections: 2.8 [23]" |
|
2115 "Description: |
|
2116 VersionInfo must come first |
|
2117 " |
|
2118 |
|
2119 |
|
2120 self should:[ |
|
2121 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p23fail3.xml')). |
|
2122 ] raise: SAXParseError. |
|
2123 |
|
2124 "Modified: / 25-10-2005 / 14:59:02 / janfrog" |
|
2125 ! |
|
2126 |
|
2127 test_o_p23fail4 |
|
2128 |
|
2129 |
|
2130 "Sections: 2.8 [23]" |
|
2131 "Description: |
|
2132 SDDecl must come last |
|
2133 " |
|
2134 |
|
2135 |
|
2136 self should:[ |
|
2137 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p23fail4.xml')). |
|
2138 ] raise: SAXParseError. |
|
2139 |
|
2140 "Modified: / 25-10-2005 / 14:59:02 / janfrog" |
|
2141 ! |
|
2142 |
|
2143 test_o_p23fail5 |
|
2144 |
|
2145 |
|
2146 "Sections: 2.8 [23]" |
|
2147 "Description: |
|
2148 no SGML-type PIs |
|
2149 " |
|
2150 |
|
2151 |
|
2152 self should:[ |
|
2153 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p23fail5.xml')). |
|
2154 ] raise: SAXParseError. |
|
2155 |
|
2156 "Modified: / 25-10-2005 / 14:59:02 / janfrog" |
|
2157 ! |
|
2158 |
|
2159 test_o_p23pass1 |
|
2160 |
|
2161 |
|
2162 "Sections: 2.8 [23]" |
|
2163 "Description: |
|
2164 Test shows a valid XML declaration along with version info. " |
|
2165 |
|
2166 |
|
2167 self shouldnt:[ |
|
2168 "This test must pass in non-validating parser." |
|
2169 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p23pass1.xml')). |
|
2170 ] raise: Error. |
|
2171 |
|
2172 "Modified: / 25-10-2005 / 14:58:55 / janfrog" |
|
2173 ! |
|
2174 |
|
2175 test_o_p23pass2 |
|
2176 |
|
2177 |
|
2178 "Sections: 2.8 [23]" |
|
2179 "Description: |
|
2180 Test shows a valid XML declaration along with encoding declaration. " |
|
2181 |
|
2182 |
|
2183 self shouldnt:[ |
|
2184 "This test must pass in non-validating parser." |
|
2185 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p23pass2.xml')). |
|
2186 ] raise: Error. |
|
2187 |
|
2188 "Modified: / 25-10-2005 / 14:58:55 / janfrog" |
|
2189 ! |
|
2190 |
|
2191 test_o_p23pass3 |
|
2192 |
|
2193 |
|
2194 "Sections: 2.8 [23]" |
|
2195 "Description: |
|
2196 Test shows a valid XML declaration along with Standalone Document Declaration. " |
|
2197 |
|
2198 |
|
2199 self shouldnt:[ |
|
2200 "This test must pass in non-validating parser." |
|
2201 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p23pass3.xml')). |
|
2202 ] raise: Error. |
|
2203 |
|
2204 "Modified: / 25-10-2005 / 14:58:55 / janfrog" |
|
2205 ! |
|
2206 |
|
2207 test_o_p23pass4 |
|
2208 |
|
2209 |
|
2210 "Sections: 2.8 [23]" |
|
2211 "Description: |
|
2212 Test shows a valid XML declaration, encoding declarationand Standalone Document Declaration. " |
|
2213 |
|
2214 |
|
2215 self shouldnt:[ |
|
2216 "This test must pass in non-validating parser." |
|
2217 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p23pass4.xml')). |
|
2218 ] raise: Error. |
|
2219 |
|
2220 "Modified: / 25-10-2005 / 14:58:55 / janfrog" |
|
2221 ! |
|
2222 |
|
2223 test_o_p24fail1 |
|
2224 |
|
2225 |
|
2226 "Sections: 2.8 [24]" |
|
2227 "Description: |
|
2228 quote types must match |
|
2229 " |
|
2230 |
|
2231 |
|
2232 self should:[ |
|
2233 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p24fail1.xml')). |
|
2234 ] raise: SAXParseError. |
|
2235 |
|
2236 "Modified: / 25-10-2005 / 14:59:02 / janfrog" |
|
2237 ! |
|
2238 |
|
2239 test_o_p24fail2 |
|
2240 |
|
2241 |
|
2242 "Sections: 2.8 [24]" |
|
2243 "Description: |
|
2244 quote types must match |
|
2245 " |
|
2246 |
|
2247 |
|
2248 self should:[ |
|
2249 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p24fail2.xml')). |
|
2250 ] raise: SAXParseError. |
|
2251 |
|
2252 "Modified: / 25-10-2005 / 14:59:02 / janfrog" |
|
2253 ! |
|
2254 |
|
2255 test_o_p24pass1 |
|
2256 |
|
2257 |
|
2258 "Sections: 2.8 [24]" |
|
2259 "Description: |
|
2260 Test shows a prolog that has the VersionInfo delimited by double quotes. " |
|
2261 |
|
2262 |
|
2263 self shouldnt:[ |
|
2264 "This test must pass in non-validating parser." |
|
2265 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p24pass1.xml')). |
|
2266 ] raise: Error. |
|
2267 |
|
2268 "Modified: / 25-10-2005 / 14:58:55 / janfrog" |
|
2269 ! |
|
2270 |
|
2271 test_o_p24pass2 |
|
2272 |
|
2273 |
|
2274 "Sections: 2.8 [24]" |
|
2275 "Description: |
|
2276 Test shows a prolog that has the VersionInfo delimited by single quotes. " |
|
2277 |
|
2278 |
|
2279 self shouldnt:[ |
|
2280 "This test must pass in non-validating parser." |
|
2281 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p24pass2.xml')). |
|
2282 ] raise: Error. |
|
2283 |
|
2284 "Modified: / 25-10-2005 / 14:58:55 / janfrog" |
|
2285 ! |
|
2286 |
|
2287 test_o_p24pass3 |
|
2288 |
|
2289 |
|
2290 "Sections: 2.8 [24]" |
|
2291 "Description: |
|
2292 Test shows whitespace is allowed in prolog before version info. " |
|
2293 |
|
2294 |
|
2295 self shouldnt:[ |
|
2296 "This test must pass in non-validating parser." |
|
2297 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p24pass3.xml')). |
|
2298 ] raise: Error. |
|
2299 |
|
2300 "Modified: / 25-10-2005 / 14:58:55 / janfrog" |
|
2301 ! |
|
2302 |
|
2303 test_o_p24pass4 |
|
2304 |
|
2305 |
|
2306 "Sections: 2.8 [24]" |
|
2307 "Description: |
|
2308 Test shows whitespace is allowed in prolog on both sides of equal sign. " |
|
2309 |
|
2310 |
|
2311 self shouldnt:[ |
|
2312 "This test must pass in non-validating parser." |
|
2313 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p24pass4.xml')). |
|
2314 ] raise: Error. |
|
2315 |
|
2316 "Modified: / 25-10-2005 / 14:58:55 / janfrog" |
|
2317 ! |
|
2318 |
|
2319 test_o_p25fail1 |
|
2320 |
|
2321 |
|
2322 "Sections: 2.8 [25]" |
|
2323 "Description: |
|
2324 Comment is illegal in VersionInfo. " |
|
2325 |
|
2326 |
|
2327 self should:[ |
|
2328 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p25fail1.xml')). |
|
2329 ] raise: SAXParseError. |
|
2330 |
|
2331 "Modified: / 25-10-2005 / 14:59:02 / janfrog" |
|
2332 ! |
|
2333 |
|
2334 test_o_p25pass1 |
|
2335 |
|
2336 |
|
2337 "Sections: 2.8 [25]" |
|
2338 "Description: |
|
2339 Test shows whitespace is NOT necessary before or after equal sign of versioninfo. " |
|
2340 |
|
2341 |
|
2342 self shouldnt:[ |
|
2343 "This test must pass in non-validating parser." |
|
2344 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p25pass1.xml')). |
|
2345 ] raise: Error. |
|
2346 |
|
2347 "Modified: / 25-10-2005 / 14:58:55 / janfrog" |
|
2348 ! |
|
2349 |
|
2350 test_o_p25pass2 |
|
2351 |
|
2352 |
|
2353 "Sections: 2.8 [25]" |
|
2354 "Description: |
|
2355 Test shows whitespace can be used on both sides of equal sign of versioninfo. " |
|
2356 |
|
2357 |
|
2358 self shouldnt:[ |
|
2359 "This test must pass in non-validating parser." |
|
2360 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p25pass2.xml')). |
|
2361 ] raise: Error. |
|
2362 |
|
2363 "Modified: / 25-10-2005 / 14:58:55 / janfrog" |
|
2364 ! |
|
2365 |
|
2366 test_o_p26fail1 |
|
2367 |
|
2368 |
|
2369 "Sections: 2.8 [26]" |
|
2370 "Description: |
|
2371 Illegal character in VersionNum. " |
|
2372 |
|
2373 |
|
2374 self should:[ |
|
2375 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p26fail1.xml')). |
|
2376 ] raise: SAXParseError. |
|
2377 |
|
2378 "Modified: / 25-10-2005 / 14:59:02 / janfrog" |
|
2379 ! |
|
2380 |
|
2381 test_o_p26fail2 |
|
2382 |
|
2383 |
|
2384 "Sections: 2.8 [26]" |
|
2385 "Description: |
|
2386 Illegal character in VersionNum. " |
|
2387 |
|
2388 |
|
2389 self should:[ |
|
2390 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p26fail2.xml')). |
|
2391 ] raise: SAXParseError. |
|
2392 |
|
2393 "Modified: / 25-10-2005 / 14:59:02 / janfrog" |
|
2394 ! |
|
2395 |
|
2396 test_o_p26pass1 |
|
2397 |
|
2398 |
|
2399 "Sections: 2.8 [26]" |
|
2400 "Description: |
|
2401 The valid version number. We cannot test others because |
|
2402 a 1.0 processor is allowed to fail them. |
|
2403 " |
|
2404 |
|
2405 |
|
2406 self shouldnt:[ |
|
2407 "This test must pass in non-validating parser." |
|
2408 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p26pass1.xml')). |
|
2409 ] raise: Error. |
|
2410 |
|
2411 "Modified: / 25-10-2005 / 14:58:55 / janfrog" |
|
2412 ! |
|
2413 |
|
2414 test_o_p27fail1 |
|
2415 |
|
2416 |
|
2417 "Sections: 2.8 [27]" |
|
2418 "Description: |
|
2419 References aren't allowed in Misc, |
|
2420 even if they would resolve to valid Misc. |
|
2421 " |
|
2422 |
|
2423 |
|
2424 self should:[ |
|
2425 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p27fail1.xml')). |
|
2426 ] raise: SAXParseError. |
|
2427 |
|
2428 "Modified: / 25-10-2005 / 14:59:02 / janfrog" |
|
2429 ! |
|
2430 |
|
2431 test_o_p27pass1 |
|
2432 |
|
2433 |
|
2434 "Sections: 2.8 [27]" |
|
2435 "Description: |
|
2436 Comments are valid as the Misc part of the prolog. " |
|
2437 |
|
2438 |
|
2439 self shouldnt:[ |
|
2440 "This test must pass in non-validating parser." |
|
2441 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p27pass1.xml')). |
|
2442 ] raise: Error. |
|
2443 |
|
2444 "Modified: / 25-10-2005 / 14:58:55 / janfrog" |
|
2445 ! |
|
2446 |
|
2447 test_o_p27pass2 |
|
2448 |
|
2449 |
|
2450 "Sections: 2.8 [27]" |
|
2451 "Description: |
|
2452 Processing Instructions are valid as the Misc part of the prolog. " |
|
2453 |
|
2454 |
|
2455 self shouldnt:[ |
|
2456 "This test must pass in non-validating parser." |
|
2457 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p27pass2.xml')). |
|
2458 ] raise: Error. |
|
2459 |
|
2460 "Modified: / 25-10-2005 / 14:58:55 / janfrog" |
|
2461 ! |
|
2462 |
|
2463 test_o_p27pass3 |
|
2464 |
|
2465 |
|
2466 "Sections: 2.8 [27]" |
|
2467 "Description: |
|
2468 Whitespace is valid as the Misc part of the prolog. " |
|
2469 |
|
2470 |
|
2471 self shouldnt:[ |
|
2472 "This test must pass in non-validating parser." |
|
2473 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p27pass3.xml')). |
|
2474 ] raise: Error. |
|
2475 |
|
2476 "Modified: / 25-10-2005 / 14:58:55 / janfrog" |
|
2477 ! |
|
2478 |
|
2479 test_o_p27pass4 |
|
2480 |
|
2481 |
|
2482 "Sections: 2.8 [27]" |
|
2483 "Description: |
|
2484 A combination of comments, whitespaces and processing instructions are valid as the Misc part of the prolog. " |
|
2485 |
|
2486 |
|
2487 self shouldnt:[ |
|
2488 "This test must pass in non-validating parser." |
|
2489 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p27pass4.xml')). |
|
2490 ] raise: Error. |
|
2491 |
|
2492 "Modified: / 25-10-2005 / 14:58:55 / janfrog" |
|
2493 ! |
|
2494 |
|
2495 test_o_p28fail1 |
|
2496 |
|
2497 |
|
2498 "Sections: 2.8 [28]" |
|
2499 "Description: |
|
2500 only declarations in DTD. |
|
2501 " |
|
2502 |
|
2503 |
|
2504 self should:[ |
|
2505 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p28fail1.xml')). |
|
2506 ] raise: SAXParseError. |
|
2507 |
|
2508 "Modified: / 25-10-2005 / 14:59:02 / janfrog" |
|
2509 ! |
|
2510 |
|
2511 test_o_p28pass1 |
|
2512 |
|
2513 |
|
2514 "Sections: 3.1 [43] [44]" |
|
2515 "Description: |
|
2516 Empty-element tag must be used for element which are declared EMPTY. " |
|
2517 |
|
2518 |
|
2519 self shouldnt:[ |
|
2520 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p28pass1.xml')). |
|
2521 ] raise: Error. |
|
2522 |
|
2523 "Modified: / 25-10-2005 / 14:58:53 / janfrog" |
|
2524 ! |
|
2525 |
|
2526 test_o_p28pass3 |
|
2527 |
|
2528 |
|
2529 "Sections: 2.8 4.1 [28] [69]" |
|
2530 "Description: |
|
2531 Valid doctypedecl with Parameter entity reference. The declaration of a parameter entity must precede any reference to it. " |
|
2532 |
|
2533 |
|
2534 self shouldnt:[ |
|
2535 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p28pass3.xml')). |
|
2536 ] raise: Error. |
|
2537 |
|
2538 "Modified: / 25-10-2005 / 14:58:53 / janfrog" |
|
2539 ! |
|
2540 |
|
2541 test_o_p28pass4 |
|
2542 |
|
2543 |
|
2544 "Sections: 2.8 4.2.2 [28] [75]" |
|
2545 "Description: |
|
2546 Valid doctypedecl with ExternalID as an External Entity declaration. " |
|
2547 |
|
2548 |
|
2549 self shouldnt:[ |
|
2550 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p28pass4.xml')). |
|
2551 ] raise: Error. |
|
2552 |
|
2553 "Modified: / 25-10-2005 / 14:58:53 / janfrog" |
|
2554 ! |
|
2555 |
|
2556 test_o_p28pass5 |
|
2557 |
|
2558 |
|
2559 "Sections: 2.8 4.1 [28] [69]" |
|
2560 "Description: |
|
2561 Valid doctypedecl with ExternalID as an External Entity. A parameter entity reference is also used. " |
|
2562 |
|
2563 |
|
2564 self shouldnt:[ |
|
2565 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p28pass5.xml')). |
|
2566 ] raise: Error. |
|
2567 |
|
2568 "Modified: / 25-10-2005 / 14:58:53 / janfrog" |
|
2569 ! |
|
2570 |
|
2571 test_o_p29fail1 |
|
2572 |
|
2573 |
|
2574 "Sections: 2.8 [29]" |
|
2575 "Description: |
|
2576 A processor must not pass unknown declaration types. |
|
2577 " |
|
2578 |
|
2579 |
|
2580 self should:[ |
|
2581 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p29fail1.xml')). |
|
2582 ] raise: SAXParseError. |
|
2583 |
|
2584 "Modified: / 25-10-2005 / 14:59:02 / janfrog" |
|
2585 ! |
|
2586 |
|
2587 test_o_p29pass1 |
|
2588 |
|
2589 |
|
2590 "Sections: 2.8 [29]" |
|
2591 "Description: |
|
2592 Valid types of markupdecl. |
|
2593 " |
|
2594 |
|
2595 |
|
2596 self shouldnt:[ |
|
2597 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p29pass1.xml')). |
|
2598 ] raise: Error. |
|
2599 |
|
2600 "Modified: / 25-10-2005 / 14:58:53 / janfrog" |
|
2601 ! |
|
2602 |
|
2603 test_o_p30fail1 |
|
2604 |
|
2605 |
|
2606 "Sections: 2.8 [30]" |
|
2607 "Description: |
|
2608 An XML declaration is not the same as a TextDecl |
|
2609 " |
|
2610 |
|
2611 |
|
2612 self should:[ |
|
2613 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p30fail1.xml')). |
|
2614 ] raise: SAXParseError. |
|
2615 |
|
2616 "Modified: / 25-10-2005 / 14:59:02 / janfrog" |
|
2617 ! |
|
2618 |
|
2619 test_o_p30pass1 |
|
2620 |
|
2621 |
|
2622 "Sections: 2.8 4.2.2 [30] [75]" |
|
2623 "Description: |
|
2624 Valid doctypedecl with ExternalID as an External Entity. The external entity has an element declaration. " |
|
2625 |
|
2626 |
|
2627 self shouldnt:[ |
|
2628 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p30pass1.xml')). |
|
2629 ] raise: Error. |
|
2630 |
|
2631 "Modified: / 25-10-2005 / 14:58:53 / janfrog" |
|
2632 ! |
|
2633 |
|
2634 test_o_p30pass2 |
|
2635 |
|
2636 |
|
2637 "Sections: 2.8 4.2.2 4.3.1 [30] [75] [77]" |
|
2638 "Description: |
|
2639 Valid doctypedecl with ExternalID as an Enternal Entity. The external entity begins with a Text Declaration. " |
|
2640 |
|
2641 |
|
2642 self shouldnt:[ |
|
2643 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p30pass2.xml')). |
|
2644 ] raise: Error. |
|
2645 |
|
2646 "Modified: / 25-10-2005 / 14:58:53 / janfrog" |
|
2647 ! |
|
2648 |
|
2649 test_o_p31fail1 |
|
2650 |
|
2651 |
|
2652 "Sections: 2.8 [31]" |
|
2653 "Description: |
|
2654 external subset excludes doctypedecl |
|
2655 " |
|
2656 |
|
2657 |
|
2658 self should:[ |
|
2659 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p31fail1.xml')). |
|
2660 ] raise: SAXParseError. |
|
2661 |
|
2662 "Modified: / 25-10-2005 / 14:59:02 / janfrog" |
|
2663 ! |
|
2664 |
|
2665 test_o_p31pass1 |
|
2666 |
|
2667 |
|
2668 "Sections: 2.8 [31]" |
|
2669 "Description: |
|
2670 external subset can be empty |
|
2671 " |
|
2672 |
|
2673 |
|
2674 self shouldnt:[ |
|
2675 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p31pass1.xml')). |
|
2676 ] raise: Error. |
|
2677 |
|
2678 "Modified: / 25-10-2005 / 14:58:53 / janfrog" |
|
2679 ! |
|
2680 |
|
2681 test_o_p31pass2 |
|
2682 |
|
2683 |
|
2684 "Sections: 2.8 3.4 4.2.2 [31] [62] [63] [75]" |
|
2685 "Description: |
|
2686 Valid doctypedecl with EXternalID as Enternal Entity. The external entity contains a parameter entity reference and condtional sections." |
|
2687 |
|
2688 |
|
2689 self shouldnt:[ |
|
2690 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p31pass2.xml')). |
|
2691 ] raise: Error. |
|
2692 |
|
2693 "Modified: / 25-10-2005 / 14:58:53 / janfrog" |
|
2694 ! |
|
2695 |
|
2696 test_o_p32fail1 |
|
2697 |
|
2698 |
|
2699 "Sections: 2.9 [32]" |
|
2700 "Description: |
|
2701 quote types must match |
|
2702 " |
|
2703 |
|
2704 |
|
2705 self should:[ |
|
2706 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p32fail1.xml')). |
|
2707 ] raise: SAXParseError. |
|
2708 |
|
2709 "Modified: / 25-10-2005 / 14:59:02 / janfrog" |
|
2710 ! |
|
2711 |
|
2712 test_o_p32fail2 |
|
2713 |
|
2714 |
|
2715 "Sections: 2.9 [32]" |
|
2716 "Description: |
|
2717 quote types must match |
|
2718 " |
|
2719 |
|
2720 |
|
2721 self should:[ |
|
2722 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p32fail2.xml')). |
|
2723 ] raise: SAXParseError. |
|
2724 |
|
2725 "Modified: / 25-10-2005 / 14:59:02 / janfrog" |
|
2726 ! |
|
2727 |
|
2728 test_o_p32fail3 |
|
2729 |
|
2730 |
|
2731 "Sections: 2.9 [32]" |
|
2732 "Description: |
|
2733 initial S is required |
|
2734 " |
|
2735 |
|
2736 |
|
2737 self should:[ |
|
2738 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p32fail3.xml')). |
|
2739 ] raise: SAXParseError. |
|
2740 |
|
2741 "Modified: / 25-10-2005 / 14:59:02 / janfrog" |
|
2742 ! |
|
2743 |
|
2744 test_o_p32fail4 |
|
2745 |
|
2746 |
|
2747 "Sections: 2.9 [32]" |
|
2748 "Description: |
|
2749 quotes are required |
|
2750 " |
|
2751 |
|
2752 |
|
2753 self should:[ |
|
2754 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p32fail4.xml')). |
|
2755 ] raise: SAXParseError. |
|
2756 |
|
2757 "Modified: / 25-10-2005 / 14:59:02 / janfrog" |
|
2758 ! |
|
2759 |
|
2760 test_o_p32fail5 |
|
2761 |
|
2762 |
|
2763 "Sections: 2.9 [32]" |
|
2764 "Description: |
|
2765 yes or no must be lower case |
|
2766 " |
|
2767 |
|
2768 |
|
2769 self should:[ |
|
2770 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p32fail5.xml')). |
|
2771 ] raise: SAXParseError. |
|
2772 |
|
2773 "Modified: / 25-10-2005 / 14:59:02 / janfrog" |
|
2774 ! |
|
2775 |
|
2776 test_o_p32pass1 |
|
2777 |
|
2778 |
|
2779 "Sections: 2.9 [32]" |
|
2780 "Description: |
|
2781 Double quotes can be used as delimeters for the value of a Standalone Document Declaration. " |
|
2782 |
|
2783 |
|
2784 self shouldnt:[ |
|
2785 "This test must pass in non-validating parser." |
|
2786 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p32pass1.xml')). |
|
2787 ] raise: Error. |
|
2788 |
|
2789 "Modified: / 25-10-2005 / 14:58:56 / janfrog" |
|
2790 ! |
|
2791 |
|
2792 test_o_p32pass2 |
|
2793 |
|
2794 |
|
2795 "Sections: 2.9 [32]" |
|
2796 "Description: |
|
2797 Single quotes can be used as delimeters for the value of a Standalone Document Declaration. " |
|
2798 |
|
2799 |
|
2800 self shouldnt:[ |
|
2801 "This test must pass in non-validating parser." |
|
2802 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p32pass2.xml')). |
|
2803 ] raise: Error. |
|
2804 |
|
2805 "Modified: / 25-10-2005 / 14:58:56 / janfrog" |
|
2806 ! |
|
2807 |
|
2808 test_o_p39fail1 |
|
2809 |
|
2810 |
|
2811 "Sections: 3 [39]" |
|
2812 "Description: |
|
2813 start-tag requires end-tag |
|
2814 " |
|
2815 |
|
2816 |
|
2817 self should:[ |
|
2818 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p39fail1.xml')). |
|
2819 ] raise: SAXParseError. |
|
2820 |
|
2821 "Modified: / 25-10-2005 / 14:59:03 / janfrog" |
|
2822 ! |
|
2823 |
|
2824 test_o_p39fail2 |
|
2825 |
|
2826 |
|
2827 "Sections: 3 [39]" |
|
2828 "Description: |
|
2829 end-tag requires start-tag |
|
2830 " |
|
2831 |
|
2832 |
|
2833 self should:[ |
|
2834 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p39fail2.xml')). |
|
2835 ] raise: SAXParseError. |
|
2836 |
|
2837 "Modified: / 25-10-2005 / 14:59:03 / janfrog" |
|
2838 ! |
|
2839 |
|
2840 test_o_p39fail3 |
|
2841 |
|
2842 |
|
2843 "Sections: 3 [39]" |
|
2844 "Description: |
|
2845 XML documents contain one or more elements" |
|
2846 |
|
2847 |
|
2848 self should:[ |
|
2849 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p39fail3.xml')). |
|
2850 ] raise: SAXParseError. |
|
2851 |
|
2852 "Modified: / 25-10-2005 / 14:59:03 / janfrog" |
|
2853 ! |
|
2854 |
|
2855 test_o_p39fail4 |
|
2856 |
|
2857 |
|
2858 "Sections: 2.8 [23]" |
|
2859 "Description: |
|
2860 XML declarations must be correctly terminated " |
|
2861 |
|
2862 |
|
2863 self should:[ |
|
2864 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p39fail4.xml')). |
|
2865 ] raise: SAXParseError. |
|
2866 |
|
2867 "Modified: / 25-10-2005 / 14:59:03 / janfrog" |
|
2868 ! |
|
2869 |
|
2870 test_o_p39fail5 |
|
2871 |
|
2872 |
|
2873 "Sections: 2.8 [23]" |
|
2874 "Description: |
|
2875 XML declarations must be correctly terminated " |
|
2876 |
|
2877 |
|
2878 self should:[ |
|
2879 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p39fail5.xml')). |
|
2880 ] raise: SAXParseError. |
|
2881 |
|
2882 "Modified: / 25-10-2005 / 14:59:03 / janfrog" |
|
2883 ! |
|
2884 |
|
2885 test_o_p39pass1 |
|
2886 |
|
2887 |
|
2888 "Sections: 3 3.1 [39] [44]" |
|
2889 "Description: |
|
2890 Empty element tag may be used for any element which has no content. " |
|
2891 |
|
2892 |
|
2893 self shouldnt:[ |
|
2894 "This test must pass in non-validating parser." |
|
2895 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p39pass1.xml')). |
|
2896 ] raise: Error. |
|
2897 |
|
2898 "Modified: / 25-10-2005 / 14:58:56 / janfrog" |
|
2899 ! |
|
2900 |
|
2901 test_o_p39pass2 |
|
2902 |
|
2903 |
|
2904 "Sections: 3 3.1 [39] [43]" |
|
2905 "Description: |
|
2906 Character data is valid element content. " |
|
2907 |
|
2908 |
|
2909 self shouldnt:[ |
|
2910 "This test must pass in non-validating parser." |
|
2911 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p39pass2.xml')). |
|
2912 ] raise: Error. |
|
2913 |
|
2914 "Modified: / 25-10-2005 / 14:58:56 / janfrog" |
|
2915 ! |
|
2916 |
|
2917 test_o_p40fail1 |
|
2918 |
|
2919 |
|
2920 "Sections: 3.1 [40]" |
|
2921 "Description: |
|
2922 S is required between attributes |
|
2923 " |
|
2924 |
|
2925 |
|
2926 self should:[ |
|
2927 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p40fail1.xml')). |
|
2928 ] raise: SAXParseError. |
|
2929 |
|
2930 "Modified: / 25-10-2005 / 14:59:03 / janfrog" |
|
2931 ! |
|
2932 |
|
2933 test_o_p40fail2 |
|
2934 |
|
2935 |
|
2936 "Sections: 3.1 [40]" |
|
2937 "Description: |
|
2938 tags start with names, not nmtokens |
|
2939 " |
|
2940 |
|
2941 |
|
2942 self should:[ |
|
2943 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p40fail2.xml')). |
|
2944 ] raise: SAXParseError. |
|
2945 |
|
2946 "Modified: / 25-10-2005 / 14:59:03 / janfrog" |
|
2947 ! |
|
2948 |
|
2949 test_o_p40fail3 |
|
2950 |
|
2951 |
|
2952 "Sections: 3.1 [40]" |
|
2953 "Description: |
|
2954 tags start with names, not nmtokens |
|
2955 " |
|
2956 |
|
2957 |
|
2958 self should:[ |
|
2959 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p40fail3.xml')). |
|
2960 ] raise: SAXParseError. |
|
2961 |
|
2962 "Modified: / 25-10-2005 / 14:59:03 / janfrog" |
|
2963 ! |
|
2964 |
|
2965 test_o_p40fail4 |
|
2966 |
|
2967 |
|
2968 "Sections: 3.1 [40]" |
|
2969 "Description: |
|
2970 no space before name |
|
2971 " |
|
2972 |
|
2973 |
|
2974 self should:[ |
|
2975 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p40fail4.xml')). |
|
2976 ] raise: SAXParseError. |
|
2977 |
|
2978 "Modified: / 25-10-2005 / 14:59:03 / janfrog" |
|
2979 ! |
|
2980 |
|
2981 test_o_p40pass1 |
|
2982 |
|
2983 |
|
2984 "Sections: 3.1 [40]" |
|
2985 "Description: |
|
2986 Elements content can be empty. " |
|
2987 |
|
2988 |
|
2989 self shouldnt:[ |
|
2990 "This test must pass in non-validating parser." |
|
2991 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p40pass1.xml')). |
|
2992 ] raise: Error. |
|
2993 |
|
2994 "Modified: / 25-10-2005 / 14:58:56 / janfrog" |
|
2995 ! |
|
2996 |
|
2997 test_o_p40pass2 |
|
2998 |
|
2999 |
|
3000 "Sections: 3.1 [40]" |
|
3001 "Description: |
|
3002 Whitespace is valid within a Start-tag. " |
|
3003 |
|
3004 |
|
3005 self shouldnt:[ |
|
3006 "This test must pass in non-validating parser." |
|
3007 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p40pass2.xml')). |
|
3008 ] raise: Error. |
|
3009 |
|
3010 "Modified: / 25-10-2005 / 14:58:56 / janfrog" |
|
3011 ! |
|
3012 |
|
3013 test_o_p40pass3 |
|
3014 |
|
3015 |
|
3016 "Sections: 3.1 [40] [41]" |
|
3017 "Description: |
|
3018 Attributes are valid within a Start-tag. " |
|
3019 |
|
3020 |
|
3021 self shouldnt:[ |
|
3022 "This test must pass in non-validating parser." |
|
3023 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p40pass3.xml')). |
|
3024 ] raise: Error. |
|
3025 |
|
3026 "Modified: / 25-10-2005 / 14:58:56 / janfrog" |
|
3027 ! |
|
3028 |
|
3029 test_o_p40pass4 |
|
3030 |
|
3031 |
|
3032 "Sections: 3.1 [40]" |
|
3033 "Description: |
|
3034 Whitespace and Multiple Attributes are valid within a Start-tag. " |
|
3035 |
|
3036 |
|
3037 self shouldnt:[ |
|
3038 "This test must pass in non-validating parser." |
|
3039 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p40pass4.xml')). |
|
3040 ] raise: Error. |
|
3041 |
|
3042 "Modified: / 25-10-2005 / 14:58:56 / janfrog" |
|
3043 ! |
|
3044 |
|
3045 test_o_p41fail1 |
|
3046 |
|
3047 |
|
3048 "Sections: 3.1 [41]" |
|
3049 "Description: |
|
3050 quotes are required (contrast with SGML) |
|
3051 " |
|
3052 |
|
3053 |
|
3054 self should:[ |
|
3055 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p41fail1.xml')). |
|
3056 ] raise: SAXParseError. |
|
3057 |
|
3058 "Modified: / 25-10-2005 / 14:59:03 / janfrog" |
|
3059 ! |
|
3060 |
|
3061 test_o_p41fail2 |
|
3062 |
|
3063 |
|
3064 "Sections: 3.1 [41]" |
|
3065 "Description: |
|
3066 attribute name is required (contrast with SGML) |
|
3067 " |
|
3068 |
|
3069 |
|
3070 self should:[ |
|
3071 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p41fail2.xml')). |
|
3072 ] raise: SAXParseError. |
|
3073 |
|
3074 "Modified: / 25-10-2005 / 14:59:03 / janfrog" |
|
3075 ! |
|
3076 |
|
3077 test_o_p41fail3 |
|
3078 |
|
3079 |
|
3080 "Sections: 3.1 [41]" |
|
3081 "Description: |
|
3082 Eq required |
|
3083 " |
|
3084 |
|
3085 |
|
3086 self should:[ |
|
3087 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p41fail3.xml')). |
|
3088 ] raise: SAXParseError. |
|
3089 |
|
3090 "Modified: / 25-10-2005 / 14:59:03 / janfrog" |
|
3091 ! |
|
3092 |
|
3093 test_o_p41pass1 |
|
3094 |
|
3095 |
|
3096 "Sections: 3.1 [41]" |
|
3097 "Description: |
|
3098 Attributes are valid within a Start-tag. " |
|
3099 |
|
3100 |
|
3101 self shouldnt:[ |
|
3102 "This test must pass in non-validating parser." |
|
3103 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p41pass1.xml')). |
|
3104 ] raise: Error. |
|
3105 |
|
3106 "Modified: / 25-10-2005 / 14:58:56 / janfrog" |
|
3107 ! |
|
3108 |
|
3109 test_o_p41pass2 |
|
3110 |
|
3111 |
|
3112 "Sections: 3.1 [41]" |
|
3113 "Description: |
|
3114 Whitespace is valid within a Start-tags Attribute. " |
|
3115 |
|
3116 |
|
3117 self shouldnt:[ |
|
3118 "This test must pass in non-validating parser." |
|
3119 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p41pass2.xml')). |
|
3120 ] raise: Error. |
|
3121 |
|
3122 "Modified: / 25-10-2005 / 14:58:56 / janfrog" |
|
3123 ! |
|
3124 |
|
3125 test_o_p42fail1 |
|
3126 |
|
3127 |
|
3128 "Sections: 3.1 [42]" |
|
3129 "Description: |
|
3130 no space before name |
|
3131 " |
|
3132 |
|
3133 |
|
3134 self should:[ |
|
3135 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p42fail1.xml')). |
|
3136 ] raise: SAXParseError. |
|
3137 |
|
3138 "Modified: / 25-10-2005 / 14:59:03 / janfrog" |
|
3139 ! |
|
3140 |
|
3141 test_o_p42fail2 |
|
3142 |
|
3143 |
|
3144 "Sections: 3.1 [42]" |
|
3145 "Description: |
|
3146 cannot end with `/>` |
|
3147 " |
|
3148 |
|
3149 |
|
3150 self should:[ |
|
3151 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p42fail2.xml')). |
|
3152 ] raise: SAXParseError. |
|
3153 |
|
3154 "Modified: / 25-10-2005 / 14:59:03 / janfrog" |
|
3155 ! |
|
3156 |
|
3157 test_o_p42fail3 |
|
3158 |
|
3159 |
|
3160 "Sections: 3.1 [42]" |
|
3161 "Description: |
|
3162 no NET (contrast with SGML) |
|
3163 " |
|
3164 |
|
3165 |
|
3166 self should:[ |
|
3167 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p42fail3.xml')). |
|
3168 ] raise: SAXParseError. |
|
3169 |
|
3170 "Modified: / 25-10-2005 / 14:59:03 / janfrog" |
|
3171 ! |
|
3172 |
|
3173 test_o_p42pass1 |
|
3174 |
|
3175 |
|
3176 "Sections: 3.1 [42]" |
|
3177 "Description: |
|
3178 Test shows proper syntax for an End-tag. " |
|
3179 |
|
3180 |
|
3181 self shouldnt:[ |
|
3182 "This test must pass in non-validating parser." |
|
3183 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p42pass1.xml')). |
|
3184 ] raise: Error. |
|
3185 |
|
3186 "Modified: / 25-10-2005 / 14:58:56 / janfrog" |
|
3187 ! |
|
3188 |
|
3189 test_o_p42pass2 |
|
3190 |
|
3191 |
|
3192 "Sections: 3.1 [42]" |
|
3193 "Description: |
|
3194 Whitespace is valid after name in End-tag. " |
|
3195 |
|
3196 |
|
3197 self shouldnt:[ |
|
3198 "This test must pass in non-validating parser." |
|
3199 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p42pass2.xml')). |
|
3200 ] raise: Error. |
|
3201 |
|
3202 "Modified: / 25-10-2005 / 14:58:56 / janfrog" |
|
3203 ! |
|
3204 |
|
3205 test_o_p43fail1 |
|
3206 |
|
3207 |
|
3208 "Sections: 3.1 [43]" |
|
3209 "Description: |
|
3210 no non-comment declarations |
|
3211 " |
|
3212 |
|
3213 |
|
3214 self should:[ |
|
3215 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p43fail1.xml')). |
|
3216 ] raise: SAXParseError. |
|
3217 |
|
3218 "Modified: / 25-10-2005 / 14:59:03 / janfrog" |
|
3219 ! |
|
3220 |
|
3221 test_o_p43fail2 |
|
3222 |
|
3223 |
|
3224 "Sections: 3.1 [43]" |
|
3225 "Description: |
|
3226 no conditional sections |
|
3227 " |
|
3228 |
|
3229 |
|
3230 self should:[ |
|
3231 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p43fail2.xml')). |
|
3232 ] raise: SAXParseError. |
|
3233 |
|
3234 "Modified: / 25-10-2005 / 14:59:03 / janfrog" |
|
3235 ! |
|
3236 |
|
3237 test_o_p43fail3 |
|
3238 |
|
3239 |
|
3240 "Sections: 3.1 [43]" |
|
3241 "Description: |
|
3242 no conditional sections |
|
3243 " |
|
3244 |
|
3245 |
|
3246 self should:[ |
|
3247 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p43fail3.xml')). |
|
3248 ] raise: SAXParseError. |
|
3249 |
|
3250 "Modified: / 25-10-2005 / 14:59:03 / janfrog" |
|
3251 ! |
|
3252 |
|
3253 test_o_p43pass1 |
|
3254 |
|
3255 |
|
3256 "Sections: 2.4 2.5 2.6 2.7 [15] [16] [18]" |
|
3257 "Description: |
|
3258 Valid use of character data, comments, processing instructions and CDATA sections within the start and end tag. " |
|
3259 |
|
3260 |
|
3261 self shouldnt:[ |
|
3262 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p43pass1.xml')). |
|
3263 ] raise: Error. |
|
3264 |
|
3265 "Modified: / 25-10-2005 / 14:58:53 / janfrog" |
|
3266 ! |
|
3267 |
|
3268 test_o_p44fail1 |
|
3269 |
|
3270 |
|
3271 "Sections: 3.1 [44]" |
|
3272 "Description: |
|
3273 Illegal space before Empty element tag. " |
|
3274 |
|
3275 |
|
3276 self should:[ |
|
3277 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p44fail1.xml')). |
|
3278 ] raise: SAXParseError. |
|
3279 |
|
3280 "Modified: / 25-10-2005 / 14:59:03 / janfrog" |
|
3281 ! |
|
3282 |
|
3283 test_o_p44fail2 |
|
3284 |
|
3285 |
|
3286 "Sections: 3.1 [44]" |
|
3287 "Description: |
|
3288 Illegal space after Empty element tag. " |
|
3289 |
|
3290 |
|
3291 self should:[ |
|
3292 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p44fail2.xml')). |
|
3293 ] raise: SAXParseError. |
|
3294 |
|
3295 "Modified: / 25-10-2005 / 14:59:03 / janfrog" |
|
3296 ! |
|
3297 |
|
3298 test_o_p44fail3 |
|
3299 |
|
3300 |
|
3301 "Sections: 3.1 [44]" |
|
3302 "Description: |
|
3303 Illegal comment in Empty element tag. " |
|
3304 |
|
3305 |
|
3306 self should:[ |
|
3307 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p44fail3.xml')). |
|
3308 ] raise: SAXParseError. |
|
3309 |
|
3310 "Modified: / 25-10-2005 / 14:59:04 / janfrog" |
|
3311 ! |
|
3312 |
|
3313 test_o_p44fail4 |
|
3314 |
|
3315 |
|
3316 "Sections: 3.1 [44]" |
|
3317 "Description: |
|
3318 Whitespace required between attributes. " |
|
3319 |
|
3320 |
|
3321 self should:[ |
|
3322 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p44fail4.xml')). |
|
3323 ] raise: SAXParseError. |
|
3324 |
|
3325 "Modified: / 25-10-2005 / 14:59:04 / janfrog" |
|
3326 ! |
|
3327 |
|
3328 test_o_p44fail5 |
|
3329 |
|
3330 |
|
3331 "Sections: 3.1 [44]" |
|
3332 "Description: |
|
3333 Duplicate attribute name is illegal. " |
|
3334 |
|
3335 |
|
3336 self should:[ |
|
3337 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p44fail5.xml')). |
|
3338 ] raise: SAXParseError. |
|
3339 |
|
3340 "Modified: / 25-10-2005 / 14:59:04 / janfrog" |
|
3341 ! |
|
3342 |
|
3343 test_o_p44pass1 |
|
3344 |
|
3345 |
|
3346 "Sections: 3.1 [44]" |
|
3347 "Description: |
|
3348 Valid display of an Empty Element Tag. " |
|
3349 |
|
3350 |
|
3351 self shouldnt:[ |
|
3352 "This test must pass in non-validating parser." |
|
3353 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p44pass1.xml')). |
|
3354 ] raise: Error. |
|
3355 |
|
3356 "Modified: / 25-10-2005 / 14:58:56 / janfrog" |
|
3357 ! |
|
3358 |
|
3359 test_o_p44pass2 |
|
3360 |
|
3361 |
|
3362 "Sections: 3.1 [44]" |
|
3363 "Description: |
|
3364 Empty Element Tags can contain an Attribute. " |
|
3365 |
|
3366 |
|
3367 self shouldnt:[ |
|
3368 "This test must pass in non-validating parser." |
|
3369 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p44pass2.xml')). |
|
3370 ] raise: Error. |
|
3371 |
|
3372 "Modified: / 25-10-2005 / 14:58:56 / janfrog" |
|
3373 ! |
|
3374 |
|
3375 test_o_p44pass3 |
|
3376 |
|
3377 |
|
3378 "Sections: 3.1 [44]" |
|
3379 "Description: |
|
3380 Whitespace is valid in an Empty Element Tag following the end of the attribute value. " |
|
3381 |
|
3382 |
|
3383 self shouldnt:[ |
|
3384 "This test must pass in non-validating parser." |
|
3385 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p44pass3.xml')). |
|
3386 ] raise: Error. |
|
3387 |
|
3388 "Modified: / 25-10-2005 / 14:58:56 / janfrog" |
|
3389 ! |
|
3390 |
|
3391 test_o_p44pass4 |
|
3392 |
|
3393 |
|
3394 "Sections: 3.1 [44]" |
|
3395 "Description: |
|
3396 Whitespace is valid after the name in an Empty Element Tag. " |
|
3397 |
|
3398 |
|
3399 self shouldnt:[ |
|
3400 "This test must pass in non-validating parser." |
|
3401 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p44pass4.xml')). |
|
3402 ] raise: Error. |
|
3403 |
|
3404 "Modified: / 25-10-2005 / 14:58:56 / janfrog" |
|
3405 ! |
|
3406 |
|
3407 test_o_p44pass5 |
|
3408 |
|
3409 |
|
3410 "Sections: 3.1 [44]" |
|
3411 "Description: |
|
3412 Whitespace and Multiple Attributes are valid in an Empty Element Tag. " |
|
3413 |
|
3414 |
|
3415 self shouldnt:[ |
|
3416 "This test must pass in non-validating parser." |
|
3417 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p44pass5.xml')). |
|
3418 ] raise: Error. |
|
3419 |
|
3420 "Modified: / 25-10-2005 / 14:58:56 / janfrog" |
|
3421 ! |
|
3422 |
|
3423 test_o_p45fail1 |
|
3424 |
|
3425 |
|
3426 "Sections: 3.2 [45]" |
|
3427 "Description: |
|
3428 ELEMENT must be upper case. |
|
3429 " |
|
3430 |
|
3431 |
|
3432 self should:[ |
|
3433 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p45fail1.xml')). |
|
3434 ] raise: SAXParseError. |
|
3435 |
|
3436 "Modified: / 25-10-2005 / 14:59:04 / janfrog" |
|
3437 ! |
|
3438 |
|
3439 test_o_p45fail2 |
|
3440 |
|
3441 |
|
3442 "Sections: 3.2 [45]" |
|
3443 "Description: |
|
3444 S before contentspec is required. |
|
3445 " |
|
3446 |
|
3447 |
|
3448 self should:[ |
|
3449 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p45fail2.xml')). |
|
3450 ] raise: SAXParseError. |
|
3451 |
|
3452 "Modified: / 25-10-2005 / 14:59:04 / janfrog" |
|
3453 ! |
|
3454 |
|
3455 test_o_p45fail3 |
|
3456 |
|
3457 |
|
3458 "Sections: 3.2 [45]" |
|
3459 "Description: |
|
3460 only one content spec |
|
3461 " |
|
3462 |
|
3463 |
|
3464 self should:[ |
|
3465 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p45fail3.xml')). |
|
3466 ] raise: SAXParseError. |
|
3467 |
|
3468 "Modified: / 25-10-2005 / 14:59:04 / janfrog" |
|
3469 ! |
|
3470 |
|
3471 test_o_p45fail4 |
|
3472 |
|
3473 |
|
3474 "Sections: 3.2 [45]" |
|
3475 "Description: |
|
3476 no comments in declarations (contrast with SGML) |
|
3477 " |
|
3478 |
|
3479 |
|
3480 self should:[ |
|
3481 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p45fail4.xml')). |
|
3482 ] raise: SAXParseError. |
|
3483 |
|
3484 "Modified: / 25-10-2005 / 14:59:04 / janfrog" |
|
3485 ! |
|
3486 |
|
3487 test_o_p45pass1 |
|
3488 |
|
3489 |
|
3490 "Sections: 3.2 [45]" |
|
3491 "Description: |
|
3492 valid element declarations |
|
3493 " |
|
3494 |
|
3495 |
|
3496 self shouldnt:[ |
|
3497 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p45pass1.xml')). |
|
3498 ] raise: Error. |
|
3499 |
|
3500 "Modified: / 25-10-2005 / 14:58:53 / janfrog" |
|
3501 ! |
|
3502 |
|
3503 test_o_p46fail1 |
|
3504 |
|
3505 |
|
3506 "Sections: 3.2 [46]" |
|
3507 "Description: |
|
3508 no parens on declared content |
|
3509 " |
|
3510 |
|
3511 |
|
3512 self should:[ |
|
3513 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p46fail1.xml')). |
|
3514 ] raise: SAXParseError. |
|
3515 |
|
3516 "Modified: / 25-10-2005 / 14:59:04 / janfrog" |
|
3517 ! |
|
3518 |
|
3519 test_o_p46fail2 |
|
3520 |
|
3521 |
|
3522 "Sections: 3.2 [46]" |
|
3523 "Description: |
|
3524 no inclusions (contrast with SGML) |
|
3525 " |
|
3526 |
|
3527 |
|
3528 self should:[ |
|
3529 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p46fail2.xml')). |
|
3530 ] raise: SAXParseError. |
|
3531 |
|
3532 "Modified: / 25-10-2005 / 14:59:04 / janfrog" |
|
3533 ! |
|
3534 |
|
3535 test_o_p46fail3 |
|
3536 |
|
3537 |
|
3538 "Sections: 3.2 [46]" |
|
3539 "Description: |
|
3540 no exclusions (contrast with SGML) |
|
3541 " |
|
3542 |
|
3543 |
|
3544 self should:[ |
|
3545 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p46fail3.xml')). |
|
3546 ] raise: SAXParseError. |
|
3547 |
|
3548 "Modified: / 25-10-2005 / 14:59:04 / janfrog" |
|
3549 ! |
|
3550 |
|
3551 test_o_p46fail4 |
|
3552 |
|
3553 |
|
3554 "Sections: 3.2 [46]" |
|
3555 "Description: |
|
3556 no space before occurrence |
|
3557 " |
|
3558 |
|
3559 |
|
3560 self should:[ |
|
3561 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p46fail4.xml')). |
|
3562 ] raise: SAXParseError. |
|
3563 |
|
3564 "Modified: / 25-10-2005 / 14:59:04 / janfrog" |
|
3565 ! |
|
3566 |
|
3567 test_o_p46fail5 |
|
3568 |
|
3569 |
|
3570 "Sections: 3.2 [46]" |
|
3571 "Description: |
|
3572 single group |
|
3573 " |
|
3574 |
|
3575 |
|
3576 self should:[ |
|
3577 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p46fail5.xml')). |
|
3578 ] raise: SAXParseError. |
|
3579 |
|
3580 "Modified: / 25-10-2005 / 14:59:04 / janfrog" |
|
3581 ! |
|
3582 |
|
3583 test_o_p46fail6 |
|
3584 |
|
3585 |
|
3586 "Sections: 3.2 [46]" |
|
3587 "Description: |
|
3588 can't be both declared and modeled |
|
3589 " |
|
3590 |
|
3591 |
|
3592 self should:[ |
|
3593 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p46fail6.xml')). |
|
3594 ] raise: SAXParseError. |
|
3595 |
|
3596 "Modified: / 25-10-2005 / 14:59:04 / janfrog" |
|
3597 ! |
|
3598 |
|
3599 test_o_p46pass1 |
|
3600 |
|
3601 |
|
3602 "Sections: 3.2 3.2.1 3.2.2 [45] [46] [47] [51]" |
|
3603 "Description: |
|
3604 Valid use of contentspec, element content models, and mixed content within an element type declaration. " |
|
3605 |
|
3606 |
|
3607 self shouldnt:[ |
|
3608 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p46pass1.xml')). |
|
3609 ] raise: Error. |
|
3610 |
|
3611 "Modified: / 25-10-2005 / 14:58:53 / janfrog" |
|
3612 ! |
|
3613 |
|
3614 test_o_p47fail1 |
|
3615 |
|
3616 |
|
3617 "Sections: 3.2.1 [47]" |
|
3618 "Description: |
|
3619 Invalid operator '|' must match previous operator ','" |
|
3620 |
|
3621 |
|
3622 self should:[ |
|
3623 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p47fail1.xml')). |
|
3624 ] raise: SAXParseError. |
|
3625 |
|
3626 "Modified: / 25-10-2005 / 14:59:04 / janfrog" |
|
3627 ! |
|
3628 |
|
3629 test_o_p47fail2 |
|
3630 |
|
3631 |
|
3632 "Sections: 3.2.1 [47]" |
|
3633 "Description: |
|
3634 Illegal character '-' in Element-content model " |
|
3635 |
|
3636 |
|
3637 self should:[ |
|
3638 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p47fail2.xml')). |
|
3639 ] raise: SAXParseError. |
|
3640 |
|
3641 "Modified: / 25-10-2005 / 14:59:04 / janfrog" |
|
3642 ! |
|
3643 |
|
3644 test_o_p47fail3 |
|
3645 |
|
3646 |
|
3647 "Sections: 3.2.1 [47]" |
|
3648 "Description: |
|
3649 Optional character must follow a name or list " |
|
3650 |
|
3651 |
|
3652 self should:[ |
|
3653 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p47fail3.xml')). |
|
3654 ] raise: SAXParseError. |
|
3655 |
|
3656 "Modified: / 25-10-2005 / 14:59:04 / janfrog" |
|
3657 ! |
|
3658 |
|
3659 test_o_p47fail4 |
|
3660 |
|
3661 |
|
3662 "Sections: 3.2.1 [47]" |
|
3663 "Description: |
|
3664 Illegal space before optional character" |
|
3665 |
|
3666 |
|
3667 self should:[ |
|
3668 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p47fail4.xml')). |
|
3669 ] raise: SAXParseError. |
|
3670 |
|
3671 "Modified: / 25-10-2005 / 14:59:04 / janfrog" |
|
3672 ! |
|
3673 |
|
3674 test_o_p47pass1 |
|
3675 |
|
3676 |
|
3677 "Sections: 3.2 3.2.1 [45] [46] [47] " |
|
3678 "Description: |
|
3679 Valid use of contentspec, element content models, choices, sequences and content particles within an element type declaration. The optional character following a name or list governs the number of times the element or content particle may appear. " |
|
3680 |
|
3681 |
|
3682 self shouldnt:[ |
|
3683 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p47pass1.xml')). |
|
3684 ] raise: Error. |
|
3685 |
|
3686 "Modified: / 25-10-2005 / 14:58:53 / janfrog" |
|
3687 ! |
|
3688 |
|
3689 test_o_p48fail1 |
|
3690 |
|
3691 |
|
3692 "Sections: 3.2.1 [48]" |
|
3693 "Description: |
|
3694 Illegal space before optional character " |
|
3695 |
|
3696 |
|
3697 self should:[ |
|
3698 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p48fail1.xml')). |
|
3699 ] raise: SAXParseError. |
|
3700 |
|
3701 "Modified: / 25-10-2005 / 14:59:04 / janfrog" |
|
3702 ! |
|
3703 |
|
3704 test_o_p48fail2 |
|
3705 |
|
3706 |
|
3707 "Sections: 3.2.1 [48]" |
|
3708 "Description: |
|
3709 Illegal space before optional character " |
|
3710 |
|
3711 |
|
3712 self should:[ |
|
3713 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p48fail2.xml')). |
|
3714 ] raise: SAXParseError. |
|
3715 |
|
3716 "Modified: / 25-10-2005 / 14:59:05 / janfrog" |
|
3717 ! |
|
3718 |
|
3719 test_o_p48pass1 |
|
3720 |
|
3721 |
|
3722 "Sections: 3.2 3.2.1 [45] [46] [47]" |
|
3723 "Description: |
|
3724 Valid use of contentspec, element content models, choices, sequences and content particles within an element type declaration. The optional character following a name or list governs the number of times the element or content particle may appear. " |
|
3725 |
|
3726 |
|
3727 self shouldnt:[ |
|
3728 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p48pass1.xml')). |
|
3729 ] raise: Error. |
|
3730 |
|
3731 "Modified: / 25-10-2005 / 14:58:53 / janfrog" |
|
3732 ! |
|
3733 |
|
3734 test_o_p49fail1 |
|
3735 |
|
3736 |
|
3737 "Sections: 3.2.1 [49]" |
|
3738 "Description: |
|
3739 connectors must match " |
|
3740 |
|
3741 |
|
3742 self should:[ |
|
3743 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p49fail1.xml')). |
|
3744 ] raise: SAXParseError. |
|
3745 |
|
3746 "Modified: / 25-10-2005 / 14:59:05 / janfrog" |
|
3747 ! |
|
3748 |
|
3749 test_o_p49pass1 |
|
3750 |
|
3751 |
|
3752 "Sections: 3.2 3.2.1 [45] [46] [47]" |
|
3753 "Description: |
|
3754 Valid use of contentspec, element content models, choices, and content particles within an element type declaration. The optional character following a name or list governs the number of times the element or content particle may appear. Whitespace is also valid between choices. " |
|
3755 |
|
3756 |
|
3757 self shouldnt:[ |
|
3758 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p49pass1.xml')). |
|
3759 ] raise: Error. |
|
3760 |
|
3761 "Modified: / 25-10-2005 / 14:58:53 / janfrog" |
|
3762 ! |
|
3763 |
|
3764 test_o_p50fail1 |
|
3765 |
|
3766 |
|
3767 "Sections: 3.2.1 [50]" |
|
3768 "Description: |
|
3769 connectors must match " |
|
3770 |
|
3771 |
|
3772 self should:[ |
|
3773 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p50fail1.xml')). |
|
3774 ] raise: SAXParseError. |
|
3775 |
|
3776 "Modified: / 25-10-2005 / 14:59:05 / janfrog" |
|
3777 ! |
|
3778 |
|
3779 test_o_p50pass1 |
|
3780 |
|
3781 |
|
3782 "Sections: 3.2 3.2.1 [45] [46] [47]" |
|
3783 "Description: |
|
3784 Valid use of contentspec, element content models, sequences and content particles within an element type declaration. The optional character following a name or list governs the number of times the element or content particle may appear. Whitespace is also valid between sequences. " |
|
3785 |
|
3786 |
|
3787 self shouldnt:[ |
|
3788 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p50pass1.xml')). |
|
3789 ] raise: Error. |
|
3790 |
|
3791 "Modified: / 25-10-2005 / 14:58:53 / janfrog" |
|
3792 ! |
|
3793 |
|
3794 test_o_p51fail1 |
|
3795 |
|
3796 |
|
3797 "Sections: 3.2.2 [51]" |
|
3798 "Description: |
|
3799 occurrence on #PCDATA group must be * |
|
3800 " |
|
3801 |
|
3802 |
|
3803 self should:[ |
|
3804 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p51fail1.xml')). |
|
3805 ] raise: SAXParseError. |
|
3806 |
|
3807 "Modified: / 25-10-2005 / 14:59:05 / janfrog" |
|
3808 ! |
|
3809 |
|
3810 test_o_p51fail2 |
|
3811 |
|
3812 |
|
3813 "Sections: 3.2.2 [51]" |
|
3814 "Description: |
|
3815 occurrence on #PCDATA group must be * |
|
3816 " |
|
3817 |
|
3818 |
|
3819 self should:[ |
|
3820 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p51fail2.xml')). |
|
3821 ] raise: SAXParseError. |
|
3822 |
|
3823 "Modified: / 25-10-2005 / 14:59:05 / janfrog" |
|
3824 ! |
|
3825 |
|
3826 test_o_p51fail3 |
|
3827 |
|
3828 |
|
3829 "Sections: 3.2.2 [51]" |
|
3830 "Description: |
|
3831 #PCDATA must come first |
|
3832 " |
|
3833 |
|
3834 |
|
3835 self should:[ |
|
3836 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p51fail3.xml')). |
|
3837 ] raise: SAXParseError. |
|
3838 |
|
3839 "Modified: / 25-10-2005 / 14:59:05 / janfrog" |
|
3840 ! |
|
3841 |
|
3842 test_o_p51fail4 |
|
3843 |
|
3844 |
|
3845 "Sections: 3.2.2 [51]" |
|
3846 "Description: |
|
3847 occurrence on #PCDATA group must be * |
|
3848 " |
|
3849 |
|
3850 |
|
3851 self should:[ |
|
3852 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p51fail4.xml')). |
|
3853 ] raise: SAXParseError. |
|
3854 |
|
3855 "Modified: / 25-10-2005 / 14:59:05 / janfrog" |
|
3856 ! |
|
3857 |
|
3858 test_o_p51fail5 |
|
3859 |
|
3860 |
|
3861 "Sections: 3.2.2 [51]" |
|
3862 "Description: |
|
3863 only '|' connectors |
|
3864 " |
|
3865 |
|
3866 |
|
3867 self should:[ |
|
3868 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p51fail5.xml')). |
|
3869 ] raise: SAXParseError. |
|
3870 |
|
3871 "Modified: / 25-10-2005 / 14:59:05 / janfrog" |
|
3872 ! |
|
3873 |
|
3874 test_o_p51fail6 |
|
3875 |
|
3876 |
|
3877 "Sections: 3.2.2 [51]" |
|
3878 "Description: |
|
3879 Only '|' connectors and occurrence on #PCDATA group must be * " |
|
3880 |
|
3881 |
|
3882 self should:[ |
|
3883 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p51fail6.xml')). |
|
3884 ] raise: SAXParseError. |
|
3885 |
|
3886 "Modified: / 25-10-2005 / 14:59:05 / janfrog" |
|
3887 ! |
|
3888 |
|
3889 test_o_p51fail7 |
|
3890 |
|
3891 |
|
3892 "Sections: 3.2.2 [51]" |
|
3893 "Description: |
|
3894 no nested groups |
|
3895 " |
|
3896 |
|
3897 |
|
3898 self should:[ |
|
3899 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p51fail7.xml')). |
|
3900 ] raise: SAXParseError. |
|
3901 |
|
3902 "Modified: / 25-10-2005 / 14:59:05 / janfrog" |
|
3903 ! |
|
3904 |
|
3905 test_o_p51pass1 |
|
3906 |
|
3907 |
|
3908 "Sections: 3.2.2 [51]" |
|
3909 "Description: |
|
3910 valid Mixed contentspec's. |
|
3911 " |
|
3912 |
|
3913 |
|
3914 self shouldnt:[ |
|
3915 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p51pass1.xml')). |
|
3916 ] raise: Error. |
|
3917 |
|
3918 "Modified: / 25-10-2005 / 14:58:53 / janfrog" |
|
3919 ! |
|
3920 |
|
3921 test_o_p52fail1 |
|
3922 |
|
3923 |
|
3924 "Sections: 3.3 [52]" |
|
3925 "Description: |
|
3926 A name is required |
|
3927 " |
|
3928 |
|
3929 |
|
3930 self should:[ |
|
3931 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p52fail1.xml')). |
|
3932 ] raise: SAXParseError. |
|
3933 |
|
3934 "Modified: / 25-10-2005 / 14:59:05 / janfrog" |
|
3935 ! |
|
3936 |
|
3937 test_o_p52fail2 |
|
3938 |
|
3939 |
|
3940 "Sections: 3.3 [52]" |
|
3941 "Description: |
|
3942 A name is required |
|
3943 " |
|
3944 |
|
3945 |
|
3946 self should:[ |
|
3947 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p52fail2.xml')). |
|
3948 ] raise: SAXParseError. |
|
3949 |
|
3950 "Modified: / 25-10-2005 / 14:59:05 / janfrog" |
|
3951 ! |
|
3952 |
|
3953 test_o_p52pass1 |
|
3954 |
|
3955 |
|
3956 "Sections: 3.3 [52]" |
|
3957 "Description: |
|
3958 valid AttlistDecls: No AttDef's are required, |
|
3959 and the terminating |
|
3960 S is optional, multiple ATTLISTS per element are OK, and multiple |
|
3961 declarations of the same attribute are OK. |
|
3962 " |
|
3963 |
|
3964 |
|
3965 self shouldnt:[ |
|
3966 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p52pass1.xml')). |
|
3967 ] raise: Error. |
|
3968 |
|
3969 "Modified: / 25-10-2005 / 14:58:53 / janfrog" |
|
3970 ! |
|
3971 |
|
3972 test_o_p53fail1 |
|
3973 |
|
3974 |
|
3975 "Sections: 3.3 [53]" |
|
3976 "Description: |
|
3977 S is required before default |
|
3978 " |
|
3979 |
|
3980 |
|
3981 self should:[ |
|
3982 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p53fail1.xml')). |
|
3983 ] raise: SAXParseError. |
|
3984 |
|
3985 "Modified: / 25-10-2005 / 14:59:05 / janfrog" |
|
3986 ! |
|
3987 |
|
3988 test_o_p53fail2 |
|
3989 |
|
3990 |
|
3991 "Sections: 3.3 [53]" |
|
3992 "Description: |
|
3993 S is required before type |
|
3994 " |
|
3995 |
|
3996 |
|
3997 self should:[ |
|
3998 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p53fail2.xml')). |
|
3999 ] raise: SAXParseError. |
|
4000 |
|
4001 "Modified: / 25-10-2005 / 14:59:05 / janfrog" |
|
4002 ! |
|
4003 |
|
4004 test_o_p53fail3 |
|
4005 |
|
4006 |
|
4007 "Sections: 3.3 [53]" |
|
4008 "Description: |
|
4009 type is required |
|
4010 " |
|
4011 |
|
4012 |
|
4013 self should:[ |
|
4014 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p53fail3.xml')). |
|
4015 ] raise: SAXParseError. |
|
4016 |
|
4017 "Modified: / 25-10-2005 / 14:59:05 / janfrog" |
|
4018 ! |
|
4019 |
|
4020 test_o_p53fail4 |
|
4021 |
|
4022 |
|
4023 "Sections: 3.3 [53]" |
|
4024 "Description: |
|
4025 default is required |
|
4026 " |
|
4027 |
|
4028 |
|
4029 self should:[ |
|
4030 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p53fail4.xml')). |
|
4031 ] raise: SAXParseError. |
|
4032 |
|
4033 "Modified: / 25-10-2005 / 14:59:05 / janfrog" |
|
4034 ! |
|
4035 |
|
4036 test_o_p53fail5 |
|
4037 |
|
4038 |
|
4039 "Sections: 3.3 [53]" |
|
4040 "Description: |
|
4041 name is requried |
|
4042 " |
|
4043 |
|
4044 |
|
4045 self should:[ |
|
4046 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p53fail5.xml')). |
|
4047 ] raise: SAXParseError. |
|
4048 |
|
4049 "Modified: / 25-10-2005 / 14:59:05 / janfrog" |
|
4050 ! |
|
4051 |
|
4052 test_o_p53pass1 |
|
4053 |
|
4054 |
|
4055 "Sections: 3.3 [53]" |
|
4056 "Description: |
|
4057 a valid AttDef |
|
4058 " |
|
4059 |
|
4060 |
|
4061 self shouldnt:[ |
|
4062 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p53pass1.xml')). |
|
4063 ] raise: Error. |
|
4064 |
|
4065 "Modified: / 25-10-2005 / 14:58:53 / janfrog" |
|
4066 ! |
|
4067 |
|
4068 test_o_p54fail1 |
|
4069 |
|
4070 |
|
4071 "Sections: 3.3.1 [54]" |
|
4072 "Description: |
|
4073 don't pass unknown attribute types |
|
4074 " |
|
4075 |
|
4076 |
|
4077 self should:[ |
|
4078 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p54fail1.xml')). |
|
4079 ] raise: SAXParseError. |
|
4080 |
|
4081 "Modified: / 25-10-2005 / 14:59:05 / janfrog" |
|
4082 ! |
|
4083 |
|
4084 test_o_p54pass1 |
|
4085 |
|
4086 |
|
4087 "Sections: 3.3.1 [54]" |
|
4088 "Description: |
|
4089 the three kinds of attribute types |
|
4090 " |
|
4091 |
|
4092 |
|
4093 self shouldnt:[ |
|
4094 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p54pass1.xml')). |
|
4095 ] raise: Error. |
|
4096 |
|
4097 "Modified: / 25-10-2005 / 14:58:53 / janfrog" |
|
4098 ! |
|
4099 |
|
4100 test_o_p55fail1 |
|
4101 |
|
4102 |
|
4103 "Sections: 3.3.1 [55]" |
|
4104 "Description: |
|
4105 must be upper case |
|
4106 " |
|
4107 |
|
4108 |
|
4109 self should:[ |
|
4110 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p55fail1.xml')). |
|
4111 ] raise: SAXParseError. |
|
4112 |
|
4113 "Modified: / 25-10-2005 / 14:59:06 / janfrog" |
|
4114 ! |
|
4115 |
|
4116 test_o_p55pass1 |
|
4117 |
|
4118 |
|
4119 "Sections: 3.3.1 [55]" |
|
4120 "Description: |
|
4121 StringType = `CDATA` |
|
4122 " |
|
4123 |
|
4124 |
|
4125 self shouldnt:[ |
|
4126 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p55pass1.xml')). |
|
4127 ] raise: Error. |
|
4128 |
|
4129 "Modified: / 25-10-2005 / 14:58:53 / janfrog" |
|
4130 ! |
|
4131 |
|
4132 test_o_p56fail1 |
|
4133 |
|
4134 |
|
4135 "Sections: 3.3.1 [56]" |
|
4136 "Description: |
|
4137 no IDS type |
|
4138 " |
|
4139 |
|
4140 |
|
4141 self should:[ |
|
4142 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p56fail1.xml')). |
|
4143 ] raise: SAXParseError. |
|
4144 |
|
4145 "Modified: / 25-10-2005 / 14:59:06 / janfrog" |
|
4146 ! |
|
4147 |
|
4148 test_o_p56fail2 |
|
4149 |
|
4150 |
|
4151 "Sections: 3.3.1 [56]" |
|
4152 "Description: |
|
4153 no NUMBER type |
|
4154 " |
|
4155 |
|
4156 |
|
4157 self should:[ |
|
4158 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p56fail2.xml')). |
|
4159 ] raise: SAXParseError. |
|
4160 |
|
4161 "Modified: / 25-10-2005 / 14:59:06 / janfrog" |
|
4162 ! |
|
4163 |
|
4164 test_o_p56fail3 |
|
4165 |
|
4166 |
|
4167 "Sections: 3.3.1 [56]" |
|
4168 "Description: |
|
4169 no NAME type |
|
4170 " |
|
4171 |
|
4172 |
|
4173 self should:[ |
|
4174 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p56fail3.xml')). |
|
4175 ] raise: SAXParseError. |
|
4176 |
|
4177 "Modified: / 25-10-2005 / 14:59:06 / janfrog" |
|
4178 ! |
|
4179 |
|
4180 test_o_p56fail4 |
|
4181 |
|
4182 |
|
4183 "Sections: 3.3.1 [56]" |
|
4184 "Description: |
|
4185 no ENTITYS type |
|
4186 - types must be upper case |
|
4187 " |
|
4188 |
|
4189 |
|
4190 self should:[ |
|
4191 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p56fail4.xml')). |
|
4192 ] raise: SAXParseError. |
|
4193 |
|
4194 "Modified: / 25-10-2005 / 14:59:06 / janfrog" |
|
4195 ! |
|
4196 |
|
4197 test_o_p56fail5 |
|
4198 |
|
4199 |
|
4200 "Sections: 3.3.1 [56]" |
|
4201 "Description: |
|
4202 types must be upper case " |
|
4203 |
|
4204 |
|
4205 self should:[ |
|
4206 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p56fail5.xml')). |
|
4207 ] raise: SAXParseError. |
|
4208 |
|
4209 "Modified: / 25-10-2005 / 14:59:06 / janfrog" |
|
4210 ! |
|
4211 |
|
4212 test_o_p56pass1 |
|
4213 |
|
4214 |
|
4215 "Sections: 3.3.1 [56]" |
|
4216 "Description: |
|
4217 the 7 tokenized attribute types |
|
4218 " |
|
4219 |
|
4220 |
|
4221 self shouldnt:[ |
|
4222 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p56pass1.xml')). |
|
4223 ] raise: Error. |
|
4224 |
|
4225 "Modified: / 25-10-2005 / 14:58:53 / janfrog" |
|
4226 ! |
|
4227 |
|
4228 test_o_p57fail1 |
|
4229 |
|
4230 |
|
4231 "Sections: 3.3.1 [57]" |
|
4232 "Description: |
|
4233 no keyword for NMTOKEN enumeration |
|
4234 " |
|
4235 |
|
4236 |
|
4237 self should:[ |
|
4238 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p57fail1.xml')). |
|
4239 ] raise: SAXParseError. |
|
4240 |
|
4241 "Modified: / 25-10-2005 / 14:59:06 / janfrog" |
|
4242 ! |
|
4243 |
|
4244 test_o_p57pass1 |
|
4245 |
|
4246 |
|
4247 "Sections: 3.3.1 [57]" |
|
4248 "Description: |
|
4249 enumerated types are NMTOKEN or NOTATION lists |
|
4250 " |
|
4251 |
|
4252 |
|
4253 self shouldnt:[ |
|
4254 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p57pass1.xml')). |
|
4255 ] raise: Error. |
|
4256 |
|
4257 "Modified: / 25-10-2005 / 14:58:54 / janfrog" |
|
4258 ! |
|
4259 |
|
4260 test_o_p58fail1 |
|
4261 |
|
4262 |
|
4263 "Sections: 3.3.1 [58]" |
|
4264 "Description: |
|
4265 at least one value required |
|
4266 " |
|
4267 |
|
4268 |
|
4269 self should:[ |
|
4270 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p58fail1.xml')). |
|
4271 ] raise: SAXParseError. |
|
4272 |
|
4273 "Modified: / 25-10-2005 / 14:59:06 / janfrog" |
|
4274 ! |
|
4275 |
|
4276 test_o_p58fail2 |
|
4277 |
|
4278 |
|
4279 "Sections: 3.3.1 [58]" |
|
4280 "Description: |
|
4281 separator must be '|' |
|
4282 " |
|
4283 |
|
4284 |
|
4285 self should:[ |
|
4286 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p58fail2.xml')). |
|
4287 ] raise: SAXParseError. |
|
4288 |
|
4289 "Modified: / 25-10-2005 / 14:59:06 / janfrog" |
|
4290 ! |
|
4291 |
|
4292 test_o_p58fail3 |
|
4293 |
|
4294 |
|
4295 "Sections: 3.3.1 [58]" |
|
4296 "Description: |
|
4297 notations are NAMEs, not NMTOKENs -- note: |
|
4298 Leaving the invalid |
|
4299 notation undeclared would cause a validating parser to fail without |
|
4300 checking the name syntax, so the notation is declared with an |
|
4301 invalid name. A parser that reports error positions should report |
|
4302 an error at the AttlistDecl on line 6, before reaching the notation |
|
4303 declaration. |
|
4304 " |
|
4305 |
|
4306 |
|
4307 self should:[ |
|
4308 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p58fail3.xml')). |
|
4309 ] raise: SAXParseError. |
|
4310 |
|
4311 "Modified: / 25-10-2005 / 14:59:06 / janfrog" |
|
4312 ! |
|
4313 |
|
4314 test_o_p58fail4 |
|
4315 |
|
4316 |
|
4317 "Sections: 3.3.1 [58]" |
|
4318 "Description: |
|
4319 NOTATION must be upper case |
|
4320 " |
|
4321 |
|
4322 |
|
4323 self should:[ |
|
4324 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p58fail4.xml')). |
|
4325 ] raise: SAXParseError. |
|
4326 |
|
4327 "Modified: / 25-10-2005 / 14:59:06 / janfrog" |
|
4328 ! |
|
4329 |
|
4330 test_o_p58fail5 |
|
4331 |
|
4332 |
|
4333 "Sections: 3.3.1 [58]" |
|
4334 "Description: |
|
4335 S after keyword is required |
|
4336 " |
|
4337 |
|
4338 |
|
4339 self should:[ |
|
4340 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p58fail5.xml')). |
|
4341 ] raise: SAXParseError. |
|
4342 |
|
4343 "Modified: / 25-10-2005 / 14:59:06 / janfrog" |
|
4344 ! |
|
4345 |
|
4346 test_o_p58fail6 |
|
4347 |
|
4348 |
|
4349 "Sections: 3.3.1 [58]" |
|
4350 "Description: |
|
4351 parentheses are require |
|
4352 " |
|
4353 |
|
4354 |
|
4355 self should:[ |
|
4356 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p58fail6.xml')). |
|
4357 ] raise: SAXParseError. |
|
4358 |
|
4359 "Modified: / 25-10-2005 / 14:59:06 / janfrog" |
|
4360 ! |
|
4361 |
|
4362 test_o_p58fail7 |
|
4363 |
|
4364 |
|
4365 "Sections: 3.3.1 [58]" |
|
4366 "Description: |
|
4367 values are unquoted |
|
4368 " |
|
4369 |
|
4370 |
|
4371 self should:[ |
|
4372 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p58fail7.xml')). |
|
4373 ] raise: SAXParseError. |
|
4374 |
|
4375 "Modified: / 25-10-2005 / 14:59:06 / janfrog" |
|
4376 ! |
|
4377 |
|
4378 test_o_p58fail8 |
|
4379 |
|
4380 |
|
4381 "Sections: 3.3.1 [58]" |
|
4382 "Description: |
|
4383 values are unquoted |
|
4384 " |
|
4385 |
|
4386 |
|
4387 self should:[ |
|
4388 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p58fail8.xml')). |
|
4389 ] raise: SAXParseError. |
|
4390 |
|
4391 "Modified: / 25-10-2005 / 14:59:06 / janfrog" |
|
4392 ! |
|
4393 |
|
4394 test_o_p58pass1 |
|
4395 |
|
4396 |
|
4397 "Sections: 3.3.1 [58]" |
|
4398 "Description: |
|
4399 NOTATION enumeration has on or more items |
|
4400 " |
|
4401 |
|
4402 |
|
4403 self shouldnt:[ |
|
4404 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p58pass1.xml')). |
|
4405 ] raise: Error. |
|
4406 |
|
4407 "Modified: / 25-10-2005 / 14:58:54 / janfrog" |
|
4408 ! |
|
4409 |
|
4410 test_o_p59fail1 |
|
4411 |
|
4412 |
|
4413 "Sections: 3.3.1 [59]" |
|
4414 "Description: |
|
4415 at least one required |
|
4416 " |
|
4417 |
|
4418 |
|
4419 self should:[ |
|
4420 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p59fail1.xml')). |
|
4421 ] raise: SAXParseError. |
|
4422 |
|
4423 "Modified: / 25-10-2005 / 14:59:06 / janfrog" |
|
4424 ! |
|
4425 |
|
4426 test_o_p59fail2 |
|
4427 |
|
4428 |
|
4429 "Sections: 3.3.1 [59]" |
|
4430 "Description: |
|
4431 separator must be `,` |
|
4432 " |
|
4433 |
|
4434 |
|
4435 self should:[ |
|
4436 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p59fail2.xml')). |
|
4437 ] raise: SAXParseError. |
|
4438 |
|
4439 "Modified: / 25-10-2005 / 14:59:06 / janfrog" |
|
4440 ! |
|
4441 |
|
4442 test_o_p59fail3 |
|
4443 |
|
4444 |
|
4445 "Sections: 3.3.1 [59]" |
|
4446 "Description: |
|
4447 values are unquoted |
|
4448 " |
|
4449 |
|
4450 |
|
4451 self should:[ |
|
4452 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p59fail3.xml')). |
|
4453 ] raise: SAXParseError. |
|
4454 |
|
4455 "Modified: / 25-10-2005 / 14:59:06 / janfrog" |
|
4456 ! |
|
4457 |
|
4458 test_o_p59pass1 |
|
4459 |
|
4460 |
|
4461 "Sections: 3.3.1 [59]" |
|
4462 "Description: |
|
4463 NMTOKEN enumerations haveon or more items |
|
4464 " |
|
4465 |
|
4466 |
|
4467 self shouldnt:[ |
|
4468 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p59pass1.xml')). |
|
4469 ] raise: Error. |
|
4470 |
|
4471 "Modified: / 25-10-2005 / 14:58:54 / janfrog" |
|
4472 ! |
|
4473 |
|
4474 test_o_p60fail1 |
|
4475 |
|
4476 |
|
4477 "Sections: 3.3.2 [60]" |
|
4478 "Description: |
|
4479 keywords must be upper case |
|
4480 " |
|
4481 |
|
4482 |
|
4483 self should:[ |
|
4484 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p60fail1.xml')). |
|
4485 ] raise: SAXParseError. |
|
4486 |
|
4487 "Modified: / 25-10-2005 / 14:59:07 / janfrog" |
|
4488 ! |
|
4489 |
|
4490 test_o_p60fail2 |
|
4491 |
|
4492 |
|
4493 "Sections: 3.3.2 [60]" |
|
4494 "Description: |
|
4495 S is required after #FIXED |
|
4496 " |
|
4497 |
|
4498 |
|
4499 self should:[ |
|
4500 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p60fail2.xml')). |
|
4501 ] raise: SAXParseError. |
|
4502 |
|
4503 "Modified: / 25-10-2005 / 14:59:07 / janfrog" |
|
4504 ! |
|
4505 |
|
4506 test_o_p60fail3 |
|
4507 |
|
4508 |
|
4509 "Sections: 3.3.2 [60]" |
|
4510 "Description: |
|
4511 only #FIXED has both keyword and value |
|
4512 " |
|
4513 |
|
4514 |
|
4515 self should:[ |
|
4516 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p60fail3.xml')). |
|
4517 ] raise: SAXParseError. |
|
4518 |
|
4519 "Modified: / 25-10-2005 / 14:59:07 / janfrog" |
|
4520 ! |
|
4521 |
|
4522 test_o_p60fail4 |
|
4523 |
|
4524 |
|
4525 "Sections: 3.3.2 [60]" |
|
4526 "Description: |
|
4527 #FIXED required value |
|
4528 " |
|
4529 |
|
4530 |
|
4531 self should:[ |
|
4532 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p60fail4.xml')). |
|
4533 ] raise: SAXParseError. |
|
4534 |
|
4535 "Modified: / 25-10-2005 / 14:59:07 / janfrog" |
|
4536 ! |
|
4537 |
|
4538 test_o_p60fail5 |
|
4539 |
|
4540 |
|
4541 "Sections: 3.3.2 [60]" |
|
4542 "Description: |
|
4543 only one default type |
|
4544 " |
|
4545 |
|
4546 |
|
4547 self should:[ |
|
4548 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p60fail5.xml')). |
|
4549 ] raise: SAXParseError. |
|
4550 |
|
4551 "Modified: / 25-10-2005 / 14:59:07 / janfrog" |
|
4552 ! |
|
4553 |
|
4554 test_o_p60pass1 |
|
4555 |
|
4556 |
|
4557 "Sections: 3.3.2 [60]" |
|
4558 "Description: |
|
4559 the four types of default values |
|
4560 " |
|
4561 |
|
4562 |
|
4563 self shouldnt:[ |
|
4564 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p60pass1.xml')). |
|
4565 ] raise: Error. |
|
4566 |
|
4567 "Modified: / 25-10-2005 / 14:58:54 / janfrog" |
|
4568 ! |
|
4569 |
|
4570 test_o_p61fail1 |
|
4571 |
|
4572 |
|
4573 "Sections: 3.4 [61]" |
|
4574 "Description: |
|
4575 no other types, including TEMP, which is valid in SGML |
|
4576 " |
|
4577 |
|
4578 |
|
4579 self should:[ |
|
4580 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p61fail1.xml')). |
|
4581 ] raise: SAXParseError. |
|
4582 |
|
4583 "Modified: / 25-10-2005 / 14:59:07 / janfrog" |
|
4584 ! |
|
4585 |
|
4586 test_o_p61pass1 |
|
4587 |
|
4588 |
|
4589 "Sections: 3.4 [61]" |
|
4590 "Description: |
|
4591 valid conditional sections are INCLUDE and IGNORE |
|
4592 " |
|
4593 |
|
4594 |
|
4595 self shouldnt:[ |
|
4596 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p61pass1.xml')). |
|
4597 ] raise: Error. |
|
4598 |
|
4599 "Modified: / 25-10-2005 / 14:58:54 / janfrog" |
|
4600 ! |
|
4601 |
|
4602 test_o_p62fail1 |
|
4603 |
|
4604 |
|
4605 "Sections: 3.4 [62]" |
|
4606 "Description: |
|
4607 INCLUDE must be upper case |
|
4608 " |
|
4609 |
|
4610 |
|
4611 self should:[ |
|
4612 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p62fail1.xml')). |
|
4613 ] raise: SAXParseError. |
|
4614 |
|
4615 "Modified: / 25-10-2005 / 14:59:07 / janfrog" |
|
4616 ! |
|
4617 |
|
4618 test_o_p62fail2 |
|
4619 |
|
4620 |
|
4621 "Sections: 3.4 [62]" |
|
4622 "Description: |
|
4623 no spaces in terminating delimiter |
|
4624 " |
|
4625 |
|
4626 |
|
4627 self should:[ |
|
4628 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p62fail2.xml')). |
|
4629 ] raise: SAXParseError. |
|
4630 |
|
4631 "Modified: / 25-10-2005 / 14:59:07 / janfrog" |
|
4632 ! |
|
4633 |
|
4634 test_o_p62pass1 |
|
4635 |
|
4636 |
|
4637 "Sections: 3.4 [62]" |
|
4638 "Description: |
|
4639 valid INCLUDE sections -- options S before and |
|
4640 after keyword, sections can nest |
|
4641 " |
|
4642 |
|
4643 |
|
4644 self shouldnt:[ |
|
4645 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p62pass1.xml')). |
|
4646 ] raise: Error. |
|
4647 |
|
4648 "Modified: / 25-10-2005 / 14:58:54 / janfrog" |
|
4649 ! |
|
4650 |
|
4651 test_o_p63fail1 |
|
4652 |
|
4653 |
|
4654 "Sections: 3.4 [63]" |
|
4655 "Description: |
|
4656 IGNORE must be upper case |
|
4657 " |
|
4658 |
|
4659 |
|
4660 self should:[ |
|
4661 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p63fail1.xml')). |
|
4662 ] raise: SAXParseError. |
|
4663 |
|
4664 "Modified: / 25-10-2005 / 14:59:07 / janfrog" |
|
4665 ! |
|
4666 |
|
4667 test_o_p63fail2 |
|
4668 |
|
4669 |
|
4670 "Sections: 3.4 [63]" |
|
4671 "Description: |
|
4672 delimiters must be balanced |
|
4673 " |
|
4674 |
|
4675 |
|
4676 self should:[ |
|
4677 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p63fail2.xml')). |
|
4678 ] raise: SAXParseError. |
|
4679 |
|
4680 "Modified: / 25-10-2005 / 14:59:07 / janfrog" |
|
4681 ! |
|
4682 |
|
4683 test_o_p63pass1 |
|
4684 |
|
4685 |
|
4686 "Sections: 3.4 [63]" |
|
4687 "Description: |
|
4688 valid IGNORE sections |
|
4689 " |
|
4690 |
|
4691 |
|
4692 self shouldnt:[ |
|
4693 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p63pass1.xml')). |
|
4694 ] raise: Error. |
|
4695 |
|
4696 "Modified: / 25-10-2005 / 14:58:54 / janfrog" |
|
4697 ! |
|
4698 |
|
4699 test_o_p64fail1 |
|
4700 |
|
4701 |
|
4702 "Sections: 3.4 [64]" |
|
4703 "Description: |
|
4704 section delimiters must balance |
|
4705 " |
|
4706 |
|
4707 |
|
4708 self should:[ |
|
4709 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p64fail1.xml')). |
|
4710 ] raise: SAXParseError. |
|
4711 |
|
4712 "Modified: / 25-10-2005 / 14:59:07 / janfrog" |
|
4713 ! |
|
4714 |
|
4715 test_o_p64fail2 |
|
4716 |
|
4717 |
|
4718 "Sections: 3.4 [64]" |
|
4719 "Description: |
|
4720 section delimiters must balance |
|
4721 " |
|
4722 |
|
4723 |
|
4724 self should:[ |
|
4725 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p64fail2.xml')). |
|
4726 ] raise: SAXParseError. |
|
4727 |
|
4728 "Modified: / 25-10-2005 / 14:59:07 / janfrog" |
|
4729 ! |
|
4730 |
|
4731 test_o_p64pass1 |
|
4732 |
|
4733 |
|
4734 "Sections: 3.4 [64]" |
|
4735 "Description: |
|
4736 IGNOREd sections ignore everything except section delimiters |
|
4737 " |
|
4738 |
|
4739 |
|
4740 self shouldnt:[ |
|
4741 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p64pass1.xml')). |
|
4742 ] raise: Error. |
|
4743 |
|
4744 "Modified: / 25-10-2005 / 14:58:54 / janfrog" |
|
4745 ! |
|
4746 |
|
4747 test_o_p66fail1 |
|
4748 |
|
4749 |
|
4750 "Sections: 4.1 [66]" |
|
4751 "Description: |
|
4752 terminating ';' is required |
|
4753 " |
|
4754 |
|
4755 |
|
4756 self should:[ |
|
4757 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p66fail1.xml')). |
|
4758 ] raise: SAXParseError. |
|
4759 |
|
4760 "Modified: / 25-10-2005 / 14:59:07 / janfrog" |
|
4761 ! |
|
4762 |
|
4763 test_o_p66fail2 |
|
4764 |
|
4765 |
|
4766 "Sections: 4.1 [66]" |
|
4767 "Description: |
|
4768 no S after '&#' |
|
4769 " |
|
4770 |
|
4771 |
|
4772 self should:[ |
|
4773 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p66fail2.xml')). |
|
4774 ] raise: SAXParseError. |
|
4775 |
|
4776 "Modified: / 25-10-2005 / 14:59:07 / janfrog" |
|
4777 ! |
|
4778 |
|
4779 test_o_p66fail3 |
|
4780 |
|
4781 |
|
4782 "Sections: 4.1 [66]" |
|
4783 "Description: |
|
4784 no hex digits in numeric reference |
|
4785 " |
|
4786 |
|
4787 |
|
4788 self should:[ |
|
4789 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p66fail3.xml')). |
|
4790 ] raise: SAXParseError. |
|
4791 |
|
4792 "Modified: / 25-10-2005 / 14:59:07 / janfrog" |
|
4793 ! |
|
4794 |
|
4795 test_o_p66fail4 |
|
4796 |
|
4797 |
|
4798 "Sections: 4.1 [66]" |
|
4799 "Description: |
|
4800 only hex digits in hex references |
|
4801 " |
|
4802 |
|
4803 |
|
4804 self should:[ |
|
4805 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p66fail4.xml')). |
|
4806 ] raise: SAXParseError. |
|
4807 |
|
4808 "Modified: / 25-10-2005 / 14:59:07 / janfrog" |
|
4809 ! |
|
4810 |
|
4811 test_o_p66fail5 |
|
4812 |
|
4813 |
|
4814 "Sections: 4.1 [66]" |
|
4815 "Description: |
|
4816 no references to non-characters |
|
4817 " |
|
4818 |
|
4819 |
|
4820 self should:[ |
|
4821 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p66fail5.xml')). |
|
4822 ] raise: SAXParseError. |
|
4823 |
|
4824 "Modified: / 25-10-2005 / 14:59:07 / janfrog" |
|
4825 ! |
|
4826 |
|
4827 test_o_p66fail6 |
|
4828 |
|
4829 |
|
4830 "Sections: 4.1 [66]" |
|
4831 "Description: |
|
4832 no references to non-characters |
|
4833 " |
|
4834 |
|
4835 |
|
4836 self should:[ |
|
4837 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p66fail6.xml')). |
|
4838 ] raise: SAXParseError. |
|
4839 |
|
4840 "Modified: / 25-10-2005 / 14:59:07 / janfrog" |
|
4841 ! |
|
4842 |
|
4843 test_o_p66pass1 |
|
4844 |
|
4845 |
|
4846 "Sections: 4.1 [66]" |
|
4847 "Description: |
|
4848 valid character references |
|
4849 " |
|
4850 |
|
4851 |
|
4852 self shouldnt:[ |
|
4853 "This test must pass in non-validating parser." |
|
4854 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p66pass1.xml')). |
|
4855 ] raise: Error. |
|
4856 |
|
4857 "Modified: / 25-10-2005 / 14:58:56 / janfrog" |
|
4858 ! |
|
4859 |
|
4860 test_o_p68fail1 |
|
4861 |
|
4862 |
|
4863 "Sections: 4.1 [68]" |
|
4864 "Description: |
|
4865 terminating ';' is required |
|
4866 " |
|
4867 |
|
4868 |
|
4869 self should:[ |
|
4870 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p68fail1.xml')). |
|
4871 ] raise: SAXParseError. |
|
4872 |
|
4873 "Modified: / 25-10-2005 / 14:59:08 / janfrog" |
|
4874 ! |
|
4875 |
|
4876 test_o_p68fail2 |
|
4877 |
|
4878 |
|
4879 "Sections: 4.1 [68]" |
|
4880 "Description: |
|
4881 no S after '&' |
|
4882 " |
|
4883 |
|
4884 |
|
4885 self should:[ |
|
4886 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p68fail2.xml')). |
|
4887 ] raise: SAXParseError. |
|
4888 |
|
4889 "Modified: / 25-10-2005 / 14:59:08 / janfrog" |
|
4890 ! |
|
4891 |
|
4892 test_o_p68fail3 |
|
4893 |
|
4894 |
|
4895 "Sections: 4.1 [68]" |
|
4896 "Description: |
|
4897 no S before ';' |
|
4898 " |
|
4899 |
|
4900 |
|
4901 self should:[ |
|
4902 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p68fail3.xml')). |
|
4903 ] raise: SAXParseError. |
|
4904 |
|
4905 "Modified: / 25-10-2005 / 14:59:08 / janfrog" |
|
4906 ! |
|
4907 |
|
4908 test_o_p68pass1 |
|
4909 |
|
4910 |
|
4911 "Sections: 4.1 [68]" |
|
4912 "Description: |
|
4913 Valid entity references. Also ensures that a charref to |
|
4914 '&' isn't interpreted as an entity reference open delimiter |
|
4915 " |
|
4916 |
|
4917 |
|
4918 self shouldnt:[ |
|
4919 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p68pass1.xml')). |
|
4920 ] raise: Error. |
|
4921 |
|
4922 "Modified: / 25-10-2005 / 14:58:54 / janfrog" |
|
4923 ! |
|
4924 |
|
4925 test_o_p69fail1 |
|
4926 |
|
4927 |
|
4928 "Sections: 4.1 [69]" |
|
4929 "Description: |
|
4930 terminating ';' is required |
|
4931 " |
|
4932 |
|
4933 |
|
4934 self should:[ |
|
4935 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p69fail1.xml')). |
|
4936 ] raise: SAXParseError. |
|
4937 |
|
4938 "Modified: / 25-10-2005 / 14:59:08 / janfrog" |
|
4939 ! |
|
4940 |
|
4941 test_o_p69fail2 |
|
4942 |
|
4943 |
|
4944 "Sections: 4.1 [69]" |
|
4945 "Description: |
|
4946 no S after '%' |
|
4947 " |
|
4948 |
|
4949 |
|
4950 self should:[ |
|
4951 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p69fail2.xml')). |
|
4952 ] raise: SAXParseError. |
|
4953 |
|
4954 "Modified: / 25-10-2005 / 14:59:08 / janfrog" |
|
4955 ! |
|
4956 |
|
4957 test_o_p69fail3 |
|
4958 |
|
4959 |
|
4960 "Sections: 4.1 [69]" |
|
4961 "Description: |
|
4962 no S before ';' |
|
4963 " |
|
4964 |
|
4965 |
|
4966 self should:[ |
|
4967 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p69fail3.xml')). |
|
4968 ] raise: SAXParseError. |
|
4969 |
|
4970 "Modified: / 25-10-2005 / 14:59:08 / janfrog" |
|
4971 ! |
|
4972 |
|
4973 test_o_p69pass1 |
|
4974 |
|
4975 |
|
4976 "Sections: 4.1 [69]" |
|
4977 "Description: |
|
4978 Valid PEReferences. |
|
4979 " |
|
4980 |
|
4981 |
|
4982 self shouldnt:[ |
|
4983 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p69pass1.xml')). |
|
4984 ] raise: Error. |
|
4985 |
|
4986 "Modified: / 25-10-2005 / 14:58:54 / janfrog" |
|
4987 ! |
|
4988 |
|
4989 test_o_p70fail1 |
|
4990 |
|
4991 |
|
4992 "Sections: 4.2 [70]" |
|
4993 "Description: |
|
4994 This is neither |
|
4995 " |
|
4996 |
|
4997 |
|
4998 self should:[ |
|
4999 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p70fail1.xml')). |
|
5000 ] raise: SAXParseError. |
|
5001 |
|
5002 "Modified: / 25-10-2005 / 14:59:08 / janfrog" |
|
5003 ! |
|
5004 |
|
5005 test_o_p70pass1 |
|
5006 |
|
5007 |
|
5008 "Sections: 4.2 [70]" |
|
5009 "Description: |
|
5010 An EntityDecl is either a GEDecl or a PEDecl |
|
5011 " |
|
5012 |
|
5013 |
|
5014 self shouldnt:[ |
|
5015 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p70pass1.xml')). |
|
5016 ] raise: Error. |
|
5017 |
|
5018 "Modified: / 25-10-2005 / 14:58:54 / janfrog" |
|
5019 ! |
|
5020 |
|
5021 test_o_p71fail1 |
|
5022 |
|
5023 |
|
5024 "Sections: 4.2 [71]" |
|
5025 "Description: |
|
5026 S is required before EntityDef |
|
5027 " |
|
5028 |
|
5029 |
|
5030 self should:[ |
|
5031 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p71fail1.xml')). |
|
5032 ] raise: SAXParseError. |
|
5033 |
|
5034 "Modified: / 25-10-2005 / 14:59:08 / janfrog" |
|
5035 ! |
|
5036 |
|
5037 test_o_p71fail2 |
|
5038 |
|
5039 |
|
5040 "Sections: 4.2 [71]" |
|
5041 "Description: |
|
5042 Entity name is a Name, not an NMToken |
|
5043 " |
|
5044 |
|
5045 |
|
5046 self should:[ |
|
5047 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p71fail2.xml')). |
|
5048 ] raise: SAXParseError. |
|
5049 |
|
5050 "Modified: / 25-10-2005 / 14:59:08 / janfrog" |
|
5051 ! |
|
5052 |
|
5053 test_o_p71fail3 |
|
5054 |
|
5055 |
|
5056 "Sections: 4.2 [71]" |
|
5057 "Description: |
|
5058 no S after `<i` |
|
5059 " |
|
5060 |
|
5061 |
|
5062 self should:[ |
|
5063 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p71fail3.xml')). |
|
5064 ] raise: SAXParseError. |
|
5065 |
|
5066 "Modified: / 25-10-2005 / 14:59:08 / janfrog" |
|
5067 ! |
|
5068 |
|
5069 test_o_p71fail4 |
|
5070 |
|
5071 |
|
5072 "Sections: 4.2 [71]" |
|
5073 "Description: |
|
5074 S is required after `<iENTITY` |
|
5075 " |
|
5076 |
|
5077 |
|
5078 self should:[ |
|
5079 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p71fail4.xml')). |
|
5080 ] raise: SAXParseError. |
|
5081 |
|
5082 "Modified: / 25-10-2005 / 14:59:08 / janfrog" |
|
5083 ! |
|
5084 |
|
5085 test_o_p71pass1 |
|
5086 |
|
5087 |
|
5088 "Sections: 4.2 [71]" |
|
5089 "Description: |
|
5090 Valid GEDecls |
|
5091 " |
|
5092 |
|
5093 |
|
5094 self shouldnt:[ |
|
5095 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p71pass1.xml')). |
|
5096 ] raise: Error. |
|
5097 |
|
5098 "Modified: / 25-10-2005 / 14:58:54 / janfrog" |
|
5099 ! |
|
5100 |
|
5101 test_o_p72fail1 |
|
5102 |
|
5103 |
|
5104 "Sections: 4.2 [72]" |
|
5105 "Description: |
|
5106 S is required after `<iENTITY` |
|
5107 " |
|
5108 |
|
5109 |
|
5110 self should:[ |
|
5111 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p72fail1.xml')). |
|
5112 ] raise: SAXParseError. |
|
5113 |
|
5114 "Modified: / 25-10-2005 / 14:59:08 / janfrog" |
|
5115 ! |
|
5116 |
|
5117 test_o_p72fail2 |
|
5118 |
|
5119 |
|
5120 "Sections: 4.2 [72]" |
|
5121 "Description: |
|
5122 S is required after '%' |
|
5123 " |
|
5124 |
|
5125 |
|
5126 self should:[ |
|
5127 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p72fail2.xml')). |
|
5128 ] raise: SAXParseError. |
|
5129 |
|
5130 "Modified: / 25-10-2005 / 14:59:08 / janfrog" |
|
5131 ! |
|
5132 |
|
5133 test_o_p72fail3 |
|
5134 |
|
5135 |
|
5136 "Sections: 4.2 [72]" |
|
5137 "Description: |
|
5138 S is required after name |
|
5139 " |
|
5140 |
|
5141 |
|
5142 self should:[ |
|
5143 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p72fail3.xml')). |
|
5144 ] raise: SAXParseError. |
|
5145 |
|
5146 "Modified: / 25-10-2005 / 14:59:08 / janfrog" |
|
5147 ! |
|
5148 |
|
5149 test_o_p72fail4 |
|
5150 |
|
5151 |
|
5152 "Sections: 4.2 [72]" |
|
5153 "Description: |
|
5154 Entity name is a name, not an NMToken |
|
5155 " |
|
5156 |
|
5157 |
|
5158 self should:[ |
|
5159 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p72fail4.xml')). |
|
5160 ] raise: SAXParseError. |
|
5161 |
|
5162 "Modified: / 25-10-2005 / 14:59:08 / janfrog" |
|
5163 ! |
|
5164 |
|
5165 test_o_p72pass1 |
|
5166 |
|
5167 |
|
5168 "Sections: 4.2 [72]" |
|
5169 "Description: |
|
5170 Valid PEDecls |
|
5171 " |
|
5172 |
|
5173 |
|
5174 self shouldnt:[ |
|
5175 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p72pass1.xml')). |
|
5176 ] raise: Error. |
|
5177 |
|
5178 "Modified: / 25-10-2005 / 14:58:54 / janfrog" |
|
5179 ! |
|
5180 |
|
5181 test_o_p73fail1 |
|
5182 |
|
5183 |
|
5184 "Sections: 4.2 [73]" |
|
5185 "Description: |
|
5186 No typed replacement text |
|
5187 " |
|
5188 |
|
5189 |
|
5190 self should:[ |
|
5191 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p73fail1.xml')). |
|
5192 ] raise: SAXParseError. |
|
5193 |
|
5194 "Modified: / 25-10-2005 / 14:59:08 / janfrog" |
|
5195 ! |
|
5196 |
|
5197 test_o_p73fail2 |
|
5198 |
|
5199 |
|
5200 "Sections: 4.2 [73]" |
|
5201 "Description: |
|
5202 Only one replacement value |
|
5203 " |
|
5204 |
|
5205 |
|
5206 self should:[ |
|
5207 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p73fail2.xml')). |
|
5208 ] raise: SAXParseError. |
|
5209 |
|
5210 "Modified: / 25-10-2005 / 14:59:08 / janfrog" |
|
5211 ! |
|
5212 |
|
5213 test_o_p73fail3 |
|
5214 |
|
5215 |
|
5216 "Sections: 4.2 [73]" |
|
5217 "Description: |
|
5218 No NDataDecl on replacement text |
|
5219 " |
|
5220 |
|
5221 |
|
5222 self should:[ |
|
5223 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p73fail3.xml')). |
|
5224 ] raise: SAXParseError. |
|
5225 |
|
5226 "Modified: / 25-10-2005 / 14:59:08 / janfrog" |
|
5227 ! |
|
5228 |
|
5229 test_o_p73fail4 |
|
5230 |
|
5231 |
|
5232 "Sections: 4.2 [73]" |
|
5233 "Description: |
|
5234 Value is required |
|
5235 " |
|
5236 |
|
5237 |
|
5238 self should:[ |
|
5239 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p73fail4.xml')). |
|
5240 ] raise: SAXParseError. |
|
5241 |
|
5242 "Modified: / 25-10-2005 / 14:59:09 / janfrog" |
|
5243 ! |
|
5244 |
|
5245 test_o_p73fail5 |
|
5246 |
|
5247 |
|
5248 "Sections: 4.2 [73]" |
|
5249 "Description: |
|
5250 No NDataDecl without value |
|
5251 " |
|
5252 |
|
5253 |
|
5254 self should:[ |
|
5255 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p73fail5.xml')). |
|
5256 ] raise: SAXParseError. |
|
5257 |
|
5258 "Modified: / 25-10-2005 / 14:59:09 / janfrog" |
|
5259 ! |
|
5260 |
|
5261 test_o_p73pass1 |
|
5262 |
|
5263 |
|
5264 "Sections: 4.2 [73]" |
|
5265 "Description: |
|
5266 EntityDef is either Entity value or an external id, |
|
5267 with an optional NDataDecl |
|
5268 " |
|
5269 |
|
5270 |
|
5271 self shouldnt:[ |
|
5272 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p73pass1.xml')). |
|
5273 ] raise: Error. |
|
5274 |
|
5275 "Modified: / 25-10-2005 / 14:58:54 / janfrog" |
|
5276 ! |
|
5277 |
|
5278 test_o_p74fail1 |
|
5279 |
|
5280 |
|
5281 "Sections: 4.2 [74]" |
|
5282 "Description: |
|
5283 no NDataDecls on parameter entities |
|
5284 " |
|
5285 |
|
5286 |
|
5287 self should:[ |
|
5288 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p74fail1.xml')). |
|
5289 ] raise: SAXParseError. |
|
5290 |
|
5291 "Modified: / 25-10-2005 / 14:59:09 / janfrog" |
|
5292 ! |
|
5293 |
|
5294 test_o_p74fail2 |
|
5295 |
|
5296 |
|
5297 "Sections: 4.2 [74]" |
|
5298 "Description: |
|
5299 value is required |
|
5300 " |
|
5301 |
|
5302 |
|
5303 self should:[ |
|
5304 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p74fail2.xml')). |
|
5305 ] raise: SAXParseError. |
|
5306 |
|
5307 "Modified: / 25-10-2005 / 14:59:09 / janfrog" |
|
5308 ! |
|
5309 |
|
5310 test_o_p74fail3 |
|
5311 |
|
5312 |
|
5313 "Sections: 4.2 [74]" |
|
5314 "Description: |
|
5315 only one value |
|
5316 " |
|
5317 |
|
5318 |
|
5319 self should:[ |
|
5320 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p74fail3.xml')). |
|
5321 ] raise: SAXParseError. |
|
5322 |
|
5323 "Modified: / 25-10-2005 / 14:59:09 / janfrog" |
|
5324 ! |
|
5325 |
|
5326 test_o_p74pass1 |
|
5327 |
|
5328 |
|
5329 "Sections: 4.2 [74]" |
|
5330 "Description: |
|
5331 PEDef is either an entity value or an external id |
|
5332 " |
|
5333 |
|
5334 |
|
5335 self shouldnt:[ |
|
5336 "This test must pass in non-validating parser." |
|
5337 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p74pass1.xml')). |
|
5338 ] raise: Error. |
|
5339 |
|
5340 "Modified: / 25-10-2005 / 14:58:56 / janfrog" |
|
5341 ! |
|
5342 |
|
5343 test_o_p75fail1 |
|
5344 |
|
5345 |
|
5346 "Sections: 4.2.2 [75]" |
|
5347 "Description: |
|
5348 S required after `PUBLIC` |
|
5349 " |
|
5350 |
|
5351 |
|
5352 self should:[ |
|
5353 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p75fail1.xml')). |
|
5354 ] raise: SAXParseError. |
|
5355 |
|
5356 "Modified: / 25-10-2005 / 14:59:09 / janfrog" |
|
5357 ! |
|
5358 |
|
5359 test_o_p75fail2 |
|
5360 |
|
5361 |
|
5362 "Sections: 4.2.2 [75]" |
|
5363 "Description: |
|
5364 S required after `SYSTEM` |
|
5365 " |
|
5366 |
|
5367 |
|
5368 self should:[ |
|
5369 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p75fail2.xml')). |
|
5370 ] raise: SAXParseError. |
|
5371 |
|
5372 "Modified: / 25-10-2005 / 14:59:09 / janfrog" |
|
5373 ! |
|
5374 |
|
5375 test_o_p75fail3 |
|
5376 |
|
5377 |
|
5378 "Sections: 4.2.2 [75]" |
|
5379 "Description: |
|
5380 S required between literals |
|
5381 " |
|
5382 |
|
5383 |
|
5384 self should:[ |
|
5385 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p75fail3.xml')). |
|
5386 ] raise: SAXParseError. |
|
5387 |
|
5388 "Modified: / 25-10-2005 / 14:59:09 / janfrog" |
|
5389 ! |
|
5390 |
|
5391 test_o_p75fail4 |
|
5392 |
|
5393 |
|
5394 "Sections: 4.2.2 [75]" |
|
5395 "Description: |
|
5396 `SYSTEM` implies only one literal |
|
5397 " |
|
5398 |
|
5399 |
|
5400 self should:[ |
|
5401 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p75fail4.xml')). |
|
5402 ] raise: SAXParseError. |
|
5403 |
|
5404 "Modified: / 25-10-2005 / 14:59:09 / janfrog" |
|
5405 ! |
|
5406 |
|
5407 test_o_p75fail5 |
|
5408 |
|
5409 |
|
5410 "Sections: 4.2.2 [75]" |
|
5411 "Description: |
|
5412 only one keyword |
|
5413 " |
|
5414 |
|
5415 |
|
5416 self should:[ |
|
5417 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p75fail5.xml')). |
|
5418 ] raise: SAXParseError. |
|
5419 |
|
5420 "Modified: / 25-10-2005 / 14:59:09 / janfrog" |
|
5421 ! |
|
5422 |
|
5423 test_o_p75fail6 |
|
5424 |
|
5425 |
|
5426 "Sections: 4.2.2 [75]" |
|
5427 "Description: |
|
5428 `PUBLIC` requires two literals (contrast with SGML) |
|
5429 " |
|
5430 |
|
5431 |
|
5432 self should:[ |
|
5433 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p75fail6.xml')). |
|
5434 ] raise: SAXParseError. |
|
5435 |
|
5436 "Modified: / 25-10-2005 / 14:59:09 / janfrog" |
|
5437 ! |
|
5438 |
|
5439 test_o_p75pass1 |
|
5440 |
|
5441 |
|
5442 "Sections: 4.2.2 [75]" |
|
5443 "Description: |
|
5444 valid external identifiers |
|
5445 " |
|
5446 |
|
5447 |
|
5448 self shouldnt:[ |
|
5449 "This test must pass in non-validating parser." |
|
5450 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p75pass1.xml')). |
|
5451 ] raise: Error. |
|
5452 |
|
5453 "Modified: / 25-10-2005 / 14:58:56 / janfrog" |
|
5454 ! |
|
5455 |
|
5456 test_o_p76fail1 |
|
5457 |
|
5458 |
|
5459 "Sections: 4.2.2 [76]" |
|
5460 "Description: |
|
5461 S is required before `NDATA` |
|
5462 " |
|
5463 |
|
5464 |
|
5465 self should:[ |
|
5466 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p76fail1.xml')). |
|
5467 ] raise: SAXParseError. |
|
5468 |
|
5469 "Modified: / 25-10-2005 / 14:59:09 / janfrog" |
|
5470 ! |
|
5471 |
|
5472 test_o_p76fail2 |
|
5473 |
|
5474 |
|
5475 "Sections: 4.2.2 [76]" |
|
5476 "Description: |
|
5477 `NDATA` is upper-case |
|
5478 " |
|
5479 |
|
5480 |
|
5481 self should:[ |
|
5482 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p76fail2.xml')). |
|
5483 ] raise: SAXParseError. |
|
5484 |
|
5485 "Modified: / 25-10-2005 / 14:59:09 / janfrog" |
|
5486 ! |
|
5487 |
|
5488 test_o_p76fail3 |
|
5489 |
|
5490 |
|
5491 "Sections: 4.2.2 [76]" |
|
5492 "Description: |
|
5493 notation name is required |
|
5494 " |
|
5495 |
|
5496 |
|
5497 self should:[ |
|
5498 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p76fail3.xml')). |
|
5499 ] raise: SAXParseError. |
|
5500 |
|
5501 "Modified: / 25-10-2005 / 14:59:09 / janfrog" |
|
5502 ! |
|
5503 |
|
5504 test_o_p76fail4 |
|
5505 |
|
5506 |
|
5507 "Sections: 4.2.2 [76]" |
|
5508 "Description: |
|
5509 notation names are Names |
|
5510 " |
|
5511 |
|
5512 |
|
5513 self should:[ |
|
5514 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p76fail4.xml')). |
|
5515 ] raise: SAXParseError. |
|
5516 |
|
5517 "Modified: / 25-10-2005 / 14:59:09 / janfrog" |
|
5518 ! |
|
5519 |
|
5520 test_o_p76pass1 |
|
5521 |
|
5522 |
|
5523 "Sections: 4.2.2 [76]" |
|
5524 "Description: |
|
5525 valid NDataDecls |
|
5526 " |
|
5527 |
|
5528 |
|
5529 self shouldnt:[ |
|
5530 XMLReader new parseInputSource:(InputSource onFile:(W3XMLTestSuiteResource current filesDirectory construct:'oasis/p76pass1.xml')). |
|
5531 ] raise: Error. |
|
5532 |
|
5533 "Modified: / 25-10-2005 / 14:58:54 / janfrog" |
|
5534 ! ! |
|
5535 |
|
5536 !OASISXMLTests class methodsFor:'documentation'! |
|
5537 |
|
5538 version |
|
5539 ^ '$Header: /opt/data/cvs/stx/goodies/xmlsuite/XMLv2__OASISXMLTests.st,v 1.1.1.1 2005-11-01 22:05:57 vranyj1 Exp $' |
|
5540 ! ! |