diff options
author | Miklos Vajna <vmiklos@suse.cz> | 2012-02-22 13:05:37 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@suse.cz> | 2012-02-22 15:51:07 +0100 |
commit | 9fec1e59fa7e92cf91eaf8376f30160edcb86242 (patch) | |
tree | 1a3382df7ce023d3fcdf92e950c024e7de0c60ce /sw | |
parent | revert slew of debug code committed in error (diff) | |
download | core-9fec1e59fa7e92cf91eaf8376f30160edcb86242.tar.gz core-9fec1e59fa7e92cf91eaf8376f30160edcb86242.zip |
testcase for non-box paragraph borders
Diffstat (limited to 'sw')
-rw-r--r-- | sw/qa/extras/rtftok/data/n695479.rtf | 1 | ||||
-rw-r--r-- | sw/qa/extras/rtftok/rtftok.cxx | 11 |
2 files changed, 12 insertions, 0 deletions
diff --git a/sw/qa/extras/rtftok/data/n695479.rtf b/sw/qa/extras/rtftok/data/n695479.rtf index 213f868d5d7c..5fe7e4519c91 100644 --- a/sw/qa/extras/rtftok/data/n695479.rtf +++ b/sw/qa/extras/rtftok/data/n695479.rtf @@ -1,6 +1,7 @@ {\rtf1 \paperw12240\paperh15840\margl360\margr360\margt360\margb302\gutter0\ltrsect \pard\plain \ltrpar\ql \li0\ri0\nowidctlpar\pvpg\posx116\posy2167\absh-300\absw5134\overlay\faauto\rin0\lin0\itap0 +\brdrb\brdrdb\brdrw15\brsp20 \rtlch\fcs1 \af0\afs19\alang1025 \ltrch\fcs0 \fs19\lang1033\langfe1038\loch\af0\hich\af0\dbch\af31505\cgrid\langnp1033\langfenp1038 {\rtlch\fcs1 \af0\afs18 \ltrch\fcs0 \fs18\cf1\lang1038\langfe1038\langnp1038\insrsid10974703 \hich\af0\dbch\af31505\loch\f0 first diff --git a/sw/qa/extras/rtftok/rtftok.cxx b/sw/qa/extras/rtftok/rtftok.cxx index a1f6521ce94f..eb64e0ae9737 100644 --- a/sw/qa/extras/rtftok/rtftok.cxx +++ b/sw/qa/extras/rtftok/rtftok.cxx @@ -28,6 +28,8 @@ #include <com/sun/star/beans/XPropertySet.hpp> #include <com/sun/star/drawing/XDrawPageSupplier.hpp> #include <com/sun/star/lang/XServiceInfo.hpp> +#include <com/sun/star/table/BorderLine2.hpp> +#include <com/sun/star/table/BorderLineStyle.hpp> #include <com/sun/star/text/RelOrientation.hpp> #include <com/sun/star/text/SizeType.hpp> #include <com/sun/star/text/XTextDocument.hpp> @@ -198,6 +200,15 @@ void RtfModelTest::testN695479() uno::Reference<text::XTextRange> xRange(xTextContent->getAnchor(), uno::UNO_QUERY); uno::Reference<text::XText> xText(xRange->getText(), uno::UNO_QUERY); CPPUNIT_ASSERT_EQUAL(OUString(RTL_CONSTASCII_USTRINGPARAM("plain")), xText->getString()); + + if (i == 0) + { + // Additonally, the frist frame should have double border at the bottom. + aValue = xPropertySet->getPropertyValue(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("BottomBorder"))); + table::BorderLine2 aBorder; + aValue >>= aBorder; + CPPUNIT_ASSERT_EQUAL(table::BorderLineStyle::DOUBLE, aBorder.LineStyle); + } } else if (xServiceInfo->supportsService(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.drawing.LineShape")))) { |