diff options
author | Michael Stahl <michael.stahl@allotropia.de> | 2021-06-21 14:44:29 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2021-06-23 21:04:58 +0200 |
commit | 442caa3ffc66c6609bb8e13c2d24906276873dca (patch) | |
tree | 3fe6ebadd275449613c25e8ccf1375ca283a4756 /sw | |
parent | c4f554dc38b461dd825e7b99bdf1e8a64a1e13f9 (diff) |
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>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/qa/core/layout/data/birt_min.odt | bin | 0 -> 18913 bytes | |||
-rw-r--r-- | sw/qa/core/layout/layout.cxx | 6 |
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 Binary files differnew file mode 100644 index 000000000000..44bcecb976ff --- /dev/null +++ b/sw/qa/core/layout/data/birt_min.odt diff --git a/sw/qa/core/layout/layout.cxx b/sw/qa/core/layout/layout.cxx index fc780f476ba8..1a83a17332c7 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<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 |