diff options
-rw-r--r-- | sw/qa/extras/odfexport/data/fdo43807.odt | bin | 0 -> 7630 bytes | |||
-rw-r--r-- | sw/qa/extras/odfexport/odfexport.cxx | 11 |
2 files changed, 11 insertions, 0 deletions
diff --git a/sw/qa/extras/odfexport/data/fdo43807.odt b/sw/qa/extras/odfexport/data/fdo43807.odt Binary files differnew file mode 100644 index 000000000000..ae03c59043a6 --- /dev/null +++ b/sw/qa/extras/odfexport/data/fdo43807.odt diff --git a/sw/qa/extras/odfexport/odfexport.cxx b/sw/qa/extras/odfexport/odfexport.cxx index 3fbf196d4c5e..3a248b29575d 100644 --- a/sw/qa/extras/odfexport/odfexport.cxx +++ b/sw/qa/extras/odfexport/odfexport.cxx @@ -20,6 +20,7 @@ public: void testFdo60769(); void testFdo58949(); void testCharacterBorder(); + void testFdo43807(); CPPUNIT_TEST_SUITE(Test); #if !defined(MACOSX) && !defined(WNT) @@ -40,6 +41,7 @@ void Test::run() {"fdo60769.odt", &Test::testFdo60769}, {"fdo58949.docx", &Test::testFdo58949}, {"charborder.odt", &Test::testCharacterBorder }, + {"fdo43807.odt", &Test::testFdo43807 }, }; header(); for (unsigned int i = 0; i < SAL_N_ELEMENTS(aMethods); ++i) @@ -338,6 +340,15 @@ void Test::testCharacterBorder() } } +void Test::testFdo43807() +{ + uno::Reference<beans::XPropertySet> xSet(getParagraph(1), uno::UNO_QUERY); + CPPUNIT_ASSERT_EQUAL(OUString("Drop Caps"),getProperty<OUString>(xSet,"DropCapCharStyleName")); + + xSet = uno::Reference<beans::XPropertySet>(getParagraph(2), uno::UNO_QUERY); + CPPUNIT_ASSERT_EQUAL(OUString("User Defined Drop Caps"),getProperty<OUString>(xSet,"DropCapCharStyleName")); +} + CPPUNIT_TEST_SUITE_REGISTRATION(Test); CPPUNIT_PLUGIN_IMPLEMENT(); |