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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Sun Aug 3 07:14:00 2008 UTC (17 years, 11 months ago) by wakaba
Branch: MAIN
Changes since 1.4: +16 -3 lines
++ whatpm/t/ChangeLog	3 Aug 2008 07:13:09 -0000
2008-08-03  Wakaba  <wakaba@suika.fam.cx>

	* WebIDL.t: Test data files for exceptions, typedefs,
	and valuetypes are added to the list.

++ whatpm/t/webidl/ChangeLog	3 Aug 2008 07:13:55 -0000
	* webidl-exception.dat, webidl-typedef.dat,
	webidl-valuetype.dat: New test data files.

	* webidl-defs.dat, webidl-interface.dat: Test result updated.

	* webidl-interface.dat: More test data added.

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

++ whatpm/Whatpm/ChangeLog	3 Aug 2008 07:12:35 -0000
	* WebIDL.pm ($get_scoped_name): Append "::::" if the last
	terminal of the ScopedName is "DOMString", such that whether
	the last part of the scoped name is "DOMString" or "_DOMString"
	later.  It is necessary to determine whether a |typedef|
	definition should be ignored or not.
	(parse_char_string): Unescape the identifier of
	exception members.
	($resolve): Return undef for builtin types and sequence<T>
	types (we might not have to do this, however...).
	(check): Support checking for Exceptions, Valuetypes,
	and Typedefs.
	($serialize_type): Support for "DOMString::::" syntax.
	(Typedef idl_text): Output Type as "DOMString" if it
	is really "DOMString" (i.e. its internal representation
	is "::DOMString::").

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

1 #data
2 interface abc;
3 #errors
4 1;non-module definition;s
5 #document
6 | interface abc;
7
8 #data
9 interface abc : def;
10 #errors
11 1.20;before interface block;m
12 #document
13
14 #data
15 interface abc : def;
16 interface xyz;
17 #errors
18 1.20;before interface block;m
19 2;non-module definition;s
20 #document
21 | interface xyz;
22
23 #data
24 module m {
25 interface x {
26 attribute long a;
27 attribute long b;
28 };};
29 #errors
30 #document
31 | module m {
32 |
33 | interface x {
34 | attribute long a;
35 | attribute long b;
36 | };
37 |
38 | };
39
40 #data
41 module m {
42 interface x {
43 attribute long a;
44 attribute long a;
45 };};
46 #errors
47 4;duplicate member;m
48 #document
49 | module m {
50 |
51 | interface x {
52 | attribute long a;
53 | attribute long a;
54 | };
55 |
56 | };
57
58 #data
59 module m {
60 interface x {
61 attribute long a;
62 };
63 interface x {
64 attribute long a;
65 };};
66 #errors
67 5;duplicate qname;m
68
69 #data
70 module m {
71 interface x {
72 attribute long a;
73 attribute long _a;
74 };};
75 #errors
76 4;duplicate member;m
77
78 #data
79 module m {
80 interface x {
81 attribute long a;
82 attribute long __a;
83 };};
84 #errors
85
86 #data
87 module m {
88 interface x {
89 attribute long a;
90 const long a = 1;
91 };};
92 #errors
93 4;duplicate member;m
94
95 #data
96 module m {
97 interface x {
98 attribute long a;
99 };
100 interface y {
101 attribute long a;
102 };
103 };
104 #errors
105
106 #data
107 module m {
108 interface x {
109 long a ();
110 long a ();
111 };};
112 #errors
113
114 #data
115 interface x {};
116 interface y : x {};
117 #errors
118 1;non-module definition;s
119 2;non-module definition;s
120
121 #data
122 interface x;
123 interface y : x {};
124 #errors
125 1;non-module definition;s
126 2;non-module definition;s
127
128 #data
129 interface x : y {};
130 #errors
131 1;non-module definition;s
132 1;interface not defined;m;y
133
134 #data
135 module m {
136 interface x {};
137 interface y : x {};
138 };
139 #errors
140
141 #data
142 module m {
143 interface x {};
144 };
145 module n {
146 interface y : x {};
147 };
148 #errors
149 5;interface not defined;m;x
150
151 #data
152 module m {
153 interface x : y::DOMString {};
154 };
155 #errors
156 2;interface not defined;m;y::DOMString
157
158 #data
159 module m {
160 interface _DOMString {};
161 interface x : _DOMString {};
162 };
163 #errors
164
165 #data
166 module m {
167 interface _DOMString {};
168 interface x : m::_DOMString {};
169 };
170 #errors
171 3;interface not defined;m;m::DOMString
172
173 #data
174 module m {
175 interface _DOMString {};
176 interface x : m::DOMString {};
177 };
178 #errors
179 3;interface not defined;m;m::DOMString
180
181 #data
182 module m {
183 interface _DOMString {};
184 interface x : ::m::_DOMString {};
185 };
186 #errors
187 3;interface not defined;m;::m::DOMString
188
189 #data
190 interface x {}; // defines x1
191 module m {
192 interface y : x {}; // inherits x1
193 interface x : x {}; // defines x2, which inherits x1
194 interface z : x {}; // inherits x2
195 };
196 #errors
197 1;non-module definition;s
198
199 #data
200 module m {
201 interface x : x {};
202 };
203 #errors
204 2;interface not defined;m;x
205
206 #data
207 module m {
208 interface y : x {};
209 interface x {};
210 };
211 #errors
212 2;interface not defined;m;x
213
214 #data
215 module m {
216 interface x {};
217 interface y {};
218 interface z : x, y {};
219 };
220 #errors
221
222 #data
223 module m {
224 interface x : ::x {};
225 };
226 #errors
227 2;interface not defined;m;::x
228
229 #data
230 module m {
231 interface x {};
232 };
233 module n {
234 interface y : m::x {};
235 };
236 #errors
237
238 #data
239 module m {
240 interface x {};
241 module n {
242 interface y : x {};
243 };
244 };
245 #errors
246 4;interface not defined;m;x
247
248 #data
249 module m {
250 module n {
251 interface x {};
252 };
253 };
254 module l {
255 interface y : m::n::x {};
256 };
257 #errors
258
259 #data
260 module m {
261 module n {};
262 interface x : n {};
263 };
264 #errors
265 3;interface not defined;m;n
266
267 #data
268 module m {
269 exception x {};
270 interface y : x {};
271 };
272 #errors
273 3;interface not defined;m;x
274
275 #data
276 module m {
277 interface x;
278 interface y : x {};
279 };
280 #errors
281
282 #data
283 module m {
284 interface i {
285 const long t = 234;
286 };
287 };
288 #errors
289
290 #data
291 module m {
292 interface i {
293 const boolean t = 234;
294 };
295 };
296 #errors
297 3:234;const type mismatch;m;boolean
298
299 #data
300 module m {
301 interface i {
302 const unsigned long t = -02;
303 };
304 };
305 #errors
306 3:-2;const value out of range;m
307
308 #data
309 module m {
310 interface i {
311 const any t = 234;
312 };
313 };
314 #errors
315
316 #data
317 module m {
318 interface i {
319 const long t = 234.4;
320 };
321 };
322 #errors
323 3:234.4;const type mismatch;m;long
324
325 #data
326 module m {
327 interface i {
328 const long t =TRUE;
329 };
330 };
331 #errors
332 3:TRUE;const type mismatch;m;long
333
334 #data
335 module m {
336 interface i {
337 const DOMString t = 234;
338 };
339 };
340 #errors
341 3:234;const type mismatch;m;DOMString
342
343 #data
344 module m {
345 const octet LF = 0x0A;
346 };
347 #errors
348 #document
349 | module m {
350 |
351 | const octet LF = 10;
352 |
353 | };
354
355 #data
356 module m {
357 const octet LF = 0X0a;
358 };
359 #errors
360 #document
361 | module m {
362 |
363 | const octet LF = 10;
364 |
365 | };
366
367 #data
368 module m {
369 const octet LF = 012;
370 };
371 #errors
372 #document
373 | module m {
374 |
375 | const octet LF = 10;
376 |
377 | };
378
379 #data
380 module m {
381 const octet LF = 10;
382 };
383 #errors
384 #document
385 | module m {
386 |
387 | const octet LF = 10;
388 |
389 | };
390
391 #data
392 module m {
393 const octet LF = 10.00;
394 };
395 #errors
396 2:10;const type mismatch;m;octet
397 #document
398 | module m {
399 |
400 | const octet LF = 10;
401 |
402 | };
403
404 #data
405 module m {
406 const octet CR = -0x0D;
407 };
408 #errors
409 2:-13;const value out of range;m
410 #document
411 | module m {
412 |
413 | const octet CR = -13;
414 |
415 | };
416
417 #data
418 interface x {};
419 module m {
420 typedef long x;
421 interface y : x {};
422 };
423 #errors
424 1;non-module definition;s
425 4;interface not defined;m;x
426
427 #data
428 module m {
429 interface x {
430 attribute long a;
431 };
432 };
433 #errors
434 #document
435 | module m {
436 |
437 | interface x {
438 | attribute long a;
439 | };
440 |
441 | };
442
443 #data
444 module m {
445 interface x {
446 attribute unsigned short a;
447 };
448 };
449 #errors
450 #document
451 | module m {
452 |
453 | interface x {
454 | attribute unsigned short a;
455 | };
456 |
457 | };
458
459 #data
460 module m {
461 interface x {
462 attribute Object a;
463 };
464 };
465 #errors
466 #document
467 | module m {
468 |
469 | interface x {
470 | attribute Object a;
471 | };
472 |
473 | };
474
475 #data
476 module m {
477 interface x {
478 attribute DOMString a;
479 };
480 };
481 #errors
482 #document
483 | module m {
484 |
485 | interface x {
486 | attribute DOMString a;
487 | };
488 |
489 | };
490
491 #data
492 module m {
493 interface x {
494 attribute _DOMString a;
495 };
496 };
497 #errors
498 3;type not defined;m;DOMString
499
500 #data
501 module m {
502 interface x {
503 attribute m::DOMString a;
504 };
505 };
506 #errors
507 3;type not defined;m;m::DOMString
508 #document
509 | module m {
510 |
511 | interface x {
512 | attribute m::DOMString a;
513 | };
514 |
515 | };
516
517 #data
518 module m {
519 interface x {
520 attribute m::_DOMString a;
521 };
522 };
523 #errors
524 3;type not defined;m;m::DOMString
525
526 #data
527 module m {
528 exception ex {};
529 interface x {
530 attribute ex x;
531 };
532 };
533 #errors
534 4;type not defined;m;ex
535
536 #data
537 module m {
538 typedef long l;
539 interface x {
540 attribute l mylong;
541 };
542 };
543 #errors
544
545 #data
546 module m {
547 valuetype mystr sequence<octet>;
548 interface x {
549 attribute mystr text;
550 };
551 };
552 #errors
553
554 #data
555 module m {
556 const boolean v = TRUE;
557 interface x {
558 attribute v myvalue;
559 };
560 };
561 #errors
562 4;type not defined;m;v
563
564 #data
565 module m {
566 interface x {
567 attribute x a;
568 };
569 };
570 #errors
571 #document
572 | module m {
573 |
574 | interface x {
575 | attribute x a;
576 | };
577 |
578 | };
579
580 #data
581 module m {
582 interface x {
583 attribute m::x a;
584 };
585 };
586 #errors
587 #document
588 | module m {
589 |
590 | interface x {
591 | attribute m::x a;
592 | };
593 |
594 | };
595
596 #data
597 module m {
598 interface y {};
599 interface x {
600 attribute y a;
601 };
602 };
603 #errors
604 #document
605 | module m {
606 |
607 | interface y {
608 | };
609 | interface x {
610 | attribute y a;
611 | };
612 |
613 | };
614
615 #data
616 module m {
617 interface x {
618 attribute y a;
619 };
620 interface y {
621 };
622 };
623 #errors
624 3;type not defined;m;y
625 #document
626 | module m {
627 |
628 | interface x {
629 | attribute y a;
630 | };
631 | interface y {
632 | };
633 |
634 | };
635
636 #data
637 interface y {};
638 module m {
639 interface x {
640 attribute y a;
641 };
642 };
643 #errors
644 1;non-module definition;s
645 #document
646 | interface y {
647 | };
648 |
649 | module m {
650 |
651 | interface x {
652 | attribute y a;
653 | };
654 |
655 | };
656
657 #data
658 interface y {};
659 module m {
660 interface x {
661 attribute ::y a;
662 };
663 };
664 #errors
665 1;non-module definition;s
666 #document
667 | interface y {
668 | };
669 |
670 | module m {
671 |
672 | interface x {
673 | attribute ::y a;
674 | };
675 |
676 | };
677
678 #data
679 module m {
680 interface y {};
681 interface x {
682 attribute ::m::y a;
683 };
684 };
685 #errors
686 #document
687 | module m {
688 |
689 | interface y {
690 | };
691 | interface x {
692 | attribute ::m::y a;
693 | };
694 |
695 | };
696
697 #data
698 module m {
699 exception x {};
700 interface y {
701 attribute boolean a getraises (x);
702 };
703 };
704 #errors
705 #document
706 | module m {
707 |
708 | exception x {
709 | };
710 | interface y {
711 | attribute boolean a getraises (x);
712 | };
713 |
714 | };
715
716 #data
717 module m {
718 exception x {};
719 interface y {
720 attribute boolean a getraises (x,x);
721 };
722 };
723 #errors
724 #document
725 | module m {
726 |
727 | exception x {
728 | };
729 | interface y {
730 | attribute boolean a getraises (x, x);
731 | };
732 |
733 | };
734
735 #data
736 module m {
737 exception x {};
738 interface y {
739 attribute boolean a getraises (x, ::m::x);
740 };
741 };
742 #errors
743 #document
744 | module m {
745 |
746 | exception x {
747 | };
748 | interface y {
749 | attribute boolean a getraises (x, ::m::x);
750 | };
751 |
752 | };
753
754 #data
755 module m {
756 exception x {};
757 interface y {
758 attribute boolean a getraises (x, z);
759 };
760 };
761 #errors
762 4;exception not defined;m;z
763
764 #data
765 module m {
766
767 interface y {
768 attribute boolean a getraises (z);
769 };
770 };
771 #errors
772 4;exception not defined;m;z
773
774 #data
775 module m {
776 exception _DOMString {};
777 interface y {
778 attribute boolean a getraises (_DOMString);
779 };
780 };
781 #errors
782
783 #data
784 module m {
785 exception _DOMString {};
786 interface y {
787 attribute boolean a getraises (m::_DOMString);
788 };
789 };
790 #errors
791 4;exception not defined;m;m::DOMString
792
793 #data
794 exception _DOMString {};
795 module m {
796 interface y {
797 attribute boolean a getraises (::_DOMString);
798 };
799 };
800 #errors
801 1;non-module definition;s
802 4;exception not defined;m;::DOMString
803
804 #data
805 module m {
806 interface y {
807 attribute boolean a getraises (x);
808 };
809 exception x {};
810 };
811 #errors
812 3;exception not defined;m;x
813
814 #data
815 module m {
816 interface x {};
817 interface y {
818 attribute boolean a getraises (x);
819 };
820 };
821 #errors
822 4;exception not defined;m;x
823
824 #data
825 module m {
826 typedef long x;
827 interface y {
828 attribute boolean a getraises (x);
829 };
830 };
831 #errors
832 4;exception not defined;m;x
833
834 #data
835 module m {
836 exception ex {}; typedef ex x;
837 interface y {
838 attribute boolean a getraises (x);
839 };
840 };
841 #errors
842 4;exception not defined;m;x
843
844 #data
845 module m {
846 valuetype x boolean;
847 interface y {
848 attribute boolean a getraises (x);
849 };
850 };
851 #errors
852 4;exception not defined;m;x
853
854 #data
855 module m {
856 exception x {};
857 interface y {
858 attribute boolean a setraises (x);
859 };
860 };
861 #errors
862
863 #data
864 module m {
865
866 interface y {
867 attribute boolean a setraises (x);
868 };
869 };
870 #errors
871 4;exception not defined;m;x
872
873 #data
874 module m {
875 exception x {};
876 interface y {
877 attribute boolean a getraises (x) setraises (x);
878 };
879 };
880 #errors
881
882 #data
883 module m {
884 exception x {};
885 interface y {
886 attribute boolean a getraises (x) setraises (z);
887 };
888 };
889 #errors
890 4;exception not defined;m;z
891
892 #data
893 module m {
894 interface x {
895 void m ();
896 };
897 };
898 #errors
899 #document
900 | module m {
901 |
902 | interface x {
903 | void m ();
904 | };
905 |
906 | };
907
908 #data
909 module m {
910 interface x {
911 long m ();
912 };
913 };
914 #errors
915 #document
916 | module m {
917 |
918 | interface x {
919 | long m ();
920 | };
921 |
922 | };
923
924 #data
925 module m {
926 interface x {
927 long long m ();
928 };
929 };
930 #errors
931 #document
932 | module m {
933 |
934 | interface x {
935 | long long m ();
936 | };
937 |
938 | };
939
940 #data
941 module m {
942 interface x {
943 DOMString m ();
944 };
945 };
946 #errors
947 #document
948 | module m {
949 |
950 | interface x {
951 | DOMString m ();
952 | };
953 |
954 | };
955
956 #data
957 module m {
958 interface x {
959 x m ();
960 };
961 };
962 #errors
963 #document
964 | module m {
965 |
966 | interface x {
967 | x m ();
968 | };
969 |
970 | };
971
972 #data
973 module m {
974 interface x {
975 m::x m ();
976 };
977 };
978 #errors
979 #document
980 | module m {
981 |
982 | interface x {
983 | m::x m ();
984 | };
985 |
986 | };
987
988 #data
989 module m {
990 interface x {
991 ::m::x m ();
992 };
993 };
994 #errors
995 #document
996 | module m {
997 |
998 | interface x {
999 | ::m::x m ();
1000 | };
1001 |
1002 | };
1003
1004 #data
1005 module m {
1006 interface x {
1007 m method ();
1008 };
1009 };
1010 #errors
1011 3;type not defined;m;m
1012
1013 #data
1014 module m {
1015 interface x {
1016 _DOMString method ();
1017 };
1018 };
1019 #errors
1020 3;type not defined;m;DOMString
1021
1022 #data
1023 module m {
1024 interface _DOMString {};
1025 interface x {
1026 _DOMString method ();
1027 };
1028 };
1029 #errors
1030
1031 #data
1032 module m {
1033 interface _DOMString {};
1034 interface x {
1035 m::_DOMString method ();
1036 };
1037 };
1038 #errors
1039 4;type not defined;m;m::DOMString
1040
1041 #data
1042 module m {
1043 interface u {};
1044 interface x {
1045 u method ();
1046 };
1047 };
1048 #errors
1049
1050 #data
1051 interface f {};
1052 module m {
1053 interface x {
1054 f method ();
1055 };
1056 };
1057 #errors
1058 1;non-module definition;s
1059
1060 #data
1061 module m {
1062 interface x {
1063 z method ();
1064 };
1065 };
1066 #errors
1067 3;type not defined;m;z
1068
1069 #data
1070 module m {
1071 typedef long z;
1072 interface x {
1073 z method ();
1074 };
1075 };
1076 #errors
1077
1078 #data
1079 module m {
1080 interface x {
1081 _long method ();
1082 };
1083 };
1084 #errors
1085 3;type not defined;m;long
1086
1087 #data
1088 module m {
1089 valuetype s sequence<DOMString>;
1090 interface x {
1091 s method ();
1092 };
1093 };
1094 #errors
1095
1096 #data
1097 module m {
1098 exception e {};
1099 interface x {
1100 e method ();
1101 };
1102 };
1103 #errors
1104 4;type not defined;m;e
1105
1106 #data
1107 module m {
1108 interface x {
1109 void method (in boolean b);
1110 };
1111 };
1112 #errors
1113 #document
1114 | module m {
1115 |
1116 | interface x {
1117 | void method (in boolean b);
1118 | };
1119 |
1120 | };
1121
1122 #data
1123 module m {
1124 interface x {
1125 void method (in boolean b, in long c);
1126 };
1127 };
1128 #errors
1129 #document
1130 | module m {
1131 |
1132 | interface x {
1133 | void method (in boolean b, in long c);
1134 | };
1135 |
1136 | };
1137
1138 #data
1139 module m {
1140 interface x {
1141 void method (in DOMString b);
1142 };
1143 };
1144 #errors
1145 #document
1146 | module m {
1147 |
1148 | interface x {
1149 | void method (in DOMString b);
1150 | };
1151 |
1152 | };
1153
1154 #data
1155 module m {
1156 interface x {
1157 void method (in x b);
1158 };
1159 };
1160 #errors
1161
1162 #data
1163 module m {
1164 interface x {
1165 void method (in m::x b);
1166 };
1167 };
1168 #errors
1169
1170 #data
1171 module m {
1172 interface x {
1173 void method (in ::m::x b);
1174 };
1175 };
1176 #errors
1177
1178 #data
1179 module m {
1180 typedef sequence<DOMString> ss;
1181 interface x {
1182 void method (in ss b);
1183 };
1184 };
1185 #errors
1186
1187 #data
1188 module m
1189 {
1190 valuetype a long;
1191 interface x {
1192 void method (in a b);
1193 };
1194 };
1195 #errors
1196
1197 #data
1198 module m {
1199 exception ex {};
1200 interface x {
1201 void method (in ex b);
1202 };
1203 };
1204 #errors
1205 4;type not defined;m;ex
1206
1207 #data
1208 module m {
1209 interface x {
1210 void method (in _DOMString b);
1211 };
1212 };
1213 #errors
1214 3;type not defined;m;DOMString
1215
1216 #data
1217 module m {
1218 interface x {
1219 void method (in y b);
1220 };
1221 interface y {};
1222 };
1223 #errors
1224 3;type not defined;m;y
1225
1226 #data
1227 module m {
1228 exception e {};
1229 interface x {
1230 void method () raises (e);
1231 };
1232 };
1233 #errors
1234 #document
1235 | module m {
1236 |
1237 | exception e {
1238 | };
1239 | interface x {
1240 | void method () raises (e);
1241 | };
1242 |
1243 | };
1244
1245 #data
1246 module m {
1247 exception e {};
1248 interface x {
1249 void method () raises (e,e);
1250 };
1251 };
1252 #errors
1253 #document
1254 | module m {
1255 |
1256 | exception e {
1257 | };
1258 | interface x {
1259 | void method () raises (e, e);
1260 | };
1261 |
1262 | };
1263
1264 #data
1265 module m {
1266 exception e {};
1267 exception f {};
1268 interface x {
1269 void method () raises (e, f);
1270 };
1271 };
1272 #errors
1273 #document
1274 | module m {
1275 |
1276 | exception e {
1277 | };
1278 | exception f {
1279 | };
1280 | interface x {
1281 | void method () raises (e, f);
1282 | };
1283 |
1284 | };
1285
1286 #data
1287 module m {
1288 interface x {
1289 void method () raises (e);
1290 };
1291 };
1292 #errors
1293 3;exception not defined;m;e
1294
1295 #data
1296 module m {
1297 interface x {
1298 void method () raises (e);
1299 };
1300 exception e {};
1301 };
1302 #errors
1303 3;exception not defined;m;e
1304
1305 #data
1306 module m {
1307 interface e {};
1308 interface x {
1309 void method () raises (e);
1310 };
1311 };
1312 #errors
1313 4;exception not defined;m;e
1314
1315 #data
1316 module m {
1317 valuetype e long;
1318 interface x {
1319 void method () raises (e);
1320 };
1321 };
1322 #errors
1323 4;exception not defined;m;e
1324
1325 #data
1326 module m {
1327 typedef DOMString e;
1328 interface x {
1329 void method () raises (e);
1330 };
1331 };
1332 #errors
1333 2;typedef ignored;i
1334 4;exception not defined;m;e
1335
1336 #data
1337 module m {
1338 exception ee {};
1339 valuetype e ee;
1340 interface x {
1341 void method () raises (e);
1342 };
1343 };
1344 #errors
1345 3;not boxable type;m;ee
1346 5;exception not defined;m;e

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24