diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2022-04-21 13:37:29 +0200 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2022-04-21 16:01:24 +0200 |
commit | c5de4d0277e18fbf79f8f80fbe49d2d25be1fb4c (patch) | |
tree | 462ea46157de2074398908abefd8c14383d6de91 /sc | |
parent | cdfd4d6c9a8cebe55a85624aaaff2664f270b247 (diff) |
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>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/qa/unit/uicalc/data/tdf148669.xlsx | bin | 0 -> 11607 bytes | |||
-rw-r--r-- | sc/qa/unit/uicalc/uicalc.cxx | 11 |
2 files changed, 11 insertions, 0 deletions
diff --git a/sc/qa/unit/uicalc/data/tdf148669.xlsx b/sc/qa/unit/uicalc/data/tdf148669.xlsx Binary files differnew file mode 100644 index 000000000000..ac2634913972 --- /dev/null +++ b/sc/qa/unit/uicalc/data/tdf148669.xlsx diff --git a/sc/qa/unit/uicalc/uicalc.cxx b/sc/qa/unit/uicalc/uicalc.cxx index 9b3fb5c8a73f..2d3f48a8387b 100644 --- a/sc/qa/unit/uicalc/uicalc.cxx +++ b/sc/qa/unit/uicalc/uicalc.cxx @@ -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"); |