summaryrefslogtreecommitdiff
path: root/forms
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2006-08-15 09:31:25 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2006-08-15 09:31:25 +0000
commitd145c6ccb6e6fa223c50400a43c3e4ea114fb9a2 (patch)
treed6ab92cae4b2248eea96958eaa383d90d5c5cb39 /forms
parentaebef8640ced0e9beb210ac43d4b6393fb52820b (diff)
INTEGRATION: CWS dba30 (1.4.8); FILE MERGED
2006/05/11 13:56:56 fs 1.4.8.1: added additional check that the active sheet was really selected
Diffstat (limited to 'forms')
-rw-r--r--forms/qa/integration/forms/ListSelection.java11
1 files changed, 8 insertions, 3 deletions
diff --git a/forms/qa/integration/forms/ListSelection.java b/forms/qa/integration/forms/ListSelection.java
index 60c7b59e3ea8..9316857b62f5 100644
--- a/forms/qa/integration/forms/ListSelection.java
+++ b/forms/qa/integration/forms/ListSelection.java
@@ -4,9 +4,9 @@
*
* $RCSfile: ListSelection.java,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: obo $ $Date: 2006-03-29 12:24:10 $
+ * last change: $Author: hr $ $Date: 2006-08-15 10:31:25 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -139,7 +139,9 @@ public class ListSelection extends integration.forms.TestCase implements com.sun
XAccessibleSelection accessibleList = (XAccessibleSelection)UnoRuntime.queryInterface(
XAccessibleSelection.class, context.getAccessibleChild( 1 ) );
- accessibleList.selectAccessibleChild( generator.nextInt( 5 ) );
+ int selectPosition = generator.nextInt( 5 );
+ String selectSheetName = getListBoxControl( activeSheet ).getItem( (short)selectPosition );
+ accessibleList.selectAccessibleChild( selectPosition );
try
{
synchronized( this )
@@ -148,6 +150,9 @@ public class ListSelection extends integration.forms.TestCase implements com.sun
}
}
catch( java.lang.InterruptedException e ) { }
+
+ XNamed sheetName = (XNamed)UnoRuntime.queryInterface( XNamed.class, view.getActiveSheet() );
+ assure( "sheet was not selected as expected!", sheetName.getName().equals( selectSheetName ) );
}
}
catch( com.sun.star.uno.Exception e )