INTEGRATION: CWS jsc14 (1.3.40); FILE MERGED

2006/10/25 13:51:06 jsc 1.3.40.1: #i69727# adapt and simplify tests
This commit is contained in:
Kurt Zenker 2006-11-06 13:41:44 +00:00
parent 28cc95290a
commit 5b54bb6c36
2 changed files with 31 additions and 139 deletions

View file

@ -4,9 +4,9 @@
# #
# $RCSfile: attribute.tests,v $ # $RCSfile: attribute.tests,v $
# #
# $Revision: 1.3 $ # $Revision: 1.4 $
# #
# last change: $Author: rt $ $Date: 2005-09-07 18:17:00 $ # last change: $Author: kz $ $Date: 2006-11-06 14:41:01 $
# #
# The Contents of this file are made available subject to # The Contents of this file are made available subject to
# the terms of GNU Lesser General Public License Version 2.1. # the terms of GNU Lesser General Public License Version 2.1.
@ -34,28 +34,19 @@
#************************************************************************* #*************************************************************************
EXPECT SUCCESS "attribute.tests 1": EXPECT SUCCESS "attribute.tests 1":
module com { module sun { module star { module uno { interface I1 {
interface XInterface {};
}; }; }; };
interface X {
[attribute] long a; [attribute] long a;
}; };
EXPECT SUCCESS "attribute.tests 2": EXPECT SUCCESS "attribute.tests 2":
module com { module sun { module star { module uno { interface I1 {
interface XInterface {};
}; }; }; };
interface X {
[attribute] long a {}; [attribute] long a {};
}; };
EXPECT FAILURE "attribute.tests 3": EXPECT FAILURE "attribute.tests 3":
module com { module sun { module star { module uno { interface I1 {
interface XInterface {};
}; }; }; };
interface X {
[attribute] long a { [attribute] long a {
get raises (); get raises ();
}; };
@ -63,11 +54,8 @@ interface X {
EXPECT SUCCESS "attribute.tests 4": EXPECT SUCCESS "attribute.tests 4":
module com { module sun { module star { module uno {
interface XInterface {};
}; }; }; };
exception E1 {}; exception E1 {};
interface X { interface I1 {
[attribute] long a { [attribute] long a {
get raises (E1); get raises (E1);
}; };
@ -75,11 +63,8 @@ interface X {
EXPECT SUCCESS "attribute.tests 5": EXPECT SUCCESS "attribute.tests 5":
module com { module sun { module star { module uno {
interface XInterface {};
}; }; }; };
exception E1 {}; exception E1 {};
interface X { interface I1 {
[attribute] long a { [attribute] long a {
set raises (E1); set raises (E1);
}; };
@ -87,11 +72,8 @@ interface X {
EXPECT SUCCESS "attribute.tests 6": EXPECT SUCCESS "attribute.tests 6":
module com { module sun { module star { module uno {
interface XInterface {};
}; }; }; };
exception E1 {}; exception E1 {};
interface X { interface I1 {
[attribute] long a { [attribute] long a {
get raises (E1); get raises (E1);
set raises (E1); set raises (E1);
@ -100,11 +82,8 @@ interface X {
EXPECT SUCCESS "attribute.tests 7": EXPECT SUCCESS "attribute.tests 7":
module com { module sun { module star { module uno {
interface XInterface {};
}; }; }; };
exception E1 {}; exception E1 {};
interface X { interface I1 {
[attribute] long a { [attribute] long a {
set raises (E1); set raises (E1);
get raises (E1); get raises (E1);
@ -113,11 +92,8 @@ interface X {
EXPECT FAILURE "attribute.tests 8": EXPECT FAILURE "attribute.tests 8":
module com { module sun { module star { module uno {
interface XInterface {};
}; }; }; };
exception E1 {}; exception E1 {};
interface X { interface I1 {
[attribute] long a { [attribute] long a {
get raises (E1); get raises (E1);
get raises (E1); get raises (E1);
@ -126,11 +102,8 @@ interface X {
EXPECT FAILURE "attribute.tests 9": EXPECT FAILURE "attribute.tests 9":
module com { module sun { module star { module uno {
interface XInterface {};
}; }; }; };
exception E1 {}; exception E1 {};
interface X { interface I1 {
void E1(); void E1();
[attribute] long a { [attribute] long a {
get raises (E1); get raises (E1);
@ -139,11 +112,8 @@ interface X {
EXPECT FAILURE "attribute.tests 10": EXPECT FAILURE "attribute.tests 10":
module com { module sun { module star { module uno {
interface XInterface {};
}; }; }; };
exception E1 {}; exception E1 {};
interface X { interface I1 {
[attribute] long E1 { [attribute] long E1 {
get raises (E1); get raises (E1);
}; };
@ -151,11 +121,8 @@ interface X {
EXPECT SUCCESS "attribute.tests 11": EXPECT SUCCESS "attribute.tests 11":
module com { module sun { module star { module uno {
interface XInterface {};
}; }; }; };
exception E1 {}; exception E1 {};
interface X { interface I1 {
[attribute] long a { [attribute] long a {
get raises (E1,E1); get raises (E1,E1);
}; };
@ -163,11 +130,8 @@ interface X {
EXPECT SUCCESS "attribute.tests 12": EXPECT SUCCESS "attribute.tests 12":
module com { module sun { module star { module uno {
interface XInterface {};
}; }; }; };
exception E1 {}; exception E1 {};
interface X { interface I1 {
[attribute, readonly] long a { [attribute, readonly] long a {
get raises (E1); get raises (E1);
}; };
@ -175,11 +139,8 @@ interface X {
EXPECT FAILURE "attribute.tests 13": EXPECT FAILURE "attribute.tests 13":
module com { module sun { module star { module uno {
interface XInterface {};
}; }; }; };
exception E1 {}; exception E1 {};
interface X { interface I1 {
[attribute, readonly] long a { [attribute, readonly] long a {
set raises (E1); set raises (E1);
}; };
@ -187,126 +148,84 @@ interface X {
EXPECT FAILURE "attribute.tests 14": EXPECT FAILURE "attribute.tests 14":
module com { module sun { module star { module uno { interface I1 {
interface XInterface {};
}; }; }; };
interface X {
[] long a; [] long a;
}; };
EXPECT SUCCESS "attribute.tests 15": EXPECT SUCCESS "attribute.tests 15":
module com { module sun { module star { module uno { interface I1 {
interface XInterface {};
}; }; }; };
interface X {
[attribute] long a; [attribute] long a;
}; };
EXPECT FAILURE "attribute.tests 16": EXPECT FAILURE "attribute.tests 16":
module com { module sun { module star { module uno { interface I1 {
interface XInterface {};
}; }; }; };
interface X {
[attribute, property] long a; [attribute, property] long a;
}; };
EXPECT FAILURE "attribute.tests 17": EXPECT FAILURE "attribute.tests 17":
module com { module sun { module star { module uno { interface I1 {
interface XInterface {};
}; }; }; };
interface X {
[attribute, optional] long a; [attribute, optional] long a;
}; };
EXPECT FAILURE "attribute.tests 18": EXPECT FAILURE "attribute.tests 18":
module com { module sun { module star { module uno { interface I1 {
interface XInterface {};
}; }; }; };
interface X {
[attribute, maybevoid] long a; [attribute, maybevoid] long a;
}; };
EXPECT FAILURE "attribute.tests 19": EXPECT FAILURE "attribute.tests 19":
module com { module sun { module star { module uno { interface I1 {
interface XInterface {};
}; }; }; };
interface X {
[attribute, constrained] long a; [attribute, constrained] long a;
}; };
EXPECT FAILURE "attribute.tests 20": EXPECT FAILURE "attribute.tests 20":
module com { module sun { module star { module uno { interface I1 {
interface XInterface {};
}; }; }; };
interface X {
[attribute, transient] long a; [attribute, transient] long a;
}; };
EXPECT FAILURE "attribute.tests 21": EXPECT FAILURE "attribute.tests 21":
module com { module sun { module star { module uno { interface I1 {
interface XInterface {};
}; }; }; };
interface X {
[attribute, maybeambigious] long a; [attribute, maybeambigious] long a;
}; };
EXPECT FAILURE "attribute.tests 22": EXPECT FAILURE "attribute.tests 22":
module com { module sun { module star { module uno { interface I1 {
interface XInterface {};
}; }; }; };
interface X {
[attribute, maybedefault] long a; [attribute, maybedefault] long a;
}; };
EXPECT FAILURE "attribute.tests 23": EXPECT FAILURE "attribute.tests 23":
module com { module sun { module star { module uno { interface I1 {
interface XInterface {};
}; }; }; };
interface X {
[attribute, removeable] long a; [attribute, removeable] long a;
}; };
EXPECT SUCCESS "attribute.tests 24": EXPECT SUCCESS "attribute.tests 24":
module com { module sun { module star { module uno { interface I1 {
interface XInterface {};
}; }; }; };
interface X {
[attribute, bound] long a; [attribute, bound] long a;
}; };
EXPECT SUCCESS "attribute.tests 25": EXPECT SUCCESS "attribute.tests 25":
module com { module sun { module star { module uno { interface I1 {
interface XInterface {};
}; }; }; };
interface X {
[bound, attribute] long a; [bound, attribute] long a;
}; };
EXPECT SUCCESS "attribute.tests 26": EXPECT SUCCESS "attribute.tests 26":
module com { module sun { module star { module uno { interface I1 {
interface XInterface {};
}; }; }; };
interface X {
[attribute, readonly] long a; [attribute, readonly] long a;
}; };
EXPECT SUCCESS "attribute.tests 27": EXPECT SUCCESS "attribute.tests 27":
module com { module sun { module star { module uno { interface I1 {
interface XInterface {};
}; }; }; };
interface X {
[attribute, bound, readonly] long a; [attribute, bound, readonly] long a;
}; };

View file

@ -4,9 +4,9 @@
# #
# $RCSfile: methodoverload.tests,v $ # $RCSfile: methodoverload.tests,v $
# #
# $Revision: 1.3 $ # $Revision: 1.4 $
# #
# last change: $Author: rt $ $Date: 2005-09-07 18:18:33 $ # last change: $Author: kz $ $Date: 2006-11-06 14:41:44 $
# #
# The Contents of this file are made available subject to # The Contents of this file are made available subject to
# the terms of GNU Lesser General Public License Version 2.1. # the terms of GNU Lesser General Public License Version 2.1.
@ -34,9 +34,6 @@
#************************************************************************* #*************************************************************************
EXPECT FAILURE "methodoverload.tests 1": EXPECT FAILURE "methodoverload.tests 1":
module com { module sun { module star { module uno {
interface XInterface {};
}; }; }; };
interface Derived { interface Derived {
void f(); void f();
void f(); void f();
@ -44,9 +41,6 @@ interface Derived {
EXPECT FAILURE "methodoverload.tests 2": EXPECT FAILURE "methodoverload.tests 2":
module com { module sun { module star { module uno {
interface XInterface {};
}; }; }; };
interface Base { interface Base {
void f(); void f();
}; };
@ -57,9 +51,6 @@ interface Derived {
EXPECT FAILURE "methodoverload.tests 3": EXPECT FAILURE "methodoverload.tests 3":
module com { module sun { module star { module uno {
interface XInterface {};
}; }; }; };
interface Base { interface Base {
void f(); void f();
}; };
@ -70,9 +61,6 @@ interface Derived {
EXPECT FAILURE "methodoverload.tests 4": EXPECT FAILURE "methodoverload.tests 4":
module com { module sun { module star { module uno {
interface XInterface {};
}; }; }; };
interface Base { interface Base {
void f(); void f();
}; };
@ -83,9 +71,6 @@ interface Derived {
EXPECT FAILURE "methodoverload.tests 5": EXPECT FAILURE "methodoverload.tests 5":
module com { module sun { module star { module uno {
interface XInterface {};
}; }; }; };
interface Base { interface Base {
void f(); void f();
}; };
@ -96,9 +81,6 @@ interface Derived {
EXPECT FAILURE "methodoverload.tests 6": EXPECT FAILURE "methodoverload.tests 6":
module com { module sun { module star { module uno {
interface XInterface {};
}; }; }; };
interface Base1 { interface Base1 {
void f(); void f();
}; };
@ -112,9 +94,6 @@ interface Derived {
EXPECT FAILURE "methodoverload.tests 7": EXPECT FAILURE "methodoverload.tests 7":
module com { module sun { module star { module uno {
interface XInterface {};
}; }; }; };
interface Base1 { interface Base1 {
void f(); void f();
}; };
@ -128,9 +107,6 @@ interface Derived {
EXPECT FAILURE "methodoverload.tests 8": EXPECT FAILURE "methodoverload.tests 8":
module com { module sun { module star { module uno {
interface XInterface {};
}; }; }; };
interface Base1 { interface Base1 {
void f(); void f();
}; };
@ -144,9 +120,6 @@ interface Derived {
EXPECT SUCCESS "methodoverload.tests 9": EXPECT SUCCESS "methodoverload.tests 9":
module com { module sun { module star { module uno {
interface XInterface {};
}; }; }; };
interface Base1 { interface Base1 {
void f(); void f();
}; };