summaryrefslogtreecommitdiff
path: root/qadevOOo
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2008-06-13 11:48:04 +0000
committerRüdiger Timm <rt@openoffice.org>2008-06-13 11:48:04 +0000
commit14d954cc7d4f2cac6ece4a8dab67c2810c7ac2e1 (patch)
treeb94ba142d57837d97c2bea7ffd4948cd59c48c1f /qadevOOo
parentb14f35b46a531b8c9152415f10ae0b43760bf805 (diff)
INTEGRATION: CWS qadev32 (1.5.56); FILE MERGED
2008/04/17 11:40:49 cn 1.5.56.2: RESYNC: (1.5-1.6); FILE MERGED 2008/04/17 07:57:29 cn 1.5.56.1: #i87389# skip properties to change which are could make trouble
Diffstat (limited to 'qadevOOo')
-rw-r--r--qadevOOo/tests/java/ifc/beans/_XPropertySet.java17
1 files changed, 16 insertions, 1 deletions
diff --git a/qadevOOo/tests/java/ifc/beans/_XPropertySet.java b/qadevOOo/tests/java/ifc/beans/_XPropertySet.java
index 710858517997..a4720858f474 100644
--- a/qadevOOo/tests/java/ifc/beans/_XPropertySet.java
+++ b/qadevOOo/tests/java/ifc/beans/_XPropertySet.java
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: _XPropertySet.java,v $
- * $Revision: 1.6 $
+ * $Revision: 1.7 $
*
* This file is part of OpenOffice.org.
*
@@ -284,6 +284,7 @@ public class _XPropertySet extends MultiMethodTest {
tRes.tested("setPropertyValue()", true) ;
} else {
try {
+ log.println("try to cheange value of property '" + PTT.normal + "'" );
gValue = oObj.getPropertyValue(PTT.normal);
sValue = ValueChanger.changePValue(gValue);
oObj.setPropertyValue(PTT.normal, sValue);
@@ -478,11 +479,25 @@ public class _XPropertySet extends MultiMethodTest {
String bound = "";
String constrained = "";
String normal = "";
+ // some properties should not be changed in a unspecific way
+ String[] skip = {"PrinterName", "CharRelief", "IsLayerMode"};
for (int i = 0; i < properties.length; i++) {
Property property = properties[i];
String name = property.Name;
+
+ boolean cont = false;
+ for (int j = 0; j < skip.length; j++) {
+ if (name.equals(skip[j])){
+ log.println("skipping '" + name + "'");
+ cont = true;
+ }
+ }
+
+ if (cont) continue;
+
+ if (name.equals(oObj))
log.println("Checking '"+name+"'");
boolean isWritable = ((property.Attributes &
PropertyAttribute.READONLY) == 0);