summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenry Castro <hcastro@collabora.com>2023-10-09 10:29:40 -0400
committerHenry Castro <hcastro@collabora.com>2023-11-01 14:08:04 +0100
commit32e6ef3834a0f96d7830719950de52c99aae0263 (patch)
treea86f54d715a98ae79ff256db0b27046364e588ee
parent35975f9ea30e9ec8ac9276f90874ffe272001038 (diff)
tdf#155512: sd: qa: unit: add unit test "testMasterSlides"
Signed-off-by: Henry Castro <hcastro@collabora.com> Change-Id: I6117b384fdad215e6c04b6e74df22fe9daa6a526 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157705 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158739 Tested-by: Jenkins
-rw-r--r--sd/qa/unit/data/pptx/master-slides.pptxbin0 -> 54445 bytes
-rw-r--r--sd/qa/unit/import-tests2.cxx10
2 files changed, 10 insertions, 0 deletions
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
--- /dev/null
+++ b/sd/qa/unit/data/pptx/master-slides.pptx
Binary files 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: */