Kaydet (Commit) 1d5e8371 authored tarafından Mark Hung's avatar Mark Hung Kaydeden (comit) Mike Kaganski

sw: check layout in testTdf102466.

Examine the document in testTdf102466 and sees that the
table in the first page is clipped instead of first page
missing as mentioned in the comment 1 of tdf#102466.

Adding more precise test to make the test the feature more
purposely.

Change-Id: Icb6dfb17f033c96dde21b5561d7b15170cf96e27
Reviewed-on: https://gerrit.libreoffice.org/53904Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarMike Kaganski <mike.kaganski@collabora.com>
üst fba6889f
......@@ -1055,6 +1055,13 @@ DECLARE_OOXMLEXPORT_TEST(testTdf92521, "tdf92521.odt")
DECLARE_OOXMLEXPORT_TEST(testTdf102466, "tdf102466.docx")
{
// the problem was: file is truncated: the first page is missing.
// More precisely, the table in the first page was clipped.
{
xmlDocPtr pXmlDoc = parseLayoutDump();
sal_Int32 nFlyPrtHeight = getXPath(pXmlDoc, "(/root/page[1]//fly)[1]/infos/prtBounds", "height").toInt32();
sal_Int32 nTableHeight = getXPath(pXmlDoc, "(/root/page[1]//fly)[1]/tab/infos/bounds", "height").toInt32();
CPPUNIT_ASSERT_MESSAGE("The table is clipped in a fly frame.", nFlyPrtHeight >= nTableHeight);
}
// check how much pages we have
CPPUNIT_ASSERT_EQUAL(10, getPages());
......
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