sd/qa/unit/data/pptx/master-slides.pptx |binary sd/qa/unit/import-tests2.cxx | 10 ++++++++++ 2 files changed, 10 insertions(+)
New commits: commit 32e6ef3834a0f96d7830719950de52c99aae0263 Author: Henry Castro <hcas...@collabora.com> AuthorDate: Mon Oct 9 10:29:40 2023 -0400 Commit: Henry Castro <hcas...@collabora.com> CommitDate: Wed Nov 1 14:08:04 2023 +0100 tdf#155512: sd: qa: unit: add unit test "testMasterSlides" Signed-off-by: Henry Castro <hcas...@collabora.com> Change-Id: I6117b384fdad215e6c04b6e74df22fe9daa6a526 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157705 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158739 Tested-by: Jenkins diff --git a/sd/qa/unit/data/pptx/master-slides.pptx b/sd/qa/unit/data/pptx/master-slides.pptx new file mode 100644 index 000000000000..3494d33254ab Binary files /dev/null and b/sd/qa/unit/data/pptx/master-slides.pptx differ diff --git a/sd/qa/unit/import-tests2.cxx b/sd/qa/unit/import-tests2.cxx index 44eacbf1da05..da6572b8af5a 100644 --- a/sd/qa/unit/import-tests2.cxx +++ b/sd/qa/unit/import-tests2.cxx @@ -1972,6 +1972,16 @@ CPPUNIT_TEST_FIXTURE(SdImportTest2, testTdf153012) CPPUNIT_ASSERT_EQUAL(Color(0xd9d9d9), aFillColor); } +CPPUNIT_TEST_FIXTURE(SdImportTest2, testMasterSlides) +{ + createSdImpressDoc("pptx/master-slides.pptx"); + uno::Reference<drawing::XMasterPagesSupplier> xMasterPagesSupplier(mxComponent, + uno::UNO_QUERY_THROW); + uno::Reference<drawing::XDrawPages> xMasterPages(xMasterPagesSupplier->getMasterPages()); + CPPUNIT_ASSERT(xMasterPages.is()); + CPPUNIT_ASSERT_EQUAL(sal_Int32(7), xMasterPages->getCount()); +} + CPPUNIT_PLUGIN_IMPLEMENT(); /* vim:set shiftwidth=4 softtabstop=4 expandtab: */