diff options
author | Charu Tyagi <charu.tyagi@ericsson.com> | 2014-07-22 16:31:13 +0530 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2014-07-29 13:29:38 +0000 |
commit | cb995849939e4b732dda952ec994e42ac0035348 (patch) | |
tree | 514cdb10c05b044d19a0f4a739928d0e2b73d33f | |
parent | e0c4a8cd4037377360492ff8e01d0ea8b3efb13e (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.docx | bin | 0 -> 13354 bytes | |||
-rw-r--r-- | sw/qa/extras/ooxmlimport/ooxmlimport.cxx | 8 |
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 Binary files differnew file mode 100644 index 000000000000..6e680c350a7c --- /dev/null +++ b/sw/qa/extras/ooxmlimport/data/fdo81486.docx 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") { /* |