summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2020-03-26 12:25:10 +0100
committerTomaž Vajngerl <quikee@gmail.com>2020-03-26 14:05:20 +0100
commit56a1f9bea2f1b64dee4111ec6671caf42ef63c91 (patch)
treee6bd850693f708369ef2cffc882181dc4ed37dea /sd
parent0063e7b67666f444dae2f870f3cfbb651c762445 (diff)
sd: extend test to check the PDF pages aren't rendered when loaded
Change-Id: I9e407bb20a00ec620fe3f772f50708f997027942 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91093 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'sd')
-rw-r--r--sd/qa/unit/data/pdf/multipage.pdfbin9121 -> 13155 bytes
-rw-r--r--sd/qa/unit/import-tests.cxx4
2 files changed, 3 insertions, 1 deletions
diff --git a/sd/qa/unit/data/pdf/multipage.pdf b/sd/qa/unit/data/pdf/multipage.pdf
index 5cd8b4e4e569..65c8eeaa32a5 100644
--- a/sd/qa/unit/data/pdf/multipage.pdf
+++ b/sd/qa/unit/data/pdf/multipage.pdf
Binary files differ
diff --git a/sd/qa/unit/import-tests.cxx b/sd/qa/unit/import-tests.cxx
index 954ef5b187ba..e47c8e3cbe10 100644
--- a/sd/qa/unit/import-tests.cxx
+++ b/sd/qa/unit/import-tests.cxx
@@ -1321,11 +1321,13 @@ void SdImportTest::testPDFImportShared()
const GraphicObject& rGraphicObject = pSdrGrafObj->GetGraphicObject().GetGraphic();
const Graphic& rGraphic = rGraphicObject.GetGraphic();
+ CPPUNIT_ASSERT_MESSAGE("After loading, the PDF shouldn't have the primitive sequence created yet",
+ !rGraphic.getVectorGraphicData()->isPrimitiveSequenceCreated());
aGraphics.push_back(rGraphic);
}
}
- CPPUNIT_ASSERT_EQUAL_MESSAGE("Expected more than one page.", size_t(3), aGraphics.size());
+ CPPUNIT_ASSERT_EQUAL_MESSAGE("Expected more than one page.", size_t(9), aGraphics.size());
Graphic const & rFirstGraphic = aGraphics[0];