sc/qa/extras/anchor.cxx | 16 ++++++++++++++++ sc/qa/unit/data/ods/tdf134161.ods |binary 2 files changed, 16 insertions(+)
New commits: commit 7ccbeade150f450568f44ad6283d4a4dc3b379bf Author: Xisco Fauli <xiscofa...@libreoffice.org> AuthorDate: Thu Nov 5 20:20:06 2020 +0100 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Fri Nov 6 11:23:39 2020 +0100 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 <xiscofa...@libreoffice.org> 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); } diff --git a/sc/qa/unit/data/ods/tdf134161.ods b/sc/qa/unit/data/ods/tdf134161.ods new file mode 100644 index 000000000000..f18989a0f46e Binary files /dev/null and b/sc/qa/unit/data/ods/tdf134161.ods differ _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits