[Libreoffice-commits] core.git: Branch 'libreoffice-7-1' - sw/qa

Michael Stahl (via logerrit) logerrit at kemper.freedesktop.org
Tue Jun 22 07:36:23 UTC 2021


 sw/qa/core/layout/data/birt_min.odt |binary
 sw/qa/core/layout/layout.cxx        |    6 ++++++
 2 files changed, 6 insertions(+)

New commits:
commit 5e658c91a5d1e69e34384dd50ac8ada358ebd8ba
Author:     Michael Stahl <michael.stahl at allotropia.de>
AuthorDate: Mon Jun 21 14:44:29 2021 +0200
Commit:     Xisco Fauli <xiscofauli at libreoffice.org>
CommitDate: Tue Jun 22 09:35:51 2021 +0200

    sw: add BIRT layout test document
    
    This nested table is an example that was broken by commit
    91b2239783dc716bd71ce7962bfd7e341dfe4175 - if loaded with a wide window,
    it goes into layout loop; if loaded with a tall window size where page
    2 is visible, strangely it doesn't loop.
    
    Change-Id: I5e73cfcd928ff1a321667c1a75b0ba7f348d4b77
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117587
    Tested-by: Jenkins
    Reviewed-by: Michael Stahl <michael.stahl at allotropia.de>
    (cherry picked from commit a41c71838d4662adf1ada9d46ec6e070cae7e695)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117603
    Reviewed-by: Xisco Fauli <xiscofauli at libreoffice.org>

diff --git a/sw/qa/core/layout/data/birt_min.odt b/sw/qa/core/layout/data/birt_min.odt
new file mode 100644
index 000000000000..44bcecb976ff
Binary files /dev/null and b/sw/qa/core/layout/data/birt_min.odt differ
diff --git a/sw/qa/core/layout/layout.cxx b/sw/qa/core/layout/layout.cxx
index 3f6199f8dd01..714a1eb95254 100644
--- a/sw/qa/core/layout/layout.cxx
+++ b/sw/qa/core/layout/layout.cxx
@@ -58,6 +58,12 @@ CPPUNIT_TEST_FIXTURE(SwCoreLayoutTest, testTdf128195)
     CPPUNIT_ASSERT_EQUAL(static_cast<sal_Int32>(3529), nTxtBottom);
 }
 
+CPPUNIT_TEST_FIXTURE(SwCoreLayoutTest, testBIRT)
+{
+    // this looped
+    load(DATA_DIRECTORY, "birt_min.odt");
+}
+
 CPPUNIT_TEST_FIXTURE(SwCoreLayoutTest, testBorderCollapseCompat)
 {
     // Load a document with a border conflict: top cell has a dotted bottom border, bottom cell has


More information about the Libreoffice-commits mailing list