summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorekuiitr <jhaekansh80@gmail.com>2018-05-30 19:04:03 +0530
committerJan Holesovsky <kendy@collabora.com>2018-06-08 18:21:32 +0200
commit0d0716411e3d66e8beb9093ebe94fb5545106fbf (patch)
tree2416a406a486b78862a5cb3a581cdc28a3117c21 /sd
parentf1368d6a45456b5682d588371cfa2efa5571d798 (diff)
Unit test for Line algorithm
TestMaxDepth test checks the linear (lin) algorithm such that it arranges child layout nodes along a linear path. Change-Id: Ibf6f654d2f68f31a1c1a0f57044b411add954fa0 Reviewed-on: https://gerrit.libreoffice.org/55080 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Diffstat (limited to 'sd')
-rw-r--r--sd/qa/unit/import-tests-smartart.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sd/qa/unit/import-tests-smartart.cxx b/sd/qa/unit/import-tests-smartart.cxx
index e86dab7f4745..27d81f99b7ee 100644
--- a/sd/qa/unit/import-tests-smartart.cxx
+++ b/sd/qa/unit/import-tests-smartart.cxx
@@ -165,6 +165,10 @@ void SdImportTestSmartArt::testMaxDepth()
uno::Reference<text::XText> xText1(xShapeGroup->getByIndex(1), uno::UNO_QUERY_THROW);
CPPUNIT_ASSERT_EQUAL(OUString("second"), xText1->getString());
+ uno::Reference<drawing::XShape> xShape0(xShapeGroup->getByIndex(0), uno::UNO_QUERY_THROW);
+ uno::Reference<drawing::XShape> xShape1(xShapeGroup->getByIndex(1), uno::UNO_QUERY_THROW);
+ CPPUNIT_ASSERT_EQUAL(xShape0->getPosition().Y , xShape1->getPosition().Y); // Confirms shapes are in same Y axis-level.
+
xDocShRef->DoClose();
}