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

Charu Tyagi charu.tyagi at ericsson.com
Thu Jul 10 07:29:34 PDT 2014


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

New commits:
commit 6476f559070f0a7f2bb14f5f9a29d5bb10e62bb5
Author: Charu Tyagi <charu.tyagi at ericsson.com>
Date:   Tue Jul 8 14:51:37 2014 +0530

    fdo#74745: Test Case for importing custom property of type date correctly in writer.
    
    Change-Id: I61c7ec4953269a88f3edcebc5b81b01de5b8f3fc
    Reviewed-on: https://gerrit.libreoffice.org/10132
    Reviewed-by: Muthu Subramanian K <muthusuba at gmail.com>
    Tested-by: Muthu Subramanian K <muthusuba at gmail.com>

diff --git a/sw/qa/extras/ooxmlimport/data/fdo74745.docx b/sw/qa/extras/ooxmlimport/data/fdo74745.docx
new file mode 100644
index 0000000..7735677
Binary files /dev/null and b/sw/qa/extras/ooxmlimport/data/fdo74745.docx differ
diff --git a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx
index c1916b1..954dae3 100644
--- a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx
+++ b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx
@@ -222,6 +222,13 @@ DECLARE_OOXMLIMPORT_TEST(testFdo49940, "fdo49940.docx")
     CPPUNIT_ASSERT_EQUAL(OUString("First Page"), aValue);
 }
 
+DECLARE_OOXMLIMPORT_TEST(testFdo74745, "fdo74745.docx")
+{
+    uno::Reference<text::XTextRange > paragraph = getParagraph(3);
+    uno::Reference<text::XTextRange> text(paragraph, uno::UNO_QUERY);
+    CPPUNIT_ASSERT_EQUAL(text->getString(),OUString("09/02/14"));
+}
+
 DECLARE_OOXMLIMPORT_TEST(testN751077, "n751077.docx")
 {
 /*


More information about the Libreoffice-commits mailing list