/[suikacvs]/markup/html/whatpm/t/webidl/webidl-defs.dat
Suika

Contents of /markup/html/whatpm/t/webidl/webidl-defs.dat

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Tue Sep 16 13:07:54 2008 UTC (16 years, 1 month ago) by wakaba
Branch: MAIN
Changes since 1.6: +416 -0 lines
++ whatpm/t/webidl/ChangeLog	16 Sep 2008 13:07:37 -0000
	* webidl-defs.dat, webidl-interface.dat, webidl-exception.dat,
	webidl-valuetype.dat, webidl-typedef.dat: New test cases for
	parsing are added.  Some test results are updated for new error
	type names.

2008-09-16  Wakaba  <wakaba@suika.fam.cx>

++ whatpm/Whatpm/ChangeLog	16 Sep 2008 13:06:31 -0000
	* WebIDL.pm: Parser's error types are redefined.  Some forward
	compatible parsing bugs are fixed.  Some unreachable codes are
	commented out.

2008-09-16  Wakaba  <wakaba@suika.fam.cx>

1 #data
2 #errors
3 #document
4
5 #data
6 //
7 #errors
8 #document
9
10 #data
11 interface abc {
12 };
13 #errors
14 1;non-module definition;s
15 #document
16 | interface abc {
17 | };
18
19 #data
20 module abc {
21 };
22 #errors
23 #document
24 | module abc {
25 |
26 |
27 | };
28
29 #data
30 module abc {
31 };interface xyz {};
32 #errors
33 2;non-module definition;s
34 #document
35 | module abc {
36 |
37 |
38 | };
39 |
40 | interface xyz {
41 | };
42
43 #data
44 module abc {
45 interface xyz {
46 };
47 };
48 #errors
49 #document
50 | module abc {
51 |
52 | interface xyz {
53 | };
54 |
55 | };
56
57 #data
58 interface a {};
59 interface b {};
60 #errors
61 1;non-module definition;s
62 2;non-module definition;s
63
64 #data
65 interface a {};
66 interface a {};
67 #errors
68 2;duplicate qname;m
69 1;non-module definition;s
70 2;non-module definition;s
71
72 #data
73 module a {
74 interface b {};
75 };
76 module a {
77 interface b {};
78 };
79 #errors
80 4;duplicate qname;m
81 5;duplicate qname;m
82
83 #data
84 module a {};
85 interface a {};
86 #errors
87 2;duplicate qname;m
88 2;non-module definition;s
89
90 #data
91 module a {};
92 module _a {};
93 #errors
94 2;duplicate qname;m
95
96 #data
97 module a {};
98 module __a {};
99 #errors
100
101 #data
102 module a {
103 interface _b {};
104 interface _b{}
105 ;
106 };
107 #errors
108 3;duplicate qname;m
109
110 #data
111 [ExceptionConsts, abc] interface x {
112 [abc, ExceptionConsts] attribute x b;
113 [abc, ExceptionConsts] void m ([abc, ExceptionConsts] in long a);
114 [abc, ExceptionConsts] const boolean d = FALSE;
115 };
116 [abc, ExceptionConsts=xx] module fd {
117 [abc, ExceptionConsts] interface d {
118
119 };
120 [ExceptionConsts, xxx] exception xx {
121 [ExceptionConsts, eee] long b;
122 };
123 };
124 [abc, ExceptionConsts] const boolean y = TRUE;
125 [def] typedef a b;
126 #errors
127 1;non-module definition;s
128 1;xattr not applicable;w;ExceptionConsts
129 1;unknown xattr;u;abc
130 2;unknown xattr;u;abc
131 2;xattr not applicable;w;ExceptionConsts
132 3;unknown xattr;u;abc
133 3;xattr not applicable;w;ExceptionConsts
134 3;unknown xattr;u;abc
135 3;xattr not applicable;w;ExceptionConsts
136 4;unknown xattr;u;abc
137 4;xattr not applicable;w;ExceptionConsts
138 6;unknown xattr;u;abc
139 7;unknown xattr;u;abc
140 7;xattr not applicable;w;ExceptionConsts
141 10;xattr not applicable;w;ExceptionConsts
142 10;unknown xattr;u;xxx
143 11;xattr not applicable;w;ExceptionConsts
144 11;unknown xattr;u;eee
145 14;xattr not applicable;w;ExceptionConsts
146 14;unknown xattr;u;abc
147 14;non-module definition;s
148 15;unknown xattr;u;def
149 15;non-module definition;s
150 #document
151 | [ExceptionConsts, abc] interface x {
152 | [abc, ExceptionConsts] attribute x b;
153 | [abc, ExceptionConsts] void m ([abc, ExceptionConsts] in long a);
154 | [abc, ExceptionConsts] const boolean d = FALSE;
155 | };
156 |
157 | [abc, ExceptionConsts=xx] module fd {
158 |
159 | [abc, ExceptionConsts] interface d {
160 | };
161 | [ExceptionConsts, xxx] exception xx {
162 | [ExceptionConsts, eee] long b;
163 | };
164 |
165 | };
166 |
167 | [abc, ExceptionConsts] const boolean y = TRUE;
168 |
169 | [def] typedef a b;
170
171 #data
172 typedef unsigned long mylong;
173 #errors
174 1;non-module definition;s
175
176 #data
177 module m{
178 typedef unsigned mylong myownlong;
179 typedef long mylong;
180 };
181 #errors
182 2.23;after unsigned;m
183 #document
184 | module m {
185 |
186 | typedef long mylong;
187 |
188 | };
189
190 #data
191 module m {
192 typedef ::0 y;
193 typedef long mylong;
194 };
195 #errors
196 2.11;scoped name:dcolon;m
197 #document
198 | module m {
199 |
200 | typedef long mylong;
201 |
202 | };
203
204 #data
205 module m {
206 typedef sequence<unsigned long a;
207 typedef long mylong;
208 };
209 #errors
210 2.34;no sequence gt;m
211 #document
212 | module m {
213 |
214 | typedef long mylong;
215 |
216 | };
217
218 #data
219 module m {
220 typedef sequence<;
221 typedef long mylong;
222 };
223 #errors
224 2.18;no sequence type;m
225 #document
226 | module m {
227 |
228 | typedef long mylong;
229 |
230 | };
231
232 #data
233 module m {
234 typedef sequence;
235 typedef long mylong;
236 };
237 #errors
238 2.17;no sequence lt;m
239 #document
240 | module m {
241 |
242 | typedef long mylong;
243 |
244 | };
245
246 #data
247 unknown;
248 module m {};
249 #errors
250 1.7;before webidl defs;m
251 #document
252 | module m {
253 |
254 |
255 | };
256
257 #data
258 [;
259 module m {};
260 #errors
261 1.2;before xattr;m
262 #document
263 | module m {
264 |
265 |
266 | };
267
268 #data
269 [a=];
270 module m{};
271 #errors
272 1.4;before xattrarg;m
273 #document
274 | module m {
275 |
276 |
277 | };
278
279 #data
280 [a=b;
281 module m{};
282 #errors
283 1.5;after xattr;m
284 #document
285 | module m {
286 |
287 |
288 | };
289
290 #data
291 [a();
292 module m{};
293 #errors
294 1.5;after xattr;m
295 #document
296 | module m {
297 |
298 |
299 | };
300
301 #data
302 [a=b();
303 module m{};
304 #errors
305 1.7;after xattr;m
306 #document
307 | module m {
308 |
309 |
310 | };
311
312 #data
313 [a,b;
314 module m{};
315 #errors
316 1.5;after xattr;m
317 #document
318 | module m {
319 |
320 |
321 | };
322
323 #data
324 module {};
325 module m {};
326 #errors
327 1.8;no webidl identifier;m;module
328 #document
329 | module m {
330 |
331 |
332 | };
333
334 #data
335 module m {
336 interface;
337 interface x{};
338 };
339 #errors
340 2.10;no webidl identifier;m;interface
341 #document
342 | module m {
343 |
344 | interface x {
345 | };
346 |
347 | };
348
349 #data
350 module m {
351 exception;
352 interface x{};
353 };
354 #errors
355 2.10;no webidl identifier;m;exception
356 #document
357 | module m {
358 |
359 | interface x {
360 | };
361 |
362 | };
363
364 #data
365 module m {
366 valuetype;
367 interface x{};
368 };
369 #errors
370 2.10;no webidl identifier;m;valuetype
371 #document
372 | module m {
373 |
374 | interface x {
375 | };
376 |
377 | };
378
379 #data
380 module m {
381 valuetype DOMString a;
382 interface x{};
383 };
384 #errors
385 2.21;valuetype DOMString;m
386 #document
387 | module m {
388 |
389 | interface x {
390 | };
391 |
392 | };
393
394 #data
395 module m {
396 valuetype DOMString unsigned short;
397 interface x{};
398 };
399 #errors
400 2.28;valuetype DOMString;m
401 #document
402 | module m {
403 |
404 | interface x {
405 | };
406 |
407 | };
408
409 #data
410 module m {
411 valuetype DOMString _DOMString;
412 interface x{};
413 };
414 #errors
415 2.30;valuetype DOMString;m
416 #document
417 | module m {
418 |
419 | interface x {
420 | };
421 |
422 | };
423
424 #data
425 module m {
426 valuetype DOMString sequence<long>;
427 interface x{};
428 };
429 #errors
430 2.33;valuetype DOMString;m
431 #document
432 | module m {
433 |
434 | interface x {
435 | };
436 |
437 | };
438
439 #data
440 module m {
441 valuetype DOMString sequence<unsigned long>;
442 interface x{};
443 };
444 #errors
445 2.42;valuetype DOMString;m
446 #document
447 | module m {
448 |
449 | interface x {
450 | };
451 |
452 | };
453
454 #data
455 module m {
456 valuetype DOMString sequence<unsigned short>;
457 interface x{};
458 };
459 #errors
460 2;ignored valuetype;i
461 #document
462 | module m {
463 |
464 | valuetype DOMString sequence<unsigned short>;
465 | interface x {
466 | };
467 |
468 | };
469
470 #data
471 module m {
472 valuetype DOMString sequence;
473 interface x{};
474 };
475 #errors
476 2.29;valuetype DOMString;m
477 #document
478 | module m {
479 |
480 | interface x {
481 | };
482 |
483 | };
484
485 #data
486 module m {
487 valuetype DOMString sequence<unsigned;
488 interface x{};
489 };
490 #errors
491 2.38;valuetype DOMString;m
492 #document
493 | module m {
494 |
495 | interface x {
496 | };
497 |
498 | };
499
500 #data
501 module m {
502 valuetype DOMString sequence<unsigned short;
503 interface x{};
504 };
505 #errors
506 2.44;valuetype DOMString;m
507 #document
508 | module m {
509 |
510 | interface x {
511 | };
512 |
513 | };
514
515 #data
516 [x]
517 unknown;
518 module m {};
519 #errors
520 2.7;before webidl def;m
521 #document
522 | module m {
523 |
524 |
525 | };
526
527 #data
528 module m;
529 module n {};
530 #errors
531 1.9;before webidl block;m;module
532 #document
533 | module n {
534 |
535 |
536 | };
537
538 #data
539 module m {
540 const 0;
541 interface x {};
542 };
543 #errors
544 2.7;before webidl type;m;const
545
546 #data
547 module m {
548 const long a;
549 interface x{};
550 };
551 #errors
552 2.13;no const eq;m
553 #document
554 | module m {
555 |
556 | interface x {
557 | };
558 |
559 | };
560
561 #data
562 module m {
563 const long 0;
564 interface x{};
565 };
566 #errors
567 2.12;no webidl identifier;m;const
568 #document
569 | module m {
570 |
571 | interface x {
572 | };
573 |
574 | };
575
576 #data
577 module n;
578 module m {
579 };
580 #errors
581 1.9;before webidl block;m;module
582 #document
583 | module m {
584 |
585 |
586 | };

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24