fdo#76294: Write import test for this.

Change-Id: I4d2f98117b783e801916f99fd99e69d43e161e2d
This commit is contained in:
Kohei Yoshida
2014-04-14 16:41:14 -04:00
parent 981590d1cf
commit 2da75ceaca
2 changed files with 16 additions and 0 deletions

View File

@@ -124,6 +124,8 @@ public:
void testNewCondFormatODS(); void testNewCondFormatODS();
void testNewCondFormatXLSX(); void testNewCondFormatXLSX();
void testLiteralInFormulaXLS();
//change this test file only in excel and not in calc //change this test file only in excel and not in calc
void testCellValueXLSX(); void testCellValueXLSX();
@@ -211,6 +213,7 @@ public:
CPPUNIT_TEST(testColorScaleXLSX); CPPUNIT_TEST(testColorScaleXLSX);
CPPUNIT_TEST(testNewCondFormatODS); CPPUNIT_TEST(testNewCondFormatODS);
CPPUNIT_TEST(testNewCondFormatXLSX); CPPUNIT_TEST(testNewCondFormatXLSX);
CPPUNIT_TEST(testLiteralInFormulaXLS);
CPPUNIT_TEST(testNumberFormatHTML); CPPUNIT_TEST(testNumberFormatHTML);
CPPUNIT_TEST(testNumberFormatCSV); CPPUNIT_TEST(testNumberFormatCSV);
@@ -2347,6 +2350,19 @@ void ScFiltersTest::testNewCondFormatXLSX()
xDocSh->DoClose(); xDocSh->DoClose();
} }
void ScFiltersTest::testLiteralInFormulaXLS()
{
ScDocShellRef xDocSh = loadDoc("shared-string/literal-in-formula.", XLS);
CPPUNIT_ASSERT(xDocSh.Is());
ScDocument* pDoc = xDocSh->GetDocument();
pDoc->CalcAll();
CPPUNIT_ASSERT_EQUAL(2.0, pDoc->GetValue(ScAddress(0,0,0)));
xDocSh->DoClose();
}
void ScFiltersTest::testFormulaDependency() void ScFiltersTest::testFormulaDependency()
{ {
ScDocShellRef xDocSh = ScBootstrapFixture::loadDoc( "dependencyTree.", ODS ); ScDocShellRef xDocSh = ScBootstrapFixture::loadDoc( "dependencyTree.", ODS );