[Libreoffice-commits] core.git: sw/qa

Samuel Mehrbrodt Samuel.Mehrbrodt at cib.de
Wed Sep 28 19:09:28 UTC 2016


 sw/qa/extras/rtfimport/data/tdf90697.rtf |   73 +++++++++++++++++++++++++++++++
 sw/qa/extras/rtfimport/rtfimport.cxx     |    7 ++
 2 files changed, 80 insertions(+)

New commits:
commit ad48da87038bd0ae67c2edb4199813e1a2205a69
Author: Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
Date:   Wed Sep 28 09:31:50 2016 +0000

    Reintroduce "tdf#90697 unit test for rtf import"
    
    This reverts commit 7c3cb23136229c748984b49847af6f729ce3e6ba.
    
    Change-Id: I3a38663f6dffbb47a4d120d59ba26ada76d4c701
    Reviewed-on: https://gerrit.libreoffice.org/29350
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Michael Stahl <mstahl at redhat.com>

diff --git a/sw/qa/extras/rtfimport/data/tdf90697.rtf b/sw/qa/extras/rtfimport/data/tdf90697.rtf
new file mode 100644
index 0000000..2e49379
--- /dev/null
+++ b/sw/qa/extras/rtfimport/data/tdf90697.rtf
@@ -0,0 +1,73 @@
+{\rtf1\ansi\ansicpg1252\uc1\deff0\deflang1031\deflangfe1031
+{\fonttbl
+{\f1\froman\fprq2 Times;}
+{\f2\fmodern\fprq1 Courier;}
+{\f3\froman\fprq2{\*\panose 02000506060000020003}Liberation Serif;}
+{\f4\froman\fprq2{\*\panose 02000903070000020003}Liberation Sans;}
+}
+{\colortbl;
+\red0\green0\blue0;
+\red0\green0\blue255;
+\red0\green255\blue255;
+\red0\green255\blue0;
+\red255\green0\blue255;
+\red255\green0\blue0;
+\red255\green255\blue0;
+\red255\green255\blue255;
+\red0\green0\blue128;
+\red0\green128\blue128;
+\red0\green128\blue0;
+\red128\green0\blue128;
+\red128\green0\blue0;
+\red128\green128\blue0;
+\red128\green128\blue128;
+\red192\green192\blue192;
+\red224\green224\blue224;
+\red208\green239\blue151;
+}
+{\stylesheet{\widctlpar\adjustright\fs20\cgrid\snext0 Normal;}
+{\*\cs10\additive Default Paragraph Font;}}
+{\info{\title V9.4 SAS System Output}{\author SAS Version 9.4}{\operator sastrust}{\version1}}
+\widowctrl\ftnbj\aenddoc\formshade\viewkind1\viewscale100\pgbrdrhead\pgbrdrfoot\fet0
+\paperw11904\paperh16837\margl1077\margr850\margt567\margb567
+\sectd\linex0\endnhere\pgwsxn11904\pghsxn16837\pgnrestart\pgnstarts1\sbknone
+
+\headery567\footery567\marglsxn1077\margrsxn850\margtsxn567\margbsxn567
+{\*\bkmkstart IDX}{\*\bkmkend IDX}
+
+
+\pard\plain\fs20\cf1\ql\f1{{\fs22\f3}}
+{\par}
+
+
+\pard\par\pard\sect\sectd\linex0\endnhere\pgwsxn11904\pghsxn16837\sbknone
+
+\headery567\footery567\marglsxn1077\margrsxn850\margtsxn567\margbsxn567
+{\*\bkmkstart IDX1}{\*\bkmkend IDX1}
+{\header\pard\plain\qr\pvmrg\phmrg\posxr\posy0{
+}}
+
+\trowd\trkeep\trql\trgaph0
+\pard\plain\intbl\sb0\sa0\sl-21\fs2\cf1\ql\f2{\cell}
+\cltxlrtb\clvertalt\cellx10
+{\row}
+
+\pard\plain\fs20\cf1\ql\f1{{\fs24\f3 {\line}{\line}{\line}{\line}}}
+{\par}
+\pard\par\pard\sect\sectd\linex0\endnhere\pgwsxn11904\pghsxn16837\sbknone
+
+\headery567\footery567\marglsxn1077\margrsxn850\margtsxn567\margbsxn567
+{\*\bkmkstart IDX2}{\*\bkmkend IDX2}
+{\header\pard\plain\qr\pvmrg\phmrg\posxr\posy0{
+}}
+
+\trowd\trkeep\trql\trgaph0
+\pard\plain\intbl\sb0\sa0\sl-21\fs2\cf1\ql\f2{\cell}
+\cltxlrtb\clvertalt\cellx10
+{\row}
+
+
+
+\pard\plain\fs20\cf1\ql\f1{{\fs24\f3 {\line}{\line}{\line}{\line}{\line}{\line}{\line}}}
+{\par}
+}
diff --git a/sw/qa/extras/rtfimport/rtfimport.cxx b/sw/qa/extras/rtfimport/rtfimport.cxx
index f66c2f0..0b307d7 100644
--- a/sw/qa/extras/rtfimport/rtfimport.cxx
+++ b/sw/qa/extras/rtfimport/rtfimport.cxx
@@ -2706,6 +2706,13 @@ DECLARE_RTFIMPORT_TEST(testTdf44986, "tdf44986.rtf")
     CPPUNIT_ASSERT_EQUAL(sal_Int32(1), getProperty< uno::Sequence<text::TableColumnSeparator> >(xTableRows->getByIndex(0), "TableColumnSeparators").getLength());
 }
 
+DECLARE_RTFIMPORT_TEST(testTdf90697, "tdf90697.rtf")
+{
+    // We want section breaks to be seen as section breaks, not as page breaks,
+    // so this document should have only one page, not three.
+    CPPUNIT_ASSERT_EQUAL(1, getPages());
+}
+
 CPPUNIT_PLUGIN_IMPLEMENT();
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */


More information about the Libreoffice-commits mailing list