Kaydet (Commit) 58f43ab8 authored tarafından Charu Tyagi's avatar Charu Tyagi Kaydeden (comit) Caolán McNamara

tdf#90607-Test Case for the patch

Change-Id: Ifcd75cc47baf9da7b3480a4a1e51853aa66c3f1c
Reviewed-on: https://gerrit.libreoffice.org/15458Tested-by: 's avatarJenkins <ci@libreoffice.org>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst b6044f76
...@@ -103,11 +103,13 @@ public: ...@@ -103,11 +103,13 @@ public:
void testBulletMarginAndIndentation(); void testBulletMarginAndIndentation();
void testParaMarginAndindentation(); void testParaMarginAndindentation();
void testFdo90607();
#if !defined WNT #if !defined WNT
void testBnc822341(); void testBnc822341();
#endif #endif
CPPUNIT_TEST_SUITE(SdExportTest); CPPUNIT_TEST_SUITE(SdExportTest);
CPPUNIT_TEST(testFdo90607);
CPPUNIT_TEST(testN821567); CPPUNIT_TEST(testN821567);
CPPUNIT_TEST(testBnc870233_1); CPPUNIT_TEST(testBnc870233_1);
CPPUNIT_TEST(testBnc870233_2); CPPUNIT_TEST(testBnc870233_2);
...@@ -527,6 +529,30 @@ void SdExportTest::testBnc822347_EmptyBullet() ...@@ -527,6 +529,30 @@ void SdExportTest::testBnc822347_EmptyBullet()
xDocShRef->DoClose(); xDocShRef->DoClose();
} }
//Bullets not having any text following them are not getting exported to pptx correctly.
void SdExportTest::testFdo90607()
{
sd::DrawDocShellRef xDocShRef = loadURL(getURLFromSrc("/sd/qa/unit/data/fdo90607.pptx"), PPTX);
xDocShRef = saveAndReload(xDocShRef, PPTX);
uno::Reference< drawing::XDrawPagesSupplier > xDoc(
xDocShRef->GetDoc()->getUnoModel(), uno::UNO_QUERY_THROW );
uno::Reference< drawing::XDrawPage > xPage(
xDoc->getDrawPages()->getByIndex(0), uno::UNO_QUERY_THROW );
SdDrawDocument *pDoc = xDocShRef->GetDoc();
CPPUNIT_ASSERT_MESSAGE( "no document", pDoc != NULL );
const SdrPage *pPage = pDoc->GetPage(1);
CPPUNIT_ASSERT_MESSAGE( "no page", pPage != NULL );
SdrTextObj *pTxtObj = dynamic_cast<SdrTextObj *>( pPage->GetObj(1) );
CPPUNIT_ASSERT_MESSAGE( "no text object", pTxtObj != NULL);
OutlinerParaObject* pOutlinerParagraphObject = pTxtObj->GetOutlinerParaObject();
const sal_Int16 nDepth = pOutlinerParagraphObject->GetDepth(0);
CPPUNIT_ASSERT_MESSAGE("not equal", nDepth != -1);
xDocShRef->DoClose();
}
void SdExportTest::testFdo83751() void SdExportTest::testFdo83751()
{ {
::sd::DrawDocShellRef xDocShRef = loadURL(getURLFromSrc("/sd/qa/unit/data/pptx/fdo83751.pptx"), PPTX); ::sd::DrawDocShellRef xDocShRef = loadURL(getURLFromSrc("/sd/qa/unit/data/pptx/fdo83751.pptx"), PPTX);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment