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:
BIN
sc/qa/unit/uicalc/data/tdf148669.xlsx
Normal file
BIN
sc/qa/unit/uicalc/data/tdf148669.xlsx
Normal file
Binary file not shown.
@@ -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");
|
||||
|
Reference in New Issue
Block a user