1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: interfaceinheritance.tests,v $
13 # This file is part of OpenOffice.org.
15 # OpenOffice.org is free software: you can redistribute it and/or modify
16 # it under the terms of the GNU Lesser General Public License version 3
17 # only, as published by the Free Software Foundation.
19 # OpenOffice.org is distributed in the hope that it will be useful,
20 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 # GNU Lesser General Public License version 3 for more details
23 # (a copy is included in the LICENSE file that accompanied this code).
25 # You should have received a copy of the GNU Lesser General Public License
26 # version 3 along with OpenOffice.org. If not, see
27 # <http://www.openoffice.org/license.html>
28 # for a copy of the LGPLv3 License.
30 #*************************************************************************
32 EXPECT FAILURE "interfaceinheritance.tests 1":
40 EXPECT FAILURE "interfaceinheritance.tests 2":
44 [optional] interface Base;
48 EXPECT FAILURE "interfaceinheritance.tests 3":
51 [optional] interface Base;
56 EXPECT FAILURE "interfaceinheritance.tests 4":
59 [optional] interface Base;
60 [optional] interface Base;
64 EXPECT FAILURE "interfaceinheritance.tests 5":
66 interface Base2: Base1 {};
73 EXPECT FAILURE "interfaceinheritance.tests 6":
75 interface Base2: Base1 {};
82 EXPECT FAILURE "interfaceinheritance.tests 7":
84 interface Base2: Base1 {};
86 [optional] interface Base1;
91 EXPECT FAILURE "interfaceinheritance.tests 8":
93 interface Base2: Base1 {};
96 [optional] interface Base1;
100 EXPECT SUCCESS "interfaceinheritance.tests 9":
102 interface Base2: Base1 {};
105 [optional] interface Base2;
109 EXPECT SUCCESS "interfaceinheritance.tests 10":
111 interface Base2: Base1 {};
113 [optional] interface Base2;
118 EXPECT SUCCESS "interfaceinheritance.tests 11":
120 interface Base2: Base1 {};
122 [optional] interface Base1;
123 [optional] interface Base2;
127 EXPECT SUCCESS "interfaceinheritance.tests 12":
129 interface Base2: Base1 {};
131 [optional] interface Base2;
132 [optional] interface Base1;
136 EXPECT SUCCESS "interfaceinheritance.tests 13":
138 interface Base2 { [optional] interface Base1; };
145 EXPECT SUCCESS "interfaceinheritance.tests 14":
147 interface Base2 { [optional] interface Base1; };
154 EXPECT FAILURE "interfaceinheritance.tests 15":
156 interface Base2 { [optional] interface Base1; };
158 [optional] interface Base1;
163 EXPECT FAILURE "interfaceinheritance.tests 16":
165 interface Base2 { [optional] interface Base1; };
168 [optional] interface Base1;
172 EXPECT SUCCESS "interfaceinheritance.tests 17":
174 interface Base2 { [optional] interface Base1; };
177 [optional] interface Base2;
181 EXPECT SUCCESS "interfaceinheritance.tests 18":
183 interface Base2 { [optional] interface Base1; };
185 [optional] interface Base2;
190 EXPECT SUCCESS "interfaceinheritance.tests 19":
192 interface Base2 { [optional] interface Base1; };
194 [optional] interface Base1;
195 [optional] interface Base2;
199 EXPECT SUCCESS "interfaceinheritance.tests 20":
201 interface Base2 { [optional] interface Base1; };
203 [optional] interface Base2;
204 [optional] interface Base1;
208 EXPECT SUCCESS "interfaceinheritance.tests 21":
210 interface Base2: Base1 {};
211 interface Base3: Base1 {};
218 EXPECT SUCCESS "interfaceinheritance.tests 22":
220 interface Base2: Base1 {};
221 interface Base3: Base1 {};
223 [optional] interface Base2;
228 EXPECT SUCCESS "interfaceinheritance.tests 23":
230 interface Base2: Base1 {};
231 interface Base3: Base1 {};
234 [optional] interface Base3;
238 EXPECT SUCCESS "interfaceinheritance.tests 24":
240 interface Base2: Base1 {};
241 interface Base3: Base1 {};
243 [optional] interface Base2;
244 [optional] interface Base3;
248 EXPECT SUCCESS "interfaceinheritance.tests 25":
251 [optional] interface Base;
255 EXPECT FAILURE "interfaceinheritance.tests 26":
262 EXPECT FAILURE "interfaceinheritance.tests 27":
265 [optional] interface Base;
269 EXPECT FAILURE "interfaceinheritance.tests 28":
278 EXPECT FAILURE "interfaceinheritance.tests 29":