summaryrefslogtreecommitdiff
path: root/qadevOOo/tests
diff options
context:
space:
mode:
Diffstat (limited to 'qadevOOo/tests')
-rw-r--r--qadevOOo/tests/java/ifc/awt/tree/_XTreeNode.java14
-rw-r--r--qadevOOo/tests/java/ifc/drawing/_DrawingDocumentDrawView.java3
2 files changed, 12 insertions, 5 deletions
diff --git a/qadevOOo/tests/java/ifc/awt/tree/_XTreeNode.java b/qadevOOo/tests/java/ifc/awt/tree/_XTreeNode.java
index 971dab8ac3d2..d766c963d7e3 100644
--- a/qadevOOo/tests/java/ifc/awt/tree/_XTreeNode.java
+++ b/qadevOOo/tests/java/ifc/awt/tree/_XTreeNode.java
@@ -137,12 +137,18 @@ public class _XTreeNode extends MultiMethodTest {
}
log.println("try to get parrent of children");
- XTreeNode xParrent = xNode.getParent();
+ if (xNode == null) {
+ log.println("missing xNode");
+ tRes.tested("getParent()", false);
+ }
+ else {
+ XTreeNode xParrent = xNode.getParent();
- bOK = oObj.equals(xParrent);
- log.println("original object and parrent should be the same: " + bOK);
- tRes.tested("getParent()", bOK);
+ bOK = oObj.equals(xParrent);
+ log.println("original object and parrent should be the same: " + bOK);
+ tRes.tested("getParent()", bOK);
+ }
}
diff --git a/qadevOOo/tests/java/ifc/drawing/_DrawingDocumentDrawView.java b/qadevOOo/tests/java/ifc/drawing/_DrawingDocumentDrawView.java
index 082babb9956b..597e44cee045 100644
--- a/qadevOOo/tests/java/ifc/drawing/_DrawingDocumentDrawView.java
+++ b/qadevOOo/tests/java/ifc/drawing/_DrawingDocumentDrawView.java
@@ -164,7 +164,8 @@ public class _DrawingDocumentDrawView extends MultiPropertyTest {
}
log.println("oldZoomValue: "+oldValue);
log.println("newZoomValue: "+newValue);
- tRes.tested("ZoomType",(!oldValue.equals(newValue)));
+ if (oldValue != null)
+ tRes.tested("ZoomType",(!oldValue.equals(newValue)));
}
}