summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharu Tyagi <charu.tyagi@ericsson.com>2014-07-22 16:31:13 +0530
committerMichael Stahl <mstahl@redhat.com>2014-07-29 13:29:38 +0000
commitcb995849939e4b732dda952ec994e42ac0035348 (patch)
tree514cdb10c05b044d19a0f4a739928d0e2b73d33f
parente0c4a8cd4037377360492ff8e01d0ea8b3efb13e (diff)
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@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
-rw-r--r--sw/qa/extras/ooxmlimport/data/fdo81486.docxbin0 -> 13354 bytes
-rw-r--r--sw/qa/extras/ooxmlimport/ooxmlimport.cxx8
2 files changed, 8 insertions, 0 deletions
diff --git a/sw/qa/extras/ooxmlimport/data/fdo81486.docx b/sw/qa/extras/ooxmlimport/data/fdo81486.docx
new file mode 100644
index 000000000000..6e680c350a7c
--- /dev/null
+++ b/sw/qa/extras/ooxmlimport/data/fdo81486.docx
Binary files differ
diff --git a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx
index a8c093673b13..eca47da487e2 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")
{
/*