Kaydet (Commit) b45926a3 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

add test for tdf#109132

Change-Id: I115590658708bafc7c7778612251ad7eb716b30b
Reviewed-on: https://gerrit.libreoffice.org/58150
Tested-by: Jenkins
Reviewed-by: 's avatarMarkus Mohrhard <markus.mohrhard@googlemail.com>
üst f26ca928
......@@ -73,6 +73,7 @@ $(eval $(call gb_CppunitTest_use_vcl,sc_subsequent_filters_test))
$(eval $(call gb_CppunitTest_use_components,sc_subsequent_filters_test,\
basic/util/sb \
basctl/util/basctl \
chart2/source/chartcore \
chart2/source/controller/chartcontroller \
comphelper/util/comphelp \
......@@ -95,6 +96,7 @@ $(eval $(call gb_CppunitTest_use_components,sc_subsequent_filters_test,\
scaddins/source/datefunc/date \
sc/util/sc \
sc/util/scfilt \
sc/util/vbaobj \
sfx2/util/sfx \
sot/util/sot \
svl/util/svl \
......
......@@ -247,6 +247,7 @@ public:
void testHiddenRowsColumnsXLSXML();
void testColumnWidthRowHeightXLSXML();
void testTdf62268();
void testVBAMacroFunctionODS();
CPPUNIT_TEST_SUITE(ScFiltersTest);
CPPUNIT_TEST(testBooleanFormatXLSX);
......@@ -380,6 +381,7 @@ public:
CPPUNIT_TEST(testColumnWidthRowHeightXLSXML);
CPPUNIT_TEST(testCondFormatFormulaListenerXLSX);
CPPUNIT_TEST(testTdf62268);
CPPUNIT_TEST(testVBAMacroFunctionODS);
CPPUNIT_TEST_SUITE_END();
......@@ -4113,6 +4115,19 @@ void ScFiltersTest::testTdf62268()
xDocSh->DoClose();
}
void ScFiltersTest::testVBAMacroFunctionODS()
{
ScDocShellRef xDocSh = loadDoc("vba_macro_functions.", FORMAT_ODS);
ScDocument& rDoc = xDocSh->GetDocument();
OUString aFunction;
rDoc.GetFormula(2, 0, 0, aFunction);
std::cout << aFunction << std::endl;
CPPUNIT_ASSERT_DOUBLES_EQUAL(10.0, rDoc.GetValue(2, 0, 0), 1e-6);
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