summaryrefslogtreecommitdiff
path: root/sw/qa/uibase/uiview/uiview.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/qa/uibase/uiview/uiview.cxx')
-rw-r--r--sw/qa/uibase/uiview/uiview.cxx15
1 files changed, 15 insertions, 0 deletions
diff --git a/sw/qa/uibase/uiview/uiview.cxx b/sw/qa/uibase/uiview/uiview.cxx
index d6c7a2c15125..a7453f0b8f6e 100644
--- a/sw/qa/uibase/uiview/uiview.cxx
+++ b/sw/qa/uibase/uiview/uiview.cxx
@@ -309,6 +309,21 @@ CPPUNIT_TEST_FIXTURE(SwUibaseUiviewTest, testPrintPreview)
pView->SetFormShell(pFormShell);
}
+CPPUNIT_TEST_FIXTURE(SwUibaseUiviewTest, TestTdf152839_Formtext)
+{
+ createSwDoc("tdf152839_formtext.rtf");
+
+ xmlDocUniquePtr pXmlDoc = parseLayoutDump();
+ sal_Int32 nBottom
+ = getXPath(pXmlDoc, "/root/page[1]/body/tab[1]/row[2]/cell[1]/infos/bounds", "bottom")
+ .toInt32();
+ sal_Int32 nHeight
+ = getXPath(pXmlDoc, "/root/page[1]/body/tab[1]/row[2]/cell[1]/txt/infos/bounds", "height")
+ .toInt32();
+ CPPUNIT_ASSERT_EQUAL(sal_Int32(2308), nBottom);
+ CPPUNIT_ASSERT_EQUAL(sal_Int32(723), nHeight);
+}
+
CPPUNIT_PLUGIN_IMPLEMENT();
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */