diff options
author | Charu Tyagi <charu.tyagi@ericsson.com> | 2014-07-08 14:51:37 +0530 |
---|---|---|
committer | Muthu Subramanian K <muthusuba@gmail.com> | 2014-07-10 14:29:05 +0000 |
commit | 6476f559070f0a7f2bb14f5f9a29d5bb10e62bb5 (patch) | |
tree | 91747699ec2ac540ea1ae65134dbae8b0cfe54d1 /sw | |
parent | 1093b900b43d819c9a730ef6435fed0f3687a085 (diff) |
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@gmail.com>
Tested-by: Muthu Subramanian K <muthusuba@gmail.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/qa/extras/ooxmlimport/data/fdo74745.docx | bin | 0 -> 32560 bytes | |||
-rw-r--r-- | sw/qa/extras/ooxmlimport/ooxmlimport.cxx | 7 |
2 files changed, 7 insertions, 0 deletions
diff --git a/sw/qa/extras/ooxmlimport/data/fdo74745.docx b/sw/qa/extras/ooxmlimport/data/fdo74745.docx Binary files differnew file mode 100644 index 000000000000..773567756a79 --- /dev/null +++ b/sw/qa/extras/ooxmlimport/data/fdo74745.docx diff --git a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx index c1916b115442..954dae38e374 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") { /* |