summaryrefslogtreecommitdiff
path: root/sc/qa/extras
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2020-11-05 20:20:06 +0100
committerXisco Fauli <xiscofauli@libreoffice.org>2020-11-06 11:23:39 +0100
commit7ccbeade150f450568f44ad6283d4a4dc3b379bf (patch)
tree7364ed9db9d9cf9636a9aa8e5e37fb8a5cd0939f /sc/qa/extras
parent0de59fac73861466aea95796f16a0fe17e083172 (diff)
tdf#134161: sc_anchor: Add unittest
Change-Id: Iff58a85b9080ebe9c0d088237acb3af7018d3f04 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105380 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'sc/qa/extras')
-rw-r--r--sc/qa/extras/anchor.cxx16
1 files changed, 16 insertions, 0 deletions
diff --git a/sc/qa/extras/anchor.cxx b/sc/qa/extras/anchor.cxx
index 7fdb6a33d23d..922ef1dbf319 100644
--- a/sc/qa/extras/anchor.cxx
+++ b/sc/qa/extras/anchor.cxx
@@ -43,6 +43,7 @@ public:
void testTdf121963();
void testTdf129552();
void testTdf130556();
+ void testTdf134161();
CPPUNIT_TEST_SUITE(ScAnchorTest);
CPPUNIT_TEST(testUndoAnchor);
@@ -53,6 +54,7 @@ public:
CPPUNIT_TEST(testTdf121963);
CPPUNIT_TEST(testTdf129552);
CPPUNIT_TEST(testTdf130556);
+ CPPUNIT_TEST(testTdf134161);
CPPUNIT_TEST_SUITE_END();
};
@@ -411,6 +413,20 @@ void ScAnchorTest::testTdf130556()
xComponent->dispose();
}
+void ScAnchorTest::testTdf134161()
+{
+ OUString aFileURL;
+ createFileURL("tdf134161.ods", aFileURL);
+ uno::Reference<css::lang::XComponent> xComponent = loadFromDesktop(aFileURL);
+ CPPUNIT_ASSERT(xComponent.is());
+
+ // Without the accompanying fix in place, this test would have never returned due to an infinite
+ // invalidation loop
+ Scheduler::ProcessEventsToIdle();
+
+ xComponent->dispose();
+}
+
CPPUNIT_TEST_SUITE_REGISTRATION(ScAnchorTest);
}