diff options
author | Stephan Wunderlich <sw@openoffice.org> | 2003-03-31 13:26:41 +0000 |
---|---|---|
committer | Stephan Wunderlich <sw@openoffice.org> | 2003-03-31 13:26:41 +0000 |
commit | f68a6570416fc6ea7319f8f1f4dc37ce7b2da4b6 (patch) | |
tree | 09e1173ab2a8588d0a0f975eca7991859ead5569 | |
parent | 7b6a65b229c30d8cf59705ec7931cb574dfd17e8 (diff) |
CHG: special for AccessibleStatusBarItem
-rw-r--r-- | qadevOOo/tests/java/ifc/accessibility/_XAccessibleText.java | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/qadevOOo/tests/java/ifc/accessibility/_XAccessibleText.java b/qadevOOo/tests/java/ifc/accessibility/_XAccessibleText.java index f36e8ed0cbde..a83a77bd1254 100644 --- a/qadevOOo/tests/java/ifc/accessibility/_XAccessibleText.java +++ b/qadevOOo/tests/java/ifc/accessibility/_XAccessibleText.java @@ -2,9 +2,9 @@ * * $RCSfile: _XAccessibleText.java,v $ * - * $Revision: 1.8 $ + * $Revision: 1.9 $ * - * last change:$Date: 2003-03-31 13:34:50 $ + * last change:$Date: 2003-03-31 14:26:41 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -128,8 +128,13 @@ public class _XAccessibleText extends MultiMethodTest { protected void before() { Object xat = tEnv.getObjRelation("XAccessibleText"); + XAccessibleComponent component = null; + if (xat != null) { oObj = (XAccessibleText) UnoRuntime.queryInterface(XAccessibleText.class, xat); + component = (XAccessibleComponent) + UnoRuntime.queryInterface( + XAccessibleComponent.class, xat); } text = (String)tEnv.getObjRelation("XAccessibleText.Text"); @@ -143,9 +148,11 @@ public class _XAccessibleText extends MultiMethodTest { editOnly = (String)tEnv.getObjRelation("EditOnly"); - XAccessibleComponent component = (XAccessibleComponent) - UnoRuntime.queryInterface( - XAccessibleComponent.class, tEnv.getTestObject()); + if (component == null) { + component = (XAccessibleComponent) + UnoRuntime.queryInterface( + XAccessibleComponent.class, tEnv.getTestObject()); + } bounds = component.getBounds(); |