Kaydet (Commit) 6cf44da0 authored tarafından Maarten Bosmans's avatar Maarten Bosmans Kaydeden (comit) Markus Mohrhard

Related: tdf#100709 Add unit test

This tests for the two bugs fixed in d16070a3.

Change-Id: I453fc603ca98895c56c6e8df6315b8d1ea96bfde
Reviewed-on: https://gerrit.libreoffice.org/28734Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarMarkus Mohrhard <markus.mohrhard@googlemail.com>
üst 4a751b11
......@@ -216,6 +216,7 @@ public:
void testBnc762542();
void testTdf100458();
void testTdf100709XLSX();
CPPUNIT_TEST_SUITE(ScFiltersTest);
CPPUNIT_TEST(testBooleanFormatXLSX);
......@@ -321,6 +322,7 @@ public:
CPPUNIT_TEST(testHiddenSheetsXLSX);
CPPUNIT_TEST(testTdf100458);
CPPUNIT_TEST(testTdf100709XLSX);
CPPUNIT_TEST_SUITE_END();
......@@ -3342,6 +3344,18 @@ void ScFiltersTest::testTdf100458()
CPPUNIT_ASSERT(!rDoc.HasStringData(0, 0, 0));
}
void ScFiltersTest::testTdf100709XLSX()
{
ScDocShellRef xDocSh = ScBootstrapFixture::loadDoc("tdf100709.", FORMAT_XLSX);
CPPUNIT_ASSERT_MESSAGE("Failed to load tdf100709.xlsx", xDocSh.Is());
ScDocument& rDoc = xDocSh->GetDocument();
CPPUNIT_ASSERT_EQUAL_MESSAGE("Cell B52 should not be formatted with a $", OUString("218"), rDoc.GetString(1, 51, 0));
CPPUNIT_ASSERT_EQUAL_MESSAGE("Cell A75 should not be formatted as a date", OUString("218"), rDoc.GetString(0, 74, 0));
xDocSh->DoClose();
}
ScFiltersTest::ScFiltersTest()
: ScBootstrapFixture( "sc/qa/unit/data" )
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment