diff options
Diffstat (limited to 'sw/qa/extras/uiwriter/uiwriter.cxx')
-rw-r--r-- | sw/qa/extras/uiwriter/uiwriter.cxx | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sw/qa/extras/uiwriter/uiwriter.cxx b/sw/qa/extras/uiwriter/uiwriter.cxx index deb4b6c33b6d..8e80c1cbe79c 100644 --- a/sw/qa/extras/uiwriter/uiwriter.cxx +++ b/sw/qa/extras/uiwriter/uiwriter.cxx @@ -210,6 +210,7 @@ public: void testTdf112160(); void testTdf112741(); void testTdf112860(); + void testTdf113287(); void testLinesInSectionInTable(); void testLinesMoveBackwardsInSectionInTable(); @@ -327,6 +328,7 @@ public: CPPUNIT_TEST(testLinesMoveBackwardsInSectionInTable); CPPUNIT_TEST(testTdf112741); CPPUNIT_TEST(testTdf112860); + CPPUNIT_TEST(testTdf113287); CPPUNIT_TEST_SUITE_END(); private: @@ -3855,6 +3857,18 @@ void SwUiWriterTest::testTdf112860() createDoc("tdf112860.fodt"); } +void SwUiWriterTest::testTdf113287() +{ + createDoc("tdf113287.fodt"); + xmlDocPtr pXmlDoc = parseLayoutDump(); + assertXPath(pXmlDoc, "//page", 2); + sal_uInt32 nCellTop = getXPath(pXmlDoc, "//page[2]/body/tab/row/cell[1]/infos/bounds", "top").toUInt32(); + sal_uInt32 nSectionTop = getXPath(pXmlDoc, "//page[2]/body/tab/row/cell[1]/section/infos/bounds", "top").toUInt32(); + // Make sure section frame is inside the cell frame. + // Expected greater than 4593, was only 3714. + CPPUNIT_ASSERT(nSectionTop > nCellTop); +} + void SwUiWriterTest::testTableInSectionInTable() { // The document has a table, containing a section, containing a nested |