diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2020-02-14 14:02:16 +0100 |
---|---|---|
committer | Xisco Faulí <xiscofauli@libreoffice.org> | 2020-02-14 15:58:00 +0100 |
commit | 2f9b7f4d7d35d0e2d85132792f8c74c54f05d6c1 (patch) | |
tree | c548de42b5df0f4a2c4db9735c2ba882513d104f /sc/qa/extras | |
parent | 252e8476bbc33a04f3314bbb3563b144164d5d46 (diff) |
tdf#121963: Add unittest (part 2)
Forgot to add the .cxx file. Thansk to Miklos for noticing
Change-Id: I922680fde98f51f4339fb0e188310b0d7cc635a7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88708
Tested-by: Jenkins
Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
Diffstat (limited to 'sc/qa/extras')
-rw-r--r-- | sc/qa/extras/anchor.cxx | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/sc/qa/extras/anchor.cxx b/sc/qa/extras/anchor.cxx index 18ea4f9792fe..5a9d35d18674 100644 --- a/sc/qa/extras/anchor.cxx +++ b/sc/qa/extras/anchor.cxx @@ -42,6 +42,7 @@ public: void testODFAnchorTypes(); void testCopyColumnWithImages(); void testCutWithImages(); + void testTdf121963(); void testTdf129552(); void testTdf130556(); @@ -51,6 +52,7 @@ public: CPPUNIT_TEST(testODFAnchorTypes); CPPUNIT_TEST(testCopyColumnWithImages); CPPUNIT_TEST(testCutWithImages); + CPPUNIT_TEST(testTdf121963); CPPUNIT_TEST(testTdf129552); CPPUNIT_TEST(testTdf130556); CPPUNIT_TEST_SUITE_END(); @@ -372,6 +374,20 @@ void ScAnchorTest::testCutWithImages() pDocSh->DoClose(); } +void ScAnchorTest::testTdf121963() +{ + OUString aFileURL; + createFileURL("tdf121963.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, where ScGridWindow::Paint() invalidated itself. + Scheduler::ProcessEventsToIdle(); + + xComponent->dispose(); +} + void ScAnchorTest::testTdf129552() { OUString aFileURL; |