Kaydet (Commit) 0d071641 authored tarafından ekuiitr's avatar ekuiitr Kaydeden (comit) Jan Holesovsky

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/55080Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarJan Holesovsky <kendy@collabora.com>
üst f1368d6a
......@@ -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();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment