[Libreoffice-commits] core.git: toolkit/qa
Caolán McNamara
caolanm at redhat.com
Sun Aug 17 11:21:39 PDT 2014
toolkit/qa/complex/toolkit/accessibility/_XAccessibleText.java | 10 ++++++++++
1 file changed, 10 insertions(+)
New commits:
commit cc4f4e2054ba1c5676ebb1890e85d0f9b0b19262
Author: Caolán McNamara <caolanm at redhat.com>
Date: Sun Aug 17 19:20:55 2014 +0100
catch UnknownPropertyException
Change-Id: I3134c574a124a2359c40b139eb5b41198b0e4611
diff --git a/toolkit/qa/complex/toolkit/accessibility/_XAccessibleText.java b/toolkit/qa/complex/toolkit/accessibility/_XAccessibleText.java
index 61f1bd4..9f6b60f 100644
--- a/toolkit/qa/complex/toolkit/accessibility/_XAccessibleText.java
+++ b/toolkit/qa/complex/toolkit/accessibility/_XAccessibleText.java
@@ -25,6 +25,7 @@ import com.sun.star.awt.Point;
import com.sun.star.lang.XMultiServiceFactory;
import com.sun.star.accessibility.AccessibleTextType;
import com.sun.star.accessibility.TextSegment;
+import com.sun.star.beans.UnknownPropertyException;
import com.sun.star.uno.XInterface;
import com.sun.star.uno.UnoRuntime;
@@ -235,6 +236,9 @@ public class _XAccessibleText {
} catch(com.sun.star.lang.IndexOutOfBoundsException e) {
System.out.println("Expected exception");
res &= true;
+ } catch(com.sun.star.beans.UnknownPropertyException e) {
+ System.out.println("unexpected exception => FAILED");
+ res &= false;
}
try {
@@ -245,6 +249,9 @@ public class _XAccessibleText {
} catch(com.sun.star.lang.IndexOutOfBoundsException e) {
System.out.println("Expected exception");
res &= true;
+ } catch(com.sun.star.beans.UnknownPropertyException e) {
+ System.out.println("unexpected exception => FAILED");
+ res &= false;
}
try {
@@ -257,6 +264,9 @@ public class _XAccessibleText {
System.out.println("Unexpected exception");
e.printStackTrace();
res &= false;
+ } catch(com.sun.star.beans.UnknownPropertyException e) {
+ System.out.println("unexpected exception => FAILED");
+ res &= false;
}
return res;
More information about the Libreoffice-commits
mailing list