Kaydet (Commit) eb15e157 authored tarafından László Németh's avatar László Németh

tdf#91260: unit test for textbox shrinking

When the textboxes extend beyond the page bottom, the fix for
tdf#91260 keeps the original vertical position of the text frame
by changing its height.

Change-Id: I691b46640876bd082bd83da1bbd43f1e33ec807d
üst f186e84d
...@@ -882,6 +882,17 @@ DECLARE_OOXMLIMPORT_TEST(testTDF91122, "tdf91122.docx") ...@@ -882,6 +882,17 @@ DECLARE_OOXMLIMPORT_TEST(testTDF91122, "tdf91122.docx")
CPPUNIT_ASSERT_EQUAL_MESSAGE("Wrong vertical orientation", text::VertOrientation::TOP, nValue); CPPUNIT_ASSERT_EQUAL_MESSAGE("Wrong vertical orientation", text::VertOrientation::TOP, nValue);
} }
DECLARE_OOXMLIMPORT_TEST(testTDF91260, "tdf91260.docx")
{
/*
* textbox can't extend beyond the page bottom
* solution: shrinking textbox (its text frame) height, if needed
*/
uno::Reference<text::XTextRange> xFrame(getShape(1), uno::UNO_QUERY);
CPPUNIT_ASSERT(xFrame->getString().startsWith( "Lorem ipsum" ) );
CPPUNIT_ASSERT_EQUAL(sal_Int32(3454), getProperty<sal_Int32>(xFrame, "Height"));
}
DECLARE_OOXMLIMPORT_TEST(testFdo74357, "fdo74357.docx") DECLARE_OOXMLIMPORT_TEST(testFdo74357, "fdo74357.docx")
{ {
// Floating table wasn't converted to a textframe. // Floating table wasn't converted to a textframe.
......
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