From 98b8fa299f7d7e68d42e322faf64cb0cd9923d95 Mon Sep 17 00:00:00 2001 From: Aurimas Fišeras Date: Sat, 2 Mar 2019 14:56:55 +0200 Subject: Add missing DoClose MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ia051ba960102e53a4dc6cb6b3444ea923a351c3d Signed-off-by: Aurimas Fišeras Reviewed-on: https://gerrit.libreoffice.org/68619 Tested-by: Jenkins Reviewed-by: Katarina Behrens --- sd/qa/unit/import-tests.cxx | 8 ++++++++ sd/qa/unit/misc-tests.cxx | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/sd/qa/unit/import-tests.cxx b/sd/qa/unit/import-tests.cxx index 44464e2559a2..58eb86f3a9fa 100644 --- a/sd/qa/unit/import-tests.cxx +++ b/sd/qa/unit/import-tests.cxx @@ -1734,6 +1734,8 @@ void SdImportTest::testTdf104201() pObj->GetMergedItem(XATTR_FILLCOLOR)); CPPUNIT_ASSERT_EQUAL(sal_uInt32(0x00FF00), sal_uInt32(rColorItem.GetColorValue())); } + + xDocShRef->DoClose(); } void SdImportTest::testTdf103477() @@ -2306,6 +2308,8 @@ void SdImportTest::testTdf114488() Graphic aGraphic(xGraphic); OUString sMimeType(comphelper::GraphicMimeTypeHelper::GetMimeTypeForXGraphic(xGraphic)); CPPUNIT_ASSERT_EQUAL(OUString("image/x-wmf"), sMimeType); + + xDocShRef->DoClose(); } void SdImportTest::testTdf114913() @@ -2480,6 +2484,8 @@ void SdImportTest::testTdf116899() CPPUNIT_ASSERT_EQUAL_MESSAGE( "Number of key times in the animation node isn't 2.", static_cast(2), xNode->getKeyTimes().getLength() ); CPPUNIT_ASSERT_EQUAL_MESSAGE( "First key time in the animation node isn't 0, key times aren't normalized.", 0., xNode->getKeyTimes()[0] ); CPPUNIT_ASSERT_EQUAL_MESSAGE( "Second key time in the animation node isn't 1, key times aren't normalized.", 1., xNode->getKeyTimes()[1] ); + + xDocShRef->DoClose(); } void SdImportTest::testTdf77747() @@ -2504,6 +2510,8 @@ void SdImportTest::testTdf116266() sfx2::LinkManager* rLinkManager = pDoc->GetLinkManager(); // The document contains one SVG stored as a link. CPPUNIT_ASSERT_EQUAL(size_t(1), rLinkManager->GetLinks().size()); + + xDocShRef->DoClose(); } void SdImportTest::testTdf119015() diff --git a/sd/qa/unit/misc-tests.cxx b/sd/qa/unit/misc-tests.cxx index ff89fb2fecf9..57c18626b19b 100644 --- a/sd/qa/unit/misc-tests.cxx +++ b/sd/qa/unit/misc-tests.cxx @@ -370,6 +370,8 @@ void SdMiscTest::testFillGradient() CPPUNIT_ASSERT(xPropSet2->getPropertyValue("FillGradient") >>= aGradient2); CPPUNIT_ASSERT_EQUAL(sal_Int32(Color(255, 0, 0)),aGradient2.StartColor); CPPUNIT_ASSERT_EQUAL(sal_Int32(Color(0, 255, 0)),aGradient2.EndColor); + + xDocShRef->DoClose(); } void SdMiscTest::testTdf44774() @@ -397,6 +399,8 @@ void SdMiscTest::testTdf44774() CPPUNIT_ASSERT(pStyle); // The parent set in StyleB used to reset, because parent style's msApiName was empty CPPUNIT_ASSERT_EQUAL(OUString("StyleA"), pStyle->GetParent()); + + xDocShRef->DoClose(); } void SdMiscTest::testTdf38225() @@ -429,6 +433,8 @@ void SdMiscTest::testTdf38225() CPPUNIT_ASSERT(!pStyle); pStyle = pSSPool->Find("StyleWithName2", SfxStyleFamily::Para); CPPUNIT_ASSERT(pStyle); + + xDocShRef->DoClose(); } void SdMiscTest::testTdf120527() @@ -471,6 +477,8 @@ void SdMiscTest::testTdf120527() uno::Reference xGraphic; xShapeProperySet->getPropertyValue("Graphic") >>= xGraphic; CPPUNIT_ASSERT(xGraphic.is()); + + xDocShRef->DoClose(); } /// Draw miscellaneous tests. -- cgit