diff options
Diffstat (limited to 'sd/qa/unit/import-tests2.cxx')
-rw-r--r-- | sd/qa/unit/import-tests2.cxx | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/sd/qa/unit/import-tests2.cxx b/sd/qa/unit/import-tests2.cxx index e585673e3ad8..dd290907ee79 100644 --- a/sd/qa/unit/import-tests2.cxx +++ b/sd/qa/unit/import-tests2.cxx @@ -1872,6 +1872,26 @@ CPPUNIT_TEST_FIXTURE(SdImportTest2, testTdf149588TransparentSolidFill) CPPUNIT_ASSERT_EQUAL(Color(ColorTransparency, 0xCC636363), nCharColor); } +CPPUNIT_TEST_FIXTURE(SdImportTest2, testOverflowBehaviorClip) +{ + createSdImpressDoc("odp/style-overflow-behavior-clip.fodp"); + { + uno::Reference<beans::XPropertySet> xPropSet(getShapeFromPage(0, 0)); + // Without the accompanying fix in place, this test would have failed with: + // - Expected: 1 + // - Actual : 0 + CPPUNIT_ASSERT_EQUAL(true, + xPropSet->getPropertyValue("TextClipVerticalOverflow").get<bool>()); + } + + saveAndReload("impress8"); + { + uno::Reference<beans::XPropertySet> xPropSet(getShapeFromPage(0, 0)); + CPPUNIT_ASSERT_EQUAL(true, + xPropSet->getPropertyValue("TextClipVerticalOverflow").get<bool>()); + } +} + CPPUNIT_PLUGIN_IMPLEMENT(); /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |