summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2006-11-06 13:41:44 +0000
committerKurt Zenker <kz@openoffice.org>2006-11-06 13:41:44 +0000
commit5b54bb6c36f9098ff1b40be2c362122e4042a764 (patch)
tree17a2c2449f42f5c8fee6817283cbedc08fec68d3
parent28cc95290a3a87085ec4da465829765e11e5868a (diff)
INTEGRATION: CWS jsc14 (1.3.40); FILE MERGED
2006/10/25 13:51:06 jsc 1.3.40.1: #i69727# adapt and simplify tests
-rw-r--r--idlc/test/parser/attribute.tests139
-rw-r--r--idlc/test/parser/methodoverload.tests31
2 files changed, 31 insertions, 139 deletions
diff --git a/idlc/test/parser/attribute.tests b/idlc/test/parser/attribute.tests
index e9962b337f52..f279aec3e870 100644
--- a/idlc/test/parser/attribute.tests
+++ b/idlc/test/parser/attribute.tests
@@ -4,9 +4,9 @@
#
# $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 terms of GNU Lesser General Public License Version 2.1.
@@ -34,28 +34,19 @@
#*************************************************************************
EXPECT SUCCESS "attribute.tests 1":
-module com { module sun { module star { module uno {
- interface XInterface {};
-}; }; }; };
-interface X {
+interface I1 {
[attribute] long a;
};
EXPECT SUCCESS "attribute.tests 2":
-module com { module sun { module star { module uno {
- interface XInterface {};
-}; }; }; };
-interface X {
+interface I1 {
[attribute] long a {};
};
EXPECT FAILURE "attribute.tests 3":
-module com { module sun { module star { module uno {
- interface XInterface {};
-}; }; }; };
-interface X {
+interface I1 {
[attribute] long a {
get raises ();
};
@@ -63,11 +54,8 @@ interface X {
EXPECT SUCCESS "attribute.tests 4":
-module com { module sun { module star { module uno {
- interface XInterface {};
-}; }; }; };
exception E1 {};
-interface X {
+interface I1 {
[attribute] long a {
get raises (E1);
};
@@ -75,11 +63,8 @@ interface X {
EXPECT SUCCESS "attribute.tests 5":
-module com { module sun { module star { module uno {
- interface XInterface {};
-}; }; }; };
exception E1 {};
-interface X {
+interface I1 {
[attribute] long a {
set raises (E1);
};
@@ -87,11 +72,8 @@ interface X {
EXPECT SUCCESS "attribute.tests 6":
-module com { module sun { module star { module uno {
- interface XInterface {};
-}; }; }; };
exception E1 {};
-interface X {
+interface I1 {
[attribute] long a {
get raises (E1);
set raises (E1);
@@ -100,11 +82,8 @@ interface X {
EXPECT SUCCESS "attribute.tests 7":
-module com { module sun { module star { module uno {
- interface XInterface {};
-}; }; }; };
exception E1 {};
-interface X {
+interface I1 {
[attribute] long a {
set raises (E1);
get raises (E1);
@@ -113,11 +92,8 @@ interface X {
EXPECT FAILURE "attribute.tests 8":
-module com { module sun { module star { module uno {
- interface XInterface {};
-}; }; }; };
exception E1 {};
-interface X {
+interface I1 {
[attribute] long a {
get raises (E1);
get raises (E1);
@@ -126,11 +102,8 @@ interface X {
EXPECT FAILURE "attribute.tests 9":
-module com { module sun { module star { module uno {
- interface XInterface {};
-}; }; }; };
exception E1 {};
-interface X {
+interface I1 {
void E1();
[attribute] long a {
get raises (E1);
@@ -139,11 +112,8 @@ interface X {
EXPECT FAILURE "attribute.tests 10":
-module com { module sun { module star { module uno {
- interface XInterface {};
-}; }; }; };
exception E1 {};
-interface X {
+interface I1 {
[attribute] long E1 {
get raises (E1);
};
@@ -151,11 +121,8 @@ interface X {
EXPECT SUCCESS "attribute.tests 11":
-module com { module sun { module star { module uno {
- interface XInterface {};
-}; }; }; };
exception E1 {};
-interface X {
+interface I1 {
[attribute] long a {
get raises (E1,E1);
};
@@ -163,11 +130,8 @@ interface X {
EXPECT SUCCESS "attribute.tests 12":
-module com { module sun { module star { module uno {
- interface XInterface {};
-}; }; }; };
exception E1 {};
-interface X {
+interface I1 {
[attribute, readonly] long a {
get raises (E1);
};
@@ -175,11 +139,8 @@ interface X {
EXPECT FAILURE "attribute.tests 13":
-module com { module sun { module star { module uno {
- interface XInterface {};
-}; }; }; };
exception E1 {};
-interface X {
+interface I1 {
[attribute, readonly] long a {
set raises (E1);
};
@@ -187,126 +148,84 @@ interface X {
EXPECT FAILURE "attribute.tests 14":
-module com { module sun { module star { module uno {
- interface XInterface {};
-}; }; }; };
-interface X {
+interface I1 {
[] long a;
};
EXPECT SUCCESS "attribute.tests 15":
-module com { module sun { module star { module uno {
- interface XInterface {};
-}; }; }; };
-interface X {
+interface I1 {
[attribute] long a;
};
EXPECT FAILURE "attribute.tests 16":
-module com { module sun { module star { module uno {
- interface XInterface {};
-}; }; }; };
-interface X {
+interface I1 {
[attribute, property] long a;
};
EXPECT FAILURE "attribute.tests 17":
-module com { module sun { module star { module uno {
- interface XInterface {};
-}; }; }; };
-interface X {
+interface I1 {
[attribute, optional] long a;
};
EXPECT FAILURE "attribute.tests 18":
-module com { module sun { module star { module uno {
- interface XInterface {};
-}; }; }; };
-interface X {
+interface I1 {
[attribute, maybevoid] long a;
};
EXPECT FAILURE "attribute.tests 19":
-module com { module sun { module star { module uno {
- interface XInterface {};
-}; }; }; };
-interface X {
+interface I1 {
[attribute, constrained] long a;
};
EXPECT FAILURE "attribute.tests 20":
-module com { module sun { module star { module uno {
- interface XInterface {};
-}; }; }; };
-interface X {
+interface I1 {
[attribute, transient] long a;
};
EXPECT FAILURE "attribute.tests 21":
-module com { module sun { module star { module uno {
- interface XInterface {};
-}; }; }; };
-interface X {
+interface I1 {
[attribute, maybeambigious] long a;
};
EXPECT FAILURE "attribute.tests 22":
-module com { module sun { module star { module uno {
- interface XInterface {};
-}; }; }; };
-interface X {
+interface I1 {
[attribute, maybedefault] long a;
};
EXPECT FAILURE "attribute.tests 23":
-module com { module sun { module star { module uno {
- interface XInterface {};
-}; }; }; };
-interface X {
+interface I1 {
[attribute, removeable] long a;
};
EXPECT SUCCESS "attribute.tests 24":
-module com { module sun { module star { module uno {
- interface XInterface {};
-}; }; }; };
-interface X {
+interface I1 {
[attribute, bound] long a;
};
EXPECT SUCCESS "attribute.tests 25":
-module com { module sun { module star { module uno {
- interface XInterface {};
-}; }; }; };
-interface X {
+interface I1 {
[bound, attribute] long a;
};
EXPECT SUCCESS "attribute.tests 26":
-module com { module sun { module star { module uno {
- interface XInterface {};
-}; }; }; };
-interface X {
+interface I1 {
[attribute, readonly] long a;
};
EXPECT SUCCESS "attribute.tests 27":
-module com { module sun { module star { module uno {
- interface XInterface {};
-}; }; }; };
-interface X {
+interface I1 {
[attribute, bound, readonly] long a;
};
diff --git a/idlc/test/parser/methodoverload.tests b/idlc/test/parser/methodoverload.tests
index 88221eb9b80c..4e466ff592a7 100644
--- a/idlc/test/parser/methodoverload.tests
+++ b/idlc/test/parser/methodoverload.tests
@@ -4,9 +4,9 @@
#
# $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 terms of GNU Lesser General Public License Version 2.1.
@@ -34,9 +34,6 @@
#*************************************************************************
EXPECT FAILURE "methodoverload.tests 1":
-module com { module sun { module star { module uno {
- interface XInterface {};
-}; }; }; };
interface Derived {
void f();
void f();
@@ -44,9 +41,6 @@ interface Derived {
EXPECT FAILURE "methodoverload.tests 2":
-module com { module sun { module star { module uno {
- interface XInterface {};
-}; }; }; };
interface Base {
void f();
};
@@ -57,9 +51,6 @@ interface Derived {
EXPECT FAILURE "methodoverload.tests 3":
-module com { module sun { module star { module uno {
- interface XInterface {};
-}; }; }; };
interface Base {
void f();
};
@@ -70,9 +61,6 @@ interface Derived {
EXPECT FAILURE "methodoverload.tests 4":
-module com { module sun { module star { module uno {
- interface XInterface {};
-}; }; }; };
interface Base {
void f();
};
@@ -83,9 +71,6 @@ interface Derived {
EXPECT FAILURE "methodoverload.tests 5":
-module com { module sun { module star { module uno {
- interface XInterface {};
-}; }; }; };
interface Base {
void f();
};
@@ -96,9 +81,6 @@ interface Derived {
EXPECT FAILURE "methodoverload.tests 6":
-module com { module sun { module star { module uno {
- interface XInterface {};
-}; }; }; };
interface Base1 {
void f();
};
@@ -112,9 +94,6 @@ interface Derived {
EXPECT FAILURE "methodoverload.tests 7":
-module com { module sun { module star { module uno {
- interface XInterface {};
-}; }; }; };
interface Base1 {
void f();
};
@@ -128,9 +107,6 @@ interface Derived {
EXPECT FAILURE "methodoverload.tests 8":
-module com { module sun { module star { module uno {
- interface XInterface {};
-}; }; }; };
interface Base1 {
void f();
};
@@ -144,9 +120,6 @@ interface Derived {
EXPECT SUCCESS "methodoverload.tests 9":
-module com { module sun { module star { module uno {
- interface XInterface {};
-}; }; }; };
interface Base1 {
void f();
};