summaryrefslogtreecommitdiff
path: root/sw/qa/extras/rtfexport
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-09-24 07:40:14 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-09-24 07:40:58 +0200
commit0d7d6f242ef87c976095d22a7f5ebf751ba77ad8 (patch)
tree1ad3cb45e42b68caf18eefd18aa2c91dc796aee1 /sw/qa/extras/rtfexport
parent17cf36bf72afc4a22a6d917bfcee9cddfd29779b (diff)
Related: tdf#92521 RTF export: handle section break right after a table
Change-Id: Ibb6e612165ec6e5d771bdf9efa13a88a72233d6f
Diffstat (limited to 'sw/qa/extras/rtfexport')
-rw-r--r--sw/qa/extras/rtfexport/data/tdf92521.odtbin0 -> 8891 bytes
-rw-r--r--sw/qa/extras/rtfexport/rtfexport.cxx7
2 files changed, 7 insertions, 0 deletions
diff --git a/sw/qa/extras/rtfexport/data/tdf92521.odt b/sw/qa/extras/rtfexport/data/tdf92521.odt
new file mode 100644
index 000000000000..8148e49a2275
--- /dev/null
+++ b/sw/qa/extras/rtfexport/data/tdf92521.odt
Binary files differ
diff --git a/sw/qa/extras/rtfexport/rtfexport.cxx b/sw/qa/extras/rtfexport/rtfexport.cxx
index 4abea4098101..4371ef5b63f9 100644
--- a/sw/qa/extras/rtfexport/rtfexport.cxx
+++ b/sw/qa/extras/rtfexport/rtfexport.cxx
@@ -936,6 +936,13 @@ DECLARE_RTFEXPORT_TEST(testTdf90421, "tdf90421.fodt")
}
}
+DECLARE_RTFEXPORT_TEST(testTdf92521, "tdf92521.odt")
+{
+ // There should be a page break that's in the middle of the document: right after the table.
+ // But there wasn't, so this was 1.
+ CPPUNIT_ASSERT_EQUAL(2, getPages());
+}
+
CPPUNIT_PLUGIN_IMPLEMENT();
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */