summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorJens Carl <j.carl43@gmx.de>2019-01-17 23:25:30 +0000
committerJens Carl <j.carl43@gmx.de>2019-01-18 08:41:38 +0100
commiteee8c16a5c541fd355e7e6fe3b25c3f36d2f6eb8 (patch)
tree12aee417aafc0ee49844d06b91a9bd158a40437a /sc
parentec4a282657d84e9e745b68fa8299c8ecc4c7ea7a (diff)
Add XDDELinks tests to ScDDELinksObj
Change-Id: I9e6efbd5a1cd9e4787e8143dd4f8adbe6ab2cae7 Reviewed-on: https://gerrit.libreoffice.org/66561 Tested-by: Jenkins Reviewed-by: Jens Carl <j.carl43@gmx.de>
Diffstat (limited to 'sc')
-rw-r--r--sc/qa/extras/scddelinksobj.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/sc/qa/extras/scddelinksobj.cxx b/sc/qa/extras/scddelinksobj.cxx
index 721478ba839d..bc62f4cfbc2d 100644
--- a/sc/qa/extras/scddelinksobj.cxx
+++ b/sc/qa/extras/scddelinksobj.cxx
@@ -13,6 +13,7 @@
#include <test/container/xindexaccess.hxx>
#include <test/container/xnameaccess.hxx>
#include <test/lang/xserviceinfo.hxx>
+#include <test/sheet/xddelinks.hxx>
#include <cppu/unotype.hxx>
#include <rtl/ustring.hxx>
@@ -38,6 +39,7 @@ using namespace com::sun::star;
namespace sc_apitest
{
class ScDDELinksObj : public CalcUnoApiTest,
+ public apitest::XDDELinks,
public apitest::XElementAccess,
public apitest::XEnumerationAccess,
public apitest::XIndexAccess,
@@ -53,6 +55,9 @@ public:
CPPUNIT_TEST_SUITE(ScDDELinksObj);
+ // XDDELinks
+ CPPUNIT_TEST(testAddDDELink);
+
// XElementAccess
CPPUNIT_TEST(testGetElementType);
CPPUNIT_TEST(testHasElements);
@@ -82,6 +87,7 @@ private:
ScDDELinksObj::ScDDELinksObj()
: CalcUnoApiTest("/sc/qa/extras/testdocuments")
+ , XDDELinks(m_directories.getURLFromSrc("/sc/qa/unoapi/testdocuments/ScDDELinksObj.ods"))
, XElementAccess(cppu::UnoType<sheet::XDDELink>::get())
, XIndexAccess(1)
, XNameAccess("soffice|"