From a41c71838d4662adf1ada9d46ec6e070cae7e695 Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Mon, 21 Jun 2021 14:44:29 +0200 Subject: 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 --- sw/qa/core/layout/data/birt_min.odt | Bin 0 -> 18913 bytes sw/qa/core/layout/layout.cxx | 6 ++++++ 2 files changed, 6 insertions(+) create mode 100644 sw/qa/core/layout/data/birt_min.odt (limited to 'sw') 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 f1880bffab67..911c17189f8c 100644 --- a/sw/qa/core/layout/layout.cxx +++ b/sw/qa/core/layout/layout.cxx @@ -60,6 +60,12 @@ CPPUNIT_TEST_FIXTURE(SwCoreLayoutTest, testTdf128195) CPPUNIT_ASSERT_EQUAL(static_cast(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 -- cgit