tdf#148669: sc_uicalc: Add unittest

Change-Id: I2991ef99f5a617e36cfbe9499ef1c4195d52fdf6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133254
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
This commit is contained in:
Xisco Fauli
2022-04-21 13:37:29 +02:00
parent cdfd4d6c9a
commit c5de4d0277
2 changed files with 11 additions and 0 deletions

Binary file not shown.

View File

@@ -2261,6 +2261,17 @@ CPPUNIT_TEST_FIXTURE(ScUiCalcTest, testTdf118207)
pMod->SetInputOptions(aInputOption);
}
CPPUNIT_TEST_FIXTURE(ScUiCalcTest, testTdf148669)
{
// Without the fix in place, this test would have failed with an assert
ScModelObj* pModelObj = createDoc("tdf148669.xlsx");
ScDocument* pDoc = pModelObj->GetDocument();
CPPUNIT_ASSERT(pDoc);
CPPUNIT_ASSERT_MESSAGE("There should be a note", pDoc->HasNote(ScAddress(701, 0, 0)));
}
CPPUNIT_TEST_FIXTURE(ScUiCalcTest, testTdf124778)
{
mxComponent = loadFromDesktop("private:factory/scalc");