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

Charu Tyagi charu.tyagi at ericsson.com
Tue Jul 29 06:30:09 PDT 2014


 sw/qa/extras/ooxmlimport/data/fdo81486.docx |binary
 sw/qa/extras/ooxmlimport/ooxmlimport.cxx    |    8 ++++++++
 2 files changed, 8 insertions(+)

New commits:
commit cb995849939e4b732dda952ec994e42ac0035348
Author: Charu Tyagi <charu.tyagi at ericsson.com>
Date:   Tue Jul 22 16:31:13 2014 +0530

    fdo#81486:Test case for patch that fixes bug 81486
    
    Change-Id: Ife96b8313595f4a4e52f46e11130bd37a994c397
    Reviewed-on: https://gerrit.libreoffice.org/10454
    Reviewed-by: Michael Stahl <mstahl at redhat.com>
    Tested-by: Michael Stahl <mstahl at redhat.com>

diff --git a/sw/qa/extras/ooxmlimport/data/fdo81486.docx b/sw/qa/extras/ooxmlimport/data/fdo81486.docx
new file mode 100644
index 0000000..6e680c3
Binary files /dev/null and b/sw/qa/extras/ooxmlimport/data/fdo81486.docx differ
diff --git a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx
index a8c0936..eca47da 100644
--- a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx
+++ b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx
@@ -229,6 +229,14 @@ DECLARE_OOXMLIMPORT_TEST(testFdo74745, "fdo74745.docx")
     CPPUNIT_ASSERT_EQUAL(text->getString(),OUString("09/02/14"));
 }
 
+DECLARE_OOXMLIMPORT_TEST(testFdo81486, "fdo81486.docx")
+{
+    uno::Reference<text::XTextRange > paragraph = getParagraph(1);
+    uno::Reference<text::XTextRange> text(paragraph, uno::UNO_QUERY);
+    CPPUNIT_ASSERT_EQUAL(text->getString(),OUString("CustomTitle"));
+}
+
+
 DECLARE_OOXMLIMPORT_TEST(testN751077, "n751077.docx")
 {
 /*


More information about the Libreoffice-commits mailing list