summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-02-18 04:49:32 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-02-19 00:36:08 +0100
commit8910f2b8a457af9d29e6ed236924b7a6522f067c (patch)
treedebfb92b105ebe0c2f1a2050687c92d884fbe1f5
parent903a19b0c3eb9428445bc115d37f700cec8c3265 (diff)
add XCellRangeReferrer test to ScRangeNameObj
now ScRangeNameObj is fully tested by c++ tests
-rw-r--r--sc/qa/extras/scnamedrangeobj.cxx11
1 files changed, 7 insertions, 4 deletions
diff --git a/sc/qa/extras/scnamedrangeobj.cxx b/sc/qa/extras/scnamedrangeobj.cxx
index 69785c7be790..cdc1f498082d 100644
--- a/sc/qa/extras/scnamedrangeobj.cxx
+++ b/sc/qa/extras/scnamedrangeobj.cxx
@@ -26,9 +26,10 @@
* instead of those above.
*/
+#include <test/unoapi_test.hxx>
#include <test/sheet/xnamedrange.hxx>
#include <test/container/xnamed.hxx>
-#include <test/unoapi_test.hxx>
+#include <test/sheet/xcellrangereferrer.hxx>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/sheet/XSpreadsheetDocument.hpp>
@@ -37,9 +38,9 @@
namespace sc_apitest {
-#define NUMBER_OF_TESTS 8
+#define NUMBER_OF_TESTS 9
-class ScNamedRangeObj : public UnoApiTest, apitest::XNamedRange, apitest::XNamed
+class ScNamedRangeObj : public UnoApiTest, apitest::XNamedRange, apitest::XNamed, apitest::XCellRangeReferrer
{
public:
ScNamedRangeObj();
@@ -59,6 +60,7 @@ public:
CPPUNIT_TEST(testSetReferencePosition);
CPPUNIT_TEST(testSetName);
CPPUNIT_TEST(testGetName);
+ CPPUNIT_TEST(testGetReferredCells);
CPPUNIT_TEST_SUITE_END();
private:
uno::Reference< sheet::XNamedRanges > init_impl();
@@ -71,7 +73,8 @@ sal_Int32 ScNamedRangeObj::nTest = 0;
uno::Reference< lang::XComponent > ScNamedRangeObj::mxComponent;
ScNamedRangeObj::ScNamedRangeObj():
- apitest::XNamed(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("NamedRange")))
+ apitest::XNamed(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("NamedRange"))),
+ apitest::XCellRangeReferrer(table::CellRangeAddress(0,1,7,1,7))
{
}