Kaydet (Commit) 805da078 authored tarafından Serge Krot's avatar Serge Krot Kaydeden (comit) Samuel Mehrbrodt

tdf#116266 Add unit test

The bug appeared only in libreoffice-6-0, but the unit test
is useful for master anyway.

Change-Id: I884ae18939b6def683bb318260c4e195da5bb252
Reviewed-on: https://gerrit.libreoffice.org/52375Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Reviewed-on: https://gerrit.libreoffice.org/53192
üst 56775815
This diff was suppressed by a .gitattributes entry.
......@@ -181,6 +181,7 @@ public:
void testTdf51340();
void testTdf115639();
void testTdf77747();
void testTdf116266();
bool checkPattern(sd::DrawDocShellRef const & rDocRef, int nShapeNumber, std::vector<sal_uInt8>& rExpected);
void testPatternImport();
......@@ -263,6 +264,7 @@ public:
CPPUNIT_TEST(testTdf51340);
CPPUNIT_TEST(testTdf115639);
CPPUNIT_TEST(testTdf77747);
CPPUNIT_TEST(testTdf116266);
CPPUNIT_TEST_SUITE_END();
};
......@@ -2487,7 +2489,6 @@ void SdImportTest::testTdf51340()
xDocShRef->DoClose();
}
void SdImportTest::testTdf115639()
{
// Check whether the new compatibility option is loaded correctly
......@@ -2533,6 +2534,15 @@ void SdImportTest::testTdf77747()
xDocShRef->DoClose();
}
void SdImportTest::testTdf116266()
{
sd::DrawDocShellRef xDocShRef = loadURL(m_directories.getURLFromSrc("/sd/qa/unit/data/odp/tdf116266.odp"), ODP);
SdDrawDocument *pDoc = xDocShRef->GetDoc();
sfx2::LinkManager* rLinkManager = pDoc->GetLinkManager();
// The document contains one SVG stored as a link.
CPPUNIT_ASSERT_EQUAL(size_t(1), rLinkManager->GetLinks().size());
}
CPPUNIT_TEST_SUITE_REGISTRATION(SdImportTest);
CPPUNIT_PLUGIN_IMPLEMENT();
......
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