Kaydet (Commit) 4ac31078 authored tarafından Patrick Jaap's avatar Patrick Jaap Kaydeden (comit) Miklos Vajna

tdf#117187 unit test

A unit test to conserve the current behavior which fixes 117187 partly.

Change-Id: If10feb7de52963db2f6974581cac54fd1ae7e0e6
Reviewed-on: https://gerrit.libreoffice.org/60319
Tested-by: Jenkins
Reviewed-by: 's avatarMiklos Vajna <vmiklos@collabora.co.uk>
üst 18aeaa2a
......@@ -36,6 +36,7 @@ public:
void testForcepoint72();
void testTdf118058();
void testTdf117188();
void testTdf117187();
CPPUNIT_TEST_SUITE(SwLayoutWriter);
CPPUNIT_TEST(testTdf116830);
......@@ -54,6 +55,7 @@ public:
CPPUNIT_TEST(testForcepoint72);
CPPUNIT_TEST(testTdf118058);
CPPUNIT_TEST(testTdf117188);
CPPUNIT_TEST(testTdf117187);
CPPUNIT_TEST_SUITE_END();
private:
......@@ -330,6 +332,15 @@ void SwLayoutWriter::testTdf117188()
assertXPath(pXmlDoc, "/root/page/body/txt/anchored/fly/infos/prtBounds", "height", sHeight);
}
void SwLayoutWriter::testTdf117187()
{
createDoc("tdf117187.odt");
xmlDocPtr pXmlDoc = parseLayoutDump();
// there should be no fly portions
assertXPath(pXmlDoc, "/root/page/body/txt/Special[@nType='POR_FLY']", 0);
}
CPPUNIT_TEST_SUITE_REGISTRATION(SwLayoutWriter);
CPPUNIT_PLUGIN_IMPLEMENT();
......
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