From a8886a6224a0649cd5b48d3874ab960487f17c1d Mon Sep 17 00:00:00 2001 From: Aurimas Fišeras Date: Sat, 2 Mar 2019 13:40:43 +0200 Subject: Add missing DoClose MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I7c6f055a93ece2c80eb0f9c4974829d479d1edca Signed-off-by: Aurimas Fišeras Reviewed-on: https://gerrit.libreoffice.org/68617 Tested-by: Jenkins Reviewed-by: Katarina Behrens --- sc/qa/unit/pivottable_filters_test.cxx | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/sc/qa/unit/pivottable_filters_test.cxx b/sc/qa/unit/pivottable_filters_test.cxx index 024df995e4fe..7697fdb20b48 100644 --- a/sc/qa/unit/pivottable_filters_test.cxx +++ b/sc/qa/unit/pivottable_filters_test.cxx @@ -660,6 +660,8 @@ void ScPivotTableFiltersTest::testPivotTableNoColumnsLayout() const ScMergeFlagAttr& rMergeFlag = static_cast(rPoolItem); CPPUNIT_ASSERT(rMergeFlag.GetValue() & ScMF::ButtonPopup); } + + xDocSh->DoClose(); } void ScPivotTableFiltersTest::testTdf112501() @@ -726,6 +728,8 @@ void ScPivotTableFiltersTest::testTdf112501() CPPUNIT_ASSERT(rMergeFlag.GetValue() & ScMF::ButtonPopup); } } + + xDocSh->DoClose(); } void ScPivotTableFiltersTest::testPivotTableExportXLSX() @@ -746,6 +750,8 @@ void ScPivotTableFiltersTest::testPivotTableExportXLSX() assertXPath(pTable, "/x:pivotTableDefinition/x:pivotFields/x:pivotField[3]/x:items/x:item", 4); assertXPath(pTable, "/x:pivotTableDefinition/x:pivotFields/x:pivotField[3]/x:items/x:item[3]", "h", "1"); + + xShell->DoClose(); } void ScPivotTableFiltersTest::testPivotCacheExportXLSX() @@ -996,6 +1002,8 @@ void ScPivotTableFiltersTest::testPivotCacheExportXLSX() "maxValue"); assertXPath(pCacheDef, "/x:pivotCacheDefinition/x:cacheFields/x:cacheField[6]/x:sharedItems", "count", "1"); + + xShell->DoClose(); } void ScPivotTableFiltersTest::testPivotTableXLSX() @@ -1862,6 +1870,8 @@ void ScPivotTableFiltersTest::testPivotTableFirstHeaderRowXLSX() pTable = XPathHelper::parseExport(pXPathFile, m_xSFactory, "xl/pivotTables/pivotTable3.xml"); CPPUNIT_ASSERT(pTable); assertXPath(pTable, "/x:pivotTableDefinition/x:location", "firstHeaderRow", "1"); + + xShell->DoClose(); } void ScPivotTableFiltersTest::testPivotTableDoubleFieldFilterXLSX() @@ -2241,6 +2251,8 @@ void ScPivotTableFiltersTest::testPivotTableOutlineModeXLSX() assertXPath(pTable, "/x:pivotTableDefinition", "compact", "0"); assertXPath(pTable, "/x:pivotTableDefinition", "compactData", "0"); assertXPath(pTable, "/x:pivotTableDefinition/x:pivotFields/x:pivotField[1]", "compact", "0"); + + xShell->DoClose(); } void ScPivotTableFiltersTest::testPivotTableDuplicatedMemberFilterXLSX() @@ -2259,6 +2271,8 @@ void ScPivotTableFiltersTest::testPivotTableDuplicatedMemberFilterXLSX() "axisPage"); assertXPath(pTable, "/x:pivotTableDefinition/x:pivotFields/x:pivotField[5]/x:items", "count", "21"); + + xShell->DoClose(); } void ScPivotTableFiltersTest::testPivotTableTabularModeXLSX() @@ -2279,6 +2293,8 @@ void ScPivotTableFiltersTest::testPivotTableTabularModeXLSX() assertXPath(pTable, "/x:pivotTableDefinition", "compactData", "0"); assertXPath(pTable, "/x:pivotTableDefinition/x:pivotFields/x:pivotField[1]", "compact", "0"); assertXPath(pTable, "/x:pivotTableDefinition/x:pivotFields/x:pivotField[1]", "outline", "0"); + + xShell->DoClose(); } void ScPivotTableFiltersTest::testTdf112106() -- cgit