summaryrefslogtreecommitdiff
path: root/sw/qa/extras/odfexport
diff options
context:
space:
mode:
authorZolnai Tamás <zolnaitamas2000@gmail.com>2013-08-14 18:11:13 +0200
committerZolnai Tamás <zolnaitamas2000@gmail.com>2013-08-18 09:49:51 +0200
commitcc978cda8cc1d25f5f11758ff42d7c2137daf638 (patch)
treeb7b1b650aabe1df409dbdb172e7ad1b4c906103b /sw/qa/extras/odfexport
parent932901224ea8473bbcae6feced953340d489bcc5 (diff)
Add test for drop caps odf filter
Change-Id: I52735c222e14e725fc01caa156cb8ea9671a36cc
Diffstat (limited to 'sw/qa/extras/odfexport')
-rw-r--r--sw/qa/extras/odfexport/data/fdo43807.odtbin0 -> 7630 bytes
-rw-r--r--sw/qa/extras/odfexport/odfexport.cxx11
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
new file mode 100644
index 000000000000..ae03c59043a6
--- /dev/null
+++ b/sw/qa/extras/odfexport/data/fdo43807.odt
Binary files differ
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();