diff options
author | Tibor Nagy <nagy.tibor2@nisz.hu> | 2021-06-23 13:15:57 +0200 |
---|---|---|
committer | László Németh <nemeth@numbertext.org> | 2021-06-29 09:50:25 +0200 |
commit | 3d55149dcf19cffefcc19c16a3abbe8851453c5e (patch) | |
tree | 61559ceb6cbe1261d6ebec6ddb77cd4ff33d5831 /sd/qa/unit/import-tests.cxx | |
parent | a63679f30a2c455fe0a6471e76a0ec8e3aecd0ea (diff) |
tdf#142913 PPTX: slideshow setting “Start from” not imported
Note: see Slide Show->Slide Show Settings...->Range->From:
on the UI, or press Shift-F5 after loading the unit test
document sd/qa/unit/data/pptx/tdf142913.pptx.
Change-Id: I2e10a4353c26600bf405475cb89990413c81dc1e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117705
Tested-by: László Németh <nemeth@numbertext.org>
Reviewed-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'sd/qa/unit/import-tests.cxx')
-rw-r--r-- | sd/qa/unit/import-tests.cxx | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/sd/qa/unit/import-tests.cxx b/sd/qa/unit/import-tests.cxx index 8723c0ee53b8..708c8a375482 100644 --- a/sd/qa/unit/import-tests.cxx +++ b/sd/qa/unit/import-tests.cxx @@ -122,6 +122,7 @@ public: virtual void setUp() override; void testDocumentLayout(); + void testTdf142913(); void testTdf142590(); void testCustomSlideShow(); void testInternalHyperlink(); @@ -242,6 +243,7 @@ public: CPPUNIT_TEST_SUITE(SdImportTest); CPPUNIT_TEST(testDocumentLayout); + CPPUNIT_TEST(testTdf142913); CPPUNIT_TEST(testTdf142590); CPPUNIT_TEST(testCustomSlideShow); CPPUNIT_TEST(testInternalHyperlink); @@ -438,6 +440,23 @@ void SdImportTest::testDocumentLayout() } } +void SdImportTest::testTdf142913() +{ + ::sd::DrawDocShellRef xDocShRef + = loadURL(m_directories.getURLFromSrc(u"/sd/qa/unit/data/pptx/tdf142913.pptx"), PPTX); + + uno::Reference<presentation::XPresentationSupplier> xPresentationSupplier( + xDocShRef->GetDoc()->getUnoModel(), uno::UNO_QUERY_THROW); + uno::Reference<beans::XPropertySet> xPresentationProps(xPresentationSupplier->getPresentation(), + uno::UNO_QUERY_THROW); + + OUString sFirstPage = xPresentationProps->getPropertyValue("FirstPage").get<OUString>(); + + CPPUNIT_ASSERT_EQUAL(OUString("Second"), sFirstPage); + + xDocShRef->DoClose(); +} + void SdImportTest::testTdf142590() { ::sd::DrawDocShellRef xDocShRef |