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: attribute.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 SUCCESS "attribute.tests 1":
38 EXPECT SUCCESS "attribute.tests 2":
40 [attribute] long a {};
44 EXPECT FAILURE "attribute.tests 3":
52 EXPECT SUCCESS "attribute.tests 4":
61 EXPECT SUCCESS "attribute.tests 5":
70 EXPECT SUCCESS "attribute.tests 6":
80 EXPECT SUCCESS "attribute.tests 7":
90 EXPECT FAILURE "attribute.tests 8":
100 EXPECT FAILURE "attribute.tests 9":
110 EXPECT FAILURE "attribute.tests 10":
113 [attribute] long E1 {
119 EXPECT SUCCESS "attribute.tests 11":
128 EXPECT SUCCESS "attribute.tests 12":
131 [attribute, readonly] long a {
137 EXPECT FAILURE "attribute.tests 13":
140 [attribute, readonly] long a {
146 EXPECT FAILURE "attribute.tests 14":
152 EXPECT SUCCESS "attribute.tests 15":
158 EXPECT FAILURE "attribute.tests 16":
160 [attribute, property] long a;
164 EXPECT FAILURE "attribute.tests 17":
166 [attribute, optional] long a;
170 EXPECT FAILURE "attribute.tests 18":
172 [attribute, maybevoid] long a;
176 EXPECT FAILURE "attribute.tests 19":
178 [attribute, constrained] long a;
182 EXPECT FAILURE "attribute.tests 20":
184 [attribute, transient] long a;
188 EXPECT FAILURE "attribute.tests 21":
190 [attribute, maybeambigious] long a;
194 EXPECT FAILURE "attribute.tests 22":
196 [attribute, maybedefault] long a;
200 EXPECT FAILURE "attribute.tests 23":
202 [attribute, removeable] long a;
206 EXPECT SUCCESS "attribute.tests 24":
208 [attribute, bound] long a;
212 EXPECT SUCCESS "attribute.tests 25":
214 [bound, attribute] long a;
218 EXPECT SUCCESS "attribute.tests 26":
220 [attribute, readonly] long a;
224 EXPECT SUCCESS "attribute.tests 27":
226 [attribute, bound, readonly] long a;