[Libreoffice-commits] core.git: Branch 'libreoffice-7-0' - sc/qa

Xisco Fauli (via logerrit) logerrit at kemper.freedesktop.org
Tue Nov 10 14:26:18 UTC 2020


 sc/qa/extras/anchor.cxx           |   16 ++++++++++++++++
 sc/qa/unit/data/ods/tdf134161.ods |binary
 2 files changed, 16 insertions(+)

New commits:
commit a509659205601e51887127d7ecec0d4f4c137278
Author:     Xisco Fauli <xiscofauli at libreoffice.org>
AuthorDate: Thu Nov 5 20:20:06 2020 +0100
Commit:     Xisco Fauli <xiscofauli at libreoffice.org>
CommitDate: Tue Nov 10 15:25:42 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 <xiscofauli at libreoffice.org>
    (cherry picked from commit 7ccbeade150f450568f44ad6283d4a4dc3b379bf)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105532

diff --git a/sc/qa/extras/anchor.cxx b/sc/qa/extras/anchor.cxx
index 8801e9690b3d..ae7bdb010c53 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


More information about the Libreoffice-commits mailing list