summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-12-19 13:12:19 +0200
committerNoel Grandin <noel@peralex.com>2015-01-12 08:36:15 +0200
commit40e48e81af597baca421630693d671130f774f57 (patch)
tree60bbc4f0ff19a5554a902e07fdcb1d59726e9756
parenta4d1e3d22b7f73ba7740dfe5f1d3586a49164947 (diff)
java: no need to sleep quite so often
Change-Id: I9746158dfdffafd138160c2491e57b269d04e22b
-rw-r--r--qadevOOo/tests/java/ifc/beans/_XMultiPropertySet.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/qadevOOo/tests/java/ifc/beans/_XMultiPropertySet.java b/qadevOOo/tests/java/ifc/beans/_XMultiPropertySet.java
index 5250e6de62a9..92df9c390bbd 100644
--- a/qadevOOo/tests/java/ifc/beans/_XMultiPropertySet.java
+++ b/qadevOOo/tests/java/ifc/beans/_XMultiPropertySet.java
@@ -167,6 +167,11 @@ public class _XMultiPropertySet extends MultiMethodTest {
testPropsAmount = 0;
}
+ if (testPropsAmount == 0) {
+ log.println("all properties are read only");
+ tRes.tested("addPropertiesChangeListener()", Status.skipped(true));
+ return;
+ }
// Change one of the property to be sure, that this event was cauched.
for (int i=0; i<testPropsAmount;i++) {
@@ -177,7 +182,6 @@ public class _XMultiPropertySet extends MultiMethodTest {
gValues[i] = newValue;
propertiesChanged = false;
oObj.setPropertyValues(testPropsNames, gValues);
- waitAMoment() ;
log.println(" ... done");
} catch (com.sun.star.beans.PropertyVetoException e) {
log.println("Exception occurred while trying to change "+
@@ -193,12 +197,8 @@ public class _XMultiPropertySet extends MultiMethodTest {
e.printStackTrace(log);
} // end of try-catch
}
- if (testPropsAmount == 0) {
- log.println("all properties are read only");
- tRes.tested("addPropertiesChangeListener()", Status.skipped(true));
- } else {
- tRes.tested("addPropertiesChangeListener()", propertiesChanged);
- }
+ waitAMoment();
+ tRes.tested("addPropertiesChangeListener()", propertiesChanged);
}
/**