diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2011-12-27 07:47:45 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2011-12-27 07:56:06 +0100 |
commit | 6fdac8946b09929fca54e40a2b630324ddda2aa0 (patch) | |
tree | 899308438ac75a79bc4ef53e40c035f0a9141ee8 | |
parent | 32f38931ee5973b5db2255e1ee0c63b3a7b00831 (diff) |
fix ScDatabaseRangeObj test, fdo#43312
-rw-r--r-- | qadevOOo/tests/java/mod/_sc/ScDatabaseRangeObj.java | 14 | ||||
-rw-r--r-- | sc/qa/unoapi/knownissues.xcl | 4 | ||||
-rw-r--r-- | sc/qa/unoapi/sc.sce | 2 |
3 files changed, 13 insertions, 7 deletions
diff --git a/qadevOOo/tests/java/mod/_sc/ScDatabaseRangeObj.java b/qadevOOo/tests/java/mod/_sc/ScDatabaseRangeObj.java index 8bd96755b674..eee4aa35ee97 100644 --- a/qadevOOo/tests/java/mod/_sc/ScDatabaseRangeObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScDatabaseRangeObj.java @@ -170,8 +170,10 @@ public class ScDatabaseRangeObj extends TestCase { "Error getting test object from spreadsheet document", e); } - if (dbRanges.hasByName("dbRange")) { - dbRanges.removeByName("dbRange"); + String dbName = "dbRange"; + + if (dbRanges.hasByName(dbName)) { + dbRanges.removeByName(dbName); } @@ -185,22 +187,22 @@ public class ScDatabaseRangeObj extends TestCase { try { // we need to add it - dbRanges.addNewByName("dbRanges",new CellRangeAddress((short)0, 0, 0, 0, 5)); + dbRanges.addNewByName(dbName,new CellRangeAddress((short)0, 0, 0, 0, 5)); xNamed = (XNamed) UnoRuntime.queryInterface(XNamed.class, dbrNA.getByName( - "dbRange")); + dbName)); XCellRangeReferrer aReferrer = (XCellRangeReferrer) UnoRuntime.queryInterface( XCellRangeReferrer.class, - dbrNA.getByName("dbRange")); + dbrNA.getByName(dbName)); XCellRangeAddressable aRangeA = (XCellRangeAddressable) UnoRuntime.queryInterface( XCellRangeAddressable.class, aReferrer.getReferredCells()); aRange = aRangeA.getRangeAddress(); oObj = (XInterface) AnyConverter.toObject( new Type(XInterface.class), - dbrNA.getByName("dbRange")); + dbrNA.getByName(dbName)); } catch (com.sun.star.lang.WrappedTargetException e) { e.printStackTrace(log); throw new StatusException( diff --git a/sc/qa/unoapi/knownissues.xcl b/sc/qa/unoapi/knownissues.xcl index 0d614a9526f9..5ae37dfa2dd1 100644 --- a/sc/qa/unoapi/knownissues.xcl +++ b/sc/qa/unoapi/knownissues.xcl @@ -219,3 +219,7 @@ sc.ScCellRangeObj::com::sun::star::chart::XChartData ### fdo43376 ### sc.ScDDELinksObj sc.ScDDELinkObj + +### fdo44167 ### +sc.ScDatabaseRangeObj::com::sun::star::sheet::XDatabaseRange +sc.ScDatabaseRangeObj::com::sun::star::util::XRefreshable diff --git a/sc/qa/unoapi/sc.sce b/sc/qa/unoapi/sc.sce index b35fdd0bdcc8..dabb97abe468 100644 --- a/sc/qa/unoapi/sc.sce +++ b/sc/qa/unoapi/sc.sce @@ -48,7 +48,7 @@ -o sc.ScDataPilotItemsObj -o sc.ScDataPilotTableObj -o sc.ScDataPilotTablesObj -# fdo43312 -o sc.ScDatabaseRangeObj +-o sc.ScDatabaseRangeObj # -o sc.ScDatabaseRangesObj # -o sc.ScDocumentConfiguration # -o sc.ScDrawPageObj |