summaryrefslogtreecommitdiff
path: root/sw/qa/extras/odfimport/odfimport.cxx
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2013-02-16 20:56:21 +0100
committerMichael Stahl <mstahl@redhat.com>2013-02-18 20:16:06 +0100
commit08dc5de900b2e5cca9d9443fc5d4ea7756842af9 (patch)
tree351ff8863b4c3390fb4086487b069ddbfb509b6b /sw/qa/extras/odfimport/odfimport.cxx
parent40dc6c3a97c9f40617e2258f0f0cf866bcb13c8a (diff)
fdo#60842: add a unit test
Change-Id: Ie91fe22f2baf0a280e5cf21c2416228ab414f285
Diffstat (limited to 'sw/qa/extras/odfimport/odfimport.cxx')
-rw-r--r--sw/qa/extras/odfimport/odfimport.cxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/sw/qa/extras/odfimport/odfimport.cxx b/sw/qa/extras/odfimport/odfimport.cxx
index fff0e79849c5..cfeda28b4048 100644
--- a/sw/qa/extras/odfimport/odfimport.cxx
+++ b/sw/qa/extras/odfimport/odfimport.cxx
@@ -42,6 +42,7 @@ public:
void testOdtBorders();
void testPageStyleLayoutDefault();
void testPageStyleLayoutRight();
+ void testFdo60842();
CPPUNIT_TEST_SUITE(Test);
#if !defined(MACOSX) && !defined(WNT)
@@ -61,6 +62,7 @@ void Test::run()
{"borders_ooo33.odt", &Test::testOdtBorders},
{"hello.odt", &Test::testPageStyleLayoutDefault},
{"hello.odt", &Test::testPageStyleLayoutRight},
+ {"fdo60842.odt", &Test::testFdo60842},
};
header();
for (unsigned int i = 0; i < SAL_N_ELEMENTS(aMethods); ++i)
@@ -291,6 +293,16 @@ void Test::testPageStyleLayoutRight()
xPropertySet->setPropertyValue("PageStyleLayout", uno::makeAny(style::PageStyleLayout_RIGHT));
}
+void Test::testFdo60842()
+{
+ uno::Reference<text::XTextContent> const xTable(getParagraphOrTable(0));
+ getCell(xTable, "A1", "");
+ getCell(xTable, "B1", "18/02/2012");
+ getCell(xTable, "C1", "USD"); // this is the cell with office:string-value
+ getCell(xTable, "D1", "");
+ getCell(xTable, "E1", "01/04/2012");
+}
+
CPPUNIT_TEST_SUITE_REGISTRATION(Test);
CPPUNIT_PLUGIN_IMPLEMENT();