summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Stahl <michael.stahl@allotropia.de>2021-06-21 14:44:29 +0200
committerXisco Fauli <xiscofauli@libreoffice.org>2021-06-22 09:35:51 +0200
commit5e658c91a5d1e69e34384dd50ac8ada358ebd8ba (patch)
tree00a59ad763e46ff8cdb3b3ef76c22979fd389a08
parenttdf#116501 sw: layout: check for flys in SwTabFrame::ShouldBwdMoved() (diff)
downloadcore-5e658c91a5d1e69e34384dd50ac8ada358ebd8ba.tar.gz
core-5e658c91a5d1e69e34384dd50ac8ada358ebd8ba.zip
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@allotropia.de> (cherry picked from commit a41c71838d4662adf1ada9d46ec6e070cae7e695) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117603 Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
-rw-r--r--sw/qa/core/layout/data/birt_min.odtbin0 -> 18913 bytes
-rw-r--r--sw/qa/core/layout/layout.cxx6
2 files changed, 6 insertions, 0 deletions
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
--- /dev/null
+++ b/sw/qa/core/layout/data/birt_min.odt
Binary files 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