summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2024-01-16 12:23:05 +0100
committerXisco Fauli <xiscofauli@libreoffice.org>2024-01-16 22:01:48 +0100
commite4755087cad159f8a3f628789256a4faa90a76bf (patch)
tree3df49333d308d7a142db7db9dc2998f5d7828597
parent30eb9b1941a801ccf18d450e307cbb8b91565fb3 (diff)
tdf#140330: sc_uicalc: Add unittest
Change-Id: I6cbb3f310f0876119e0d335807991e7a4f753226 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162169 Tested-by: Xisco Fauli <xiscofauli@libreoffice.org> Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
-rw-r--r--sc/qa/unit/uicalc/uicalc.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/sc/qa/unit/uicalc/uicalc.cxx b/sc/qa/unit/uicalc/uicalc.cxx
index 16c751fdefce..682160b62b2d 100644
--- a/sc/qa/unit/uicalc/uicalc.cxx
+++ b/sc/qa/unit/uicalc/uicalc.cxx
@@ -1229,6 +1229,13 @@ CPPUNIT_TEST_FIXTURE(ScUiCalcTest, testTdf104026)
// - Expected: Cell value != $Sheet1.$B2
// - Actual : Cell value != $Sheet1.$B#REF!
lcl_AssertConditionalFormatList(*pDoc, 5, aExpectedValues);
+
+ dispatchCommand(mxComponent, ".uno:Undo", {});
+
+ // tdf#140330: Without the fix in place, this test would have failed with
+ // - Expected: 6
+ // - Actual : 5
+ lcl_AssertConditionalFormatList(*pDoc, 6, aExpectedValues);
}
CPPUNIT_TEST_FIXTURE(ScUiCalcTest, testTdf92963)