summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Stahl <michael.stahl@allotropia.de>2021-06-21 14:44:29 +0200
committerSamuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>2022-01-17 16:04:51 +0100
commit3857705b16a5cc2ae5c67a3b0501d922e6c70d6b (patch)
tree5e37ca51d901b2bbcdd966aa2caf5958d1da1196
parentRevert "tdf#116501 fix freezing at embedded text tables" (diff)
downloadcore-3857705b16a5cc2ae5c67a3b0501d922e6c70d6b.tar.gz
core-3857705b16a5cc2ae5c67a3b0501d922e6c70d6b.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> (cherry picked from commit 5e658c91a5d1e69e34384dd50ac8ada358ebd8ba)
-rw-r--r--sw/qa/extras/layout/data/birt_min.odtbin0 -> 18913 bytes
-rw-r--r--sw/qa/extras/layout/layout.cxx6
2 files changed, 6 insertions, 0 deletions
diff --git a/sw/qa/extras/layout/data/birt_min.odt b/sw/qa/extras/layout/data/birt_min.odt
new file mode 100644
index 000000000000..44bcecb976ff
--- /dev/null
+++ b/sw/qa/extras/layout/data/birt_min.odt
Binary files differ
diff --git a/sw/qa/extras/layout/layout.cxx b/sw/qa/extras/layout/layout.cxx
index 8d9f2a476f2a..0bd25d45b4b6 100644
--- a/sw/qa/extras/layout/layout.cxx
+++ b/sw/qa/extras/layout/layout.cxx
@@ -3437,6 +3437,12 @@ CPPUNIT_TEST_FIXTURE(SwLayoutWriter, testBtlrTableRowSpan)
assertXPathContent(pXmlDoc, "//textarray[1]/text", "USA");
}
+CPPUNIT_TEST_FIXTURE(SwLayoutWriter, testBIRT)
+{
+ // this looped
+ load(DATA_DIRECTORY, "birt_min.odt");
+}
+
CPPUNIT_PLUGIN_IMPLEMENT();
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */