summaryrefslogtreecommitdiff
path: root/sw/qa/extras
diff options
context:
space:
mode:
authorMark Hung <marklh9@gmail.com>2018-05-05 11:30:12 +0800
committerMike Kaganski <mike.kaganski@collabora.com>2018-05-08 14:59:55 +0200
commit1d5e837148dbd9bdc1cb6804e5f6fc6e369d17f2 (patch)
tree3a40045359050e6d6acb699c6c4e1180a9aa7df6 /sw/qa/extras
parentfba6889f2590185a15646d5b36a49159407a6aaf (diff)
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/53904 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sw/qa/extras')
-rw-r--r--sw/qa/extras/ooxmlexport/ooxmlexport4.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport4.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport4.cxx
index 6232c9f8e7ee..d0191c0271dd 100644
--- a/sw/qa/extras/ooxmlexport/ooxmlexport4.cxx
+++ b/sw/qa/extras/ooxmlexport/ooxmlexport4.cxx
@@ -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());