summaryrefslogtreecommitdiff
path: root/sw/qa/extras/ooxmlexport/ooxmlexport3.cxx
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2020-05-12 10:20:51 +0200
committerXisco FaulĂ­ <xiscofauli@libreoffice.org>2020-05-13 11:16:28 +0200
commit3ae3fe7a5758beb0fd27ae77e1f28d7825bc1e70 (patch)
treef9df05d0bc74ff60cee0074b710bdaa388ca54a6 /sw/qa/extras/ooxmlexport/ooxmlexport3.cxx
parent7c831c94ceaf7f48383315216573b1f5691c10bc (diff)
CppUnittest: ooxmlexport: assert pages in odf files
Change-Id: I3ea11ed9c2fa366e4f615df3c417c89758cbe4db Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94038 Tested-by: Jenkins Reviewed-by: Xisco FaulĂ­ <xiscofauli@libreoffice.org>
Diffstat (limited to 'sw/qa/extras/ooxmlexport/ooxmlexport3.cxx')
-rw-r--r--sw/qa/extras/ooxmlexport/ooxmlexport3.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport3.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport3.cxx
index a1e572fed89f..5b4db5f10a86 100644
--- a/sw/qa/extras/ooxmlexport/ooxmlexport3.cxx
+++ b/sw/qa/extras/ooxmlexport/ooxmlexport3.cxx
@@ -94,6 +94,7 @@ DECLARE_OOXMLEXPORT_TEST(testTdf92470_footnoteRestart, "tdf92470_footnoteRestart
DECLARE_OOXMLEXPORT_TEST(testCharacterBorder, "charborder.odt")
{
+ CPPUNIT_ASSERT_EQUAL(1, getPages());
uno::Reference<beans::XPropertySet> xRun(getRun(getParagraph(1),1), uno::UNO_QUERY);
// OOXML has just one border attribute (<w:bdr>) for text border so all side has
// the same border with the same padding
@@ -770,6 +771,7 @@ DECLARE_OOXMLEXPORT_TEST(testPNGImageCrop, "test_PNG_ImageCrop.docx")
DECLARE_OOXMLEXPORT_TEST(testTdf41542_imagePadding, "tdf41542_imagePadding.odt")
{
+ CPPUNIT_ASSERT_EQUAL(1, getPages());
// borderlessImage - image WITHOUT BORDERS : simulate padding with -crop
text::GraphicCrop crop = getProperty<text::GraphicCrop>(getShape(2), "GraphicCrop");
CPPUNIT_ASSERT( crop.Left != 0 && crop.Right != 0 );
@@ -942,6 +944,7 @@ DECLARE_OOXMLEXPORT_EXPORTONLY_TEST(testcantSplit, "2_table_doc.docx")
DECLARE_OOXMLEXPORT_TEST(testDontSplitTable, "tdf101589_dontSplitTable.odt")
{
+ CPPUNIT_ASSERT_EQUAL(2, getPages());
//single row tables need to prevent split by setting row to no split
CPPUNIT_ASSERT_EQUAL( OUString("Row 1"), parseDump("/root/page[2]/body/tab[1]/row[1]/cell[1]/txt[1]") );