diff options
author | Michael Stahl <mstahl@redhat.com> | 2013-03-15 22:47:53 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2013-03-15 22:54:06 +0100 |
commit | 2832da0f5982f6b5d6d96346a5db9460d59b7e2e (patch) | |
tree | bee05f3f3be7f0197227ef7337abc56b0a79ada4 /sw/qa/extras | |
parent | 4dc78aee9bcdb6ea5e9dc47ebb4a4b9e590c725a (diff) |
fdo#61952: add unit test
Change-Id: Idef40ea4ad615fa5d09d2a5ed6eb3fe861f1b5ea
Diffstat (limited to 'sw/qa/extras')
-rw-r--r-- | sw/qa/extras/odfimport/odfimport.cxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sw/qa/extras/odfimport/odfimport.cxx b/sw/qa/extras/odfimport/odfimport.cxx index 37da3176ba46..3bef663a399e 100644 --- a/sw/qa/extras/odfimport/odfimport.cxx +++ b/sw/qa/extras/odfimport/odfimport.cxx @@ -42,6 +42,7 @@ public: void testOdtBorders(); void testPageStyleLayoutDefault(); void testPageStyleLayoutRight(); + void testFdo61952(); void testFdo60842(); void testFdo56272(); @@ -63,6 +64,7 @@ void Test::run() {"borders_ooo33.odt", &Test::testOdtBorders}, {"hello.odt", &Test::testPageStyleLayoutDefault}, {"hello.odt", &Test::testPageStyleLayoutRight}, + {"hello.odt", &Test::testFdo61952}, {"fdo60842.odt", &Test::testFdo60842}, {"fdo56272.odt", &Test::testFdo56272}, }; @@ -295,6 +297,15 @@ void Test::testPageStyleLayoutRight() xPropertySet->setPropertyValue("PageStyleLayout", uno::makeAny(style::PageStyleLayout_RIGHT)); } +void Test::testFdo61952() +{ + uno::Reference<beans::XPropertySet> xPara(getParagraph(0), uno::UNO_QUERY); + xPara->setPropertyValue("PageDescName", uno::makeAny(OUString("Left Page"))); + xPara->setPropertyValue("PageDescName", uno::makeAny(OUString("Right Page"))); + xPara->setPropertyValue("PageDescName", uno::makeAny(OUString("Left Page"))); + xPara->setPropertyValue("PageDescName", uno::makeAny(OUString("Right Page"))); +} + void Test::testFdo60842() { uno::Reference<text::XTextContent> const xTable(getParagraphOrTable(0)); |