Kaydet (Commit) 7b6a65b2 authored tarafından Stephan Wunderlich's avatar Stephan Wunderlich

CHG: literal bug

üst 5c25a0f5
......@@ -2,9 +2,9 @@
*
* $RCSfile: _XAccessibleText.java,v $
*
* $Revision: 1.7 $
* $Revision: 1.8 $
*
* last change:$Date: 2003-03-31 12:53:50 $
* last change:$Date: 2003-03-31 13:34:50 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
......@@ -126,6 +126,12 @@ public class _XAccessibleText extends MultiMethodTest {
* The length of retrieved string must be greater than zero.
*/
protected void before() {
Object xat = tEnv.getObjRelation("XAccessibleText");
if (xat != null) {
oObj = (XAccessibleText) UnoRuntime.queryInterface(XAccessibleText.class, xat);
}
text = (String)tEnv.getObjRelation("XAccessibleText.Text");
if (text == null) {
text = oObj.getText();
......
......@@ -2,9 +2,9 @@
*
* $RCSfile: AccessibleStatusBarItem.java,v $
*
* $Revision: 1.3 $
* $Revision: 1.4 $
*
* last change:$Date: 2003-03-26 14:55:04 $
* last change:$Date: 2003-03-31 13:35:11 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
......@@ -183,6 +183,7 @@ public class AccessibleStatusBarItem extends TestCase {
XController xController = aModel.getCurrentController();
XInterface oObj = null;
XInterface secondItem = null;
AccessibilityTools at = new AccessibilityTools();
......@@ -195,6 +196,7 @@ public class AccessibleStatusBarItem extends TestCase {
try {
oObj = statusbar.getAccessibleChild(6);
secondItem = statusbar.getAccessibleChild(0);
} catch (com.sun.star.lang.IndexOutOfBoundsException e) {
}
......@@ -203,6 +205,9 @@ public class AccessibleStatusBarItem extends TestCase {
TestEnvironment tEnv = new TestEnvironment(oObj);
tEnv.addObjRelation("EditOnly","Can't change or select Text in StatusBarItem");
tEnv.addObjRelation("XAccessibleText", secondItem);
final XTextDocument doc = xTextDoc;
tEnv.addObjRelation("EventProducer",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment